|
AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
|
Shared core for a compile-time-known scalar value policy. More...
#include </home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/latest/src/axom/slam/policies/ValuePolicies.hpp>

Public Types | |
| using | TagType = Tag |
| using | IntType = decltype(V) |
Public Member Functions | |
| constexpr AXOM_HOST_DEVICE | CompileTimeValue (IntType val=V) |
| constexpr AXOM_HOST_DEVICE IntType | value () const |
| constexpr IntType | operator() () const |
| constexpr bool | isValid (bool) const |
Static Public Attributes | |
| static constexpr IntType | VALUE = V |
Shared core for a compile-time-known scalar value policy.
The value V is fixed at compile time. The (defaulted) constructor argument exists only to satisfy the uniform policy-construction interface and is asserted to match V.
Provides the generic value() accessor, operator(), and an isValid() delegating to the tag's predicate. Leaf policies derive from this and add their named accessor.
| V | the compile-time value (its type is the policy's IntType). |
| Tag | a value-policy tag carrying the default value and validity predicate. |
| using axom::slam::policies::CompileTimeValue< V, Tag >::TagType = Tag |
| using axom::slam::policies::CompileTimeValue< V, Tag >::IntType = decltype(V) |
|
inlineconstexpr |
References AXOM_CONSTEXPR_ASSERT, and AXOM_UNUSED_VAR.
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
staticconstexpr |