AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
|
A policy class for the stride in a set. When using this class, the stride can be set at runtime. More...
#include </home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/latest/src/axom/slam/policies/StridePolicies.hpp>
Public Types | |
using | IndexType = IntType |
using | ShapeType = IntType |
Public Member Functions | |
AXOM_HOST_DEVICE | RuntimeStride (IntType stride=DEFAULT_VALUE) |
AXOM_HOST_DEVICE IntType | stride () const |
Returns the stride between consecutive elements. More... | |
AXOM_HOST_DEVICE IntType | shape () const |
Returns the shape of the inner data for a given stride. This only has meaning when used with Map-based types. More... | |
AXOM_HOST_DEVICE IntType & | stride () |
void | setStride (IntType str) |
IntType | operator() () const |
IntType & | operator() () |
bool | isValid (bool) const |
Static Public Member Functions | |
static constexpr IntType | DefaultSize () |
Static Public Attributes | |
static const IntType | DEFAULT_VALUE = IntType(1) |
static const bool | IS_COMPILE_TIME = false |
constexpr static int | NumDims = 1 |
A policy class for the stride in a set. When using this class, the stride can be set at runtime.
using axom::slam::policies::RuntimeStride< IntType >::IndexType = IntType |
using axom::slam::policies::RuntimeStride< IntType >::ShapeType = IntType |
|
inline |
|
inlinestaticconstexpr |
|
inline |
Returns the stride between consecutive elements.
|
inline |
Returns the shape of the inner data for a given stride. This only has meaning when used with Map-based types.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
All non-zero strides are valid
|
static |
|
static |
|
staticconstexpr |