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::core_dimensions_descriptor Class Reference

Type erased form of a core_dimensions. More...

#include <rexlib/core/operation/shape_rule/core_dimensions_descriptor.hpp>

Public Member Functions

 core_dimensions_descriptor (span< const extent_slot_descriptor > slots, bool has_run, const extent_domain &run_domain) noexcept
 Construct a core dimensions descriptor.
 
span< const extent_slot_descriptor > get_slots () const noexcept
 Get the slot of every core axis after the run.
 
bool has_run () const noexcept
 Check whether a run leads the core axes.
 
bool is_empty () const noexcept
 Check whether the core has no axes: neither a run nor a slot.
 
const extent_domain & get_run_domain () const noexcept
 Get the extents every axis of the run may take.
 

Detailed Description

Type erased form of a core_dimensions.

See also
core_dimensions

Constructor & Destructor Documentation

◆ core_dimensions_descriptor()

rexlib::core_dimensions_descriptor::core_dimensions_descriptor ( span< const extent_slot_descriptor >  slots,
bool  has_run,
const extent_domain &  run_domain 
)
noexcept

Construct a core dimensions descriptor.

Parameters
slotsThe slot of every core axis after the run. The table must outlive the descriptor.
has_runWhether a run leads the core axes.
run_domainThe extents every axis of the run may take.

Member Function Documentation

◆ get_run_domain()

const extent_domain & rexlib::core_dimensions_descriptor::get_run_domain ( ) const
noexcept

Get the extents every axis of the run may take.

Returns
const extent_domain& The domain.

◆ get_slots()

span< const extent_slot_descriptor > rexlib::core_dimensions_descriptor::get_slots ( ) const
noexcept

Get the slot of every core axis after the run.

Returns
span<const extent_slot_descriptor> One entry per axis.

◆ has_run()

bool rexlib::core_dimensions_descriptor::has_run ( ) const
noexcept

Check whether a run leads the core axes.

Returns
true A run leads them.
false There is no run.

◆ is_empty()

bool rexlib::core_dimensions_descriptor::is_empty ( ) const
noexcept

Check whether the core has no axes: neither a run nor a slot.

Returns
true The core has no axes.
false The core has a run or a slot.

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