The number of a label, typed by what it labels, so that a number of one kind cannot index a table of another: a surface label's number does not compile where a material's is expected.
More...
#include <EBGeometry_LabelId.hpp>
|
|
constexpr | LabelId () noexcept=default |
| | No label.
|
| |
| constexpr | LabelId (const uint32_t a_value) noexcept |
| | A label's number.
|
| |
| constexpr uint32_t | value () const noexcept |
| | The number, for indexing an array of your own.
|
| |
| constexpr bool | isNone () const noexcept |
| | Whether this is no label.
|
| |
| constexpr bool | operator== (const LabelId &a_other) const noexcept |
| | Equality.
|
| |
| constexpr bool | operator!= (const LabelId &a_other) const noexcept |
| | Inequality.
|
| |
|
|
static constexpr uint32_t | NoneValue = 0xFFFFFFFFU |
| | The number of no label.
|
| |
template<class Tag>
struct EBGeometry::LabelId< Tag >
The number of a label, typed by what it labels, so that a number of one kind cannot index a table of another: a surface label's number does not compile where a material's is expected.
A trivially copyable wrapper of a 32-bit number, usable on the host and the device. The labels of each kind are numbered from 0 in the order their names first appear in the expression (see ExprIndex); value() is the number, for indexing an array of your own. None is no label.
- Template Parameters
-
◆ LabelId()
template<class Tag >
|
|
inlineexplicitconstexprnoexcept |
A label's number.
- Parameters
-
| [in] | a_value | The number (NoneValue for none). |
◆ isNone()
Whether this is no label.
- Returns
- True for none.
◆ none()
template<class Tag >
|
|
inlinestaticconstexprnoexcept |
No label.
- Returns
- The id of no label.
◆ operator!=()
Inequality.
- Parameters
-
| [in] | a_other | Another id of the same kind. |
- Returns
- True if the numbers differ.
◆ operator==()
Equality.
- Parameters
-
| [in] | a_other | Another id of the same kind. |
- Returns
- True if the numbers are equal.
◆ value()
The number, for indexing an array of your own.
- Returns
- The number; NoneValue for no label, which no table of labels reaches.
The documentation for this struct was generated from the following file: