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

Transform ignoring the pivot and yielding a fixed type. More...

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

Classes

struct  apply_type
 Apply the transform to a native pivot type. More...
 

Public Types

using domain_type = any_type_domain
 

Static Public Member Functions

static const char * get_relation () noexcept
 Get a fragment naming the mapping, for diagnostics.
 
static numerical_type apply (numerical_type type) noexcept
 Apply the transform to a pivot type.
 

Detailed Description

template<numerical_type Type>
struct rexlib::fixed_type_transform< Type >

Transform ignoring the pivot and yielding a fixed type.

Models operations whose operand type does not depend on the others, such as the boolean output of a comparison.

Template Parameters
TypeThe produced numerical type.

Member Function Documentation

◆ apply()

template<numerical_type Type>
static numerical_type rexlib::fixed_type_transform< Type >::apply ( numerical_type  type)
staticnoexcept

Apply the transform to a pivot type.

Parameters
typeThe pivot type.
Returns
numerical_type The operand type.

◆ get_relation()

template<numerical_type Type>
static const char * rexlib::fixed_type_transform< Type >::get_relation ( )
staticnoexcept

Get a fragment naming the mapping, for diagnostics.

Returns
const char* The fragment.

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