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

A policy class for a compile-time known set size. More...

#include </home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/latest/src/axom/slam/policies/SizePolicies.hpp>

Public Member Functions

AXOM_HOST_DEVICE CompileTimeSize (IntType val=INT_VAL)
 
AXOM_HOST_DEVICE IntType size () const
 
IntType operator() () const
 
AXOM_HOST_DEVICE bool empty () const
 
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::CompileTimeSize< IntType, INT_VAL >

A policy class for a compile-time known set size.

Constructor & Destructor Documentation

◆ CompileTimeSize()

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

References AXOM_UNUSED_VAR, and SLIC_ASSERT_MSG.

Member Function Documentation

◆ size()

template<typename IntType , IntType INT_VAL>
AXOM_HOST_DEVICE IntType axom::slam::policies::CompileTimeSize< IntType, INT_VAL >::size ( ) const
inline

◆ operator()()

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

◆ empty()

template<typename IntType , IntType INT_VAL>
AXOM_HOST_DEVICE bool axom::slam::policies::CompileTimeSize< IntType, INT_VAL >::empty ( ) const
inline

◆ isValid()

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

Member Data Documentation

◆ DEFAULT_VALUE

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

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