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 Attributes | List of all members
rexlib::operand_type_rule< Pivots, Outputs, Inputs > Struct Template Reference

Declarative typing rule for the operands of an operation. More...

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

Public Types

using pivot_list_type = Pivots
 
using output_slot_list_type = Outputs
 
using input_slot_list_type = Inputs
 

Static Public Attributes

static REXLIB_CONST_CONSTEXPR std::size_t pivot_count
 
static REXLIB_CONST_CONSTEXPR std::size_t output_count
 
static REXLIB_CONST_CONSTEXPR std::size_t input_count
 
static REXLIB_CONST_CONSTEXPR bool requires_parameters
 Whether the rule reads values of the operation instance.
 

Detailed Description

template<typename Pivots, typename Outputs, typename Inputs>
struct rexlib::operand_type_rule< Pivots, Outputs, Inputs >

Declarative typing rule for the operands of an operation.

A rule declares a small set of free variables, the pivots, and binds every operand to one of them through a transform. It is the single source of truth for an operation's typing: two interpreters read this very same declaration, and neither restates it.

The operand counts are part of the rule, so an operation's arity and the compile time operand counts a backend builder needs both come from here and cannot disagree.

Template Parameters
Pivotstype_list of type_pivot declarations.
Outputstype_list of type_slot, one per output operand, in signature order.
Inputstype_list of type_slot, one per input operand, in signature order.
See also
type_pivot
type_slot
Type transforms

Member Data Documentation

◆ input_count

REXLIB_CONST_CONSTEXPR std::size_t rexlib::operand_type_rule< Pivots, Outputs, Inputs >::input_count
static
Initial value:
=
type_list_size<Inputs>::value

◆ output_count

REXLIB_CONST_CONSTEXPR std::size_t rexlib::operand_type_rule< Pivots, Outputs, Inputs >::output_count
static
Initial value:
=
type_list_size<Outputs>::value

◆ pivot_count

REXLIB_CONST_CONSTEXPR std::size_t rexlib::operand_type_rule< Pivots, Outputs, Inputs >::pivot_count
static
Initial value:
=
type_list_size<Pivots>::value

◆ requires_parameters

REXLIB_CONST_CONSTEXPR bool rexlib::operand_type_rule< Pivots, Outputs, Inputs >::requires_parameters
static
Initial value:
=
detail::rule_has_operation_pivot<Pivots>::value

Whether the rule reads values of the operation instance.


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