rexlib 0.1.0
Device-agnostic array computing library for CryoEM and CryoET image processing, with a pluggable backend architecture
Loading...
Searching...
No Matches
Public Types | Static Public Member Functions | Static Public Attributes | List of all members
rexlib::type_rule_accessors< Rule > Struct Template Reference

Read the data types a typing rule depends on from the parameters of an operation instance. More...

#include <rexlib/core/operation/type_rule/type_rule_accessors.hpp>

Public Types

using operation_pivot_list_type = typename detail::operation_pivot_list< typename Rule::pivot_list_type >::type
 
using operation_data_type_array_type = std::array< numerical_type, operation_pivot_count >
 

Static Public Member Functions

template<typename Parameters >
static operation_data_type_array_type get_operation_data_types (const Parameters &parameters) noexcept
 Read every data type the operation supplies.
 

Static Public Attributes

static REXLIB_CONST_CONSTEXPR std::size_t operation_pivot_count
 

Detailed Description

template<typename Rule>
struct rexlib::type_rule_accessors< Rule >

Read the data types a typing rule depends on from the parameters of an operation instance.

Evaluates the accessors the rule names, so that the data types can be handed to a type_rule_interpreter, which knows nothing of parameter types.

Template Parameters
RuleThe operand_type_rule.

Member Function Documentation

◆ get_operation_data_types()

template<typename Rule >
template<typename Parameters >
static operation_data_type_array_type rexlib::type_rule_accessors< Rule >::get_operation_data_types ( const Parameters &  parameters)
staticnoexcept

Read every data type the operation supplies.

Template Parameters
ParametersThe parameter type of the operation.
Parameters
parametersThe parameters of the operation instance.
Returns
operation_data_type_array_type The data types, in the order their pivots are declared.

Member Data Documentation

◆ operation_pivot_count

template<typename Rule >
REXLIB_CONST_CONSTEXPR std::size_t rexlib::type_rule_accessors< Rule >::operation_pivot_count
static
Initial value:
=
type_list_size<operation_pivot_list_type>::value

The documentation for this struct was generated from the following file: