|
rexlib 0.1.0
Device-agnostic array computing library for CryoEM and CryoET image processing, with a pluggable backend architecture
|
Type erased form of a type transform. More...
#include <rexlib/core/operation/type_rule/type_transform.hpp>
Public Types | |
| using | apply_function_type = numerical_type(*)(numerical_type) |
| Value level half of a transform. | |
Public Member Functions | |
| type_transform (apply_function_type apply, const numerical_type_domain &domain, const char *relation) noexcept | |
| Construct a type transform. | |
| numerical_type | apply (numerical_type type) const noexcept |
| Apply the transform to a pivot type. | |
| const numerical_type_domain & | get_domain () const noexcept |
| Get the set of pivot types the transform is defined on. | |
| const char * | get_relation () const noexcept |
| Get the fragment naming the mapping. | |
Type erased form of a type transform.
Holds the value level half of a transform, the set of pivot types it is defined on, and the fragment naming it in diagnostics.
|
noexcept |
Construct a type transform.
| apply | Value level half of the transform. Must not be null. |
| domain | Set of pivot types the transform is defined on. It must outlive the transform, which the domain tags guarantee by holding it in static storage. |
| relation | Fragment naming the mapping, for diagnostics. Must not be null and must outlive the transform. |
|
noexcept |
Apply the transform to a pivot type.
| type | The pivot type. Must belong to the domain. |
|
noexcept |
Get the set of pivot types the transform is defined on.
Get the fragment naming the mapping.