|
rexlib 0.1.0
Device-agnostic array computing library for CryoEM and CryoET image processing, with a pluggable backend architecture
|
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 |
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.
| Source | Where the pivot value comes from. |
| Index | Index of the operand supplying it. Unused when Source is type_pivot_source::operation. |
| Domain | Tag 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. |
| DefaultPivot | Only 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. |
| Accessor | Only 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. |