AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
axom::slam::policies::CompileTimeStride< IntType, INT_VAL > Struct Template Reference

A policy class for a compile-time known stride. More...

#include </home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/v0.5.0/src/axom/slam/policies/StridePolicies.hpp>

Public Member Functions

 CompileTimeStride (IntType val=DEFAULT_VALUE)
 
IntType stride () const
 
IntType operator() () const
 
void setStride (IntType AXOM_DEBUG_PARAM(val))
 
bool isValid (bool) const
 

Static Public Attributes

static const IntType DEFAULT_VALUE = INT_VAL
 

Detailed Description

template<typename IntType, IntType INT_VAL>
struct axom::slam::policies::CompileTimeStride< IntType, INT_VAL >

A policy class for a compile-time known stride.

Constructor & Destructor Documentation

◆ CompileTimeStride()

template<typename IntType , IntType INT_VAL>
axom::slam::policies::CompileTimeStride< IntType, INT_VAL >::CompileTimeStride ( IntType  val = DEFAULT_VALUE)
inline

Member Function Documentation

◆ stride()

template<typename IntType , IntType INT_VAL>
IntType axom::slam::policies::CompileTimeStride< IntType, INT_VAL >::stride ( ) const
inline

◆ operator()()

template<typename IntType , IntType INT_VAL>
IntType axom::slam::policies::CompileTimeStride< IntType, INT_VAL >::operator() ( ) const
inline

◆ setStride()

template<typename IntType , IntType INT_VAL>
void axom::slam::policies::CompileTimeStride< IntType, INT_VAL >::setStride ( IntType   AXOM_DEBUG_PARAMval)
inline

References SLIC_ASSERT_MSG.

◆ isValid()

template<typename IntType , IntType INT_VAL>
bool axom::slam::policies::CompileTimeStride< IntType, INT_VAL >::isValid ( bool  ) const
inline

All non-zero strides are valid

Member Data Documentation

◆ DEFAULT_VALUE

template<typename IntType , IntType INT_VAL>
const IntType axom::slam::policies::CompileTimeStride< IntType, INT_VAL >::DEFAULT_VALUE = INT_VAL
static

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