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 Member Functions | List of all members
rexlib::type_pivot_descriptor Class Reference

Type erased form of a type_pivot. More...

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

Public Member Functions

 type_pivot_descriptor (type_pivot_source source, std::size_t index, std::ptrdiff_t default_pivot, const numerical_type_domain &domain) noexcept
 Construct a pivot descriptor.
 
type_pivot_source get_source () const noexcept
 Get where the pivot value comes from.
 
std::size_t get_index () const noexcept
 Get the index of the operand supplying the pivot.
 
std::ptrdiff_t get_default_pivot () const noexcept
 Get the pivot whose value this one adopts by default.
 
const numerical_type_domain & get_domain () const noexcept
 Get the set of types the pivot may take.
 

Detailed Description

Type erased form of a type_pivot.

See also
type_pivot

Constructor & Destructor Documentation

◆ type_pivot_descriptor()

rexlib::type_pivot_descriptor::type_pivot_descriptor ( type_pivot_source  source,
std::size_t  index,
std::ptrdiff_t  default_pivot,
const numerical_type_domain &  domain 
)
noexcept

Construct a pivot descriptor.

Parameters
sourceWhere the pivot value comes from.
indexIndex of the operand, or of the operation supplied value.
default_pivotIndex of the pivot whose value is adopted by default, or -1 for none.
domainSet of types the pivot may take. It must outlive the descriptor, which the domain tags guarantee by holding it in static storage.

Member Function Documentation

◆ get_default_pivot()

std::ptrdiff_t rexlib::type_pivot_descriptor::get_default_pivot ( ) const
noexcept

Get the pivot whose value this one adopts by default.

Returns
std::ptrdiff_t The pivot index, or -1 for none.

◆ get_domain()

const numerical_type_domain & rexlib::type_pivot_descriptor::get_domain ( ) const
noexcept

Get the set of types the pivot may take.

Returns
const numerical_type_domain& The domain.

◆ get_index()

std::size_t rexlib::type_pivot_descriptor::get_index ( ) const
noexcept

Get the index of the operand supplying the pivot.

Returns
std::size_t The index.

◆ get_source()

type_pivot_source rexlib::type_pivot_descriptor::get_source ( ) const
noexcept

Get where the pivot value comes from.

Returns
type_pivot_source The source.

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