|
rexlib 0.1.0
Device-agnostic array computing library for CryoEM and CryoET image processing, with a pluggable backend architecture
|
Set of extents an axis may take. More...
#include <rexlib/core/operation/shape_rule/extent_domain.hpp>
Public Types | |
| using | contains_function_type = bool(*)(std::size_t) |
| Membership test of a domain. | |
Public Member Functions | |
| extent_domain (contains_function_type contains, const char *description) noexcept | |
| Construct a domain. | |
| bool | contains (std::size_t extent) const noexcept |
| Check whether the domain admits an extent. | |
| const char * | get_description () const noexcept |
| Get what the domain admits. | |
Set of extents an axis may take.
Type erased form of an extent domain tag, such as positive_extent_domain, so that a rule lowered to tables refers to its domains without their types.
|
noexcept |
Construct a domain.
| contains | The membership test. Must not be null. |
| description | What the domain admits, for diagnostics, such as "at least one". Must not be null and must have static storage duration. |
|
noexcept |
Check whether the domain admits an extent.
| extent | The extent. |
Get what the domain admits.