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::type_pivot< Source, Index, Domain, DefaultPivot, Accessor > Struct Template Reference

Declaration of one free variable of a typing rule. More...

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

Public Types

using domain_type = Domain
 
using accessor_type = Accessor
 

Static Public Attributes

static REXLIB_CONST_CONSTEXPR type_pivot_source source = Source
 
static REXLIB_CONST_CONSTEXPR std::size_t index = Index
 
static REXLIB_CONST_CONSTEXPR std::ptrdiff_t default_pivot = DefaultPivot
 

Detailed Description

template<type_pivot_source Source, std::size_t Index, typename Domain, std::ptrdiff_t DefaultPivot = -1, typename Accessor = void>
struct rexlib::type_pivot< Source, Index, Domain, DefaultPivot, Accessor >

Declaration of one free variable of a typing rule.

A rule resolves its pivots first and then derives every operand type from them, so the pivots are what a backend has to dispatch over. Declaring where a pivot comes from, rather than inferring it, is what lets accept tell a free pivot from a fixed one.

Template Parameters
SourceWhere the pivot value comes from.
IndexIndex of the operand supplying it. Unused when Source is type_pivot_source::operation.
DomainTag naming the set of types the pivot may take. It is intersected with the domain of every transform reading this pivot, so it only ever narrows.
DefaultPivotOnly meaningful when Source is type_pivot_source::output. When non negative, the index of the pivot whose value this one adopts if the user did not pre-allocate the output. When negative, the canonical type is left unknown for accept to resolve.
AccessorOnly meaningful when Source is type_pivot_source::operation. Type reading the value from the parameters of the operation instance, through a static get(const Parameters&) template. void otherwise.
See also
operand_type_rule

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