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

A policy class for the size of a set whose value can be set at runtime. More...

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

Inheritance diagram for axom::slam::policies::RuntimeSize< IntType >:

Public Member Functions

AXOM_HOST_DEVICE RuntimeSize (IntType sz=DEFAULT_VALUE)
 
AXOM_HOST_DEVICE IntType size () const
 
AXOM_HOST_DEVICE IntType & size ()
 
IntType operator() () const
 
IntType & operator() ()
 
AXOM_HOST_DEVICE bool empty () const
 
bool isValid (bool) const
 

Static Public Attributes

OrderedSet_Size_Policies

A few default policies for the size of an OrderedSet

static const IntType DEFAULT_VALUE = IntType {}
 

Protected Attributes

IntType m_sz
 

Detailed Description

template<typename IntType>
struct axom::slam::policies::RuntimeSize< IntType >

A policy class for the size of a set whose value can be set at runtime.

Constructor & Destructor Documentation

◆ RuntimeSize()

template<typename IntType >
AXOM_HOST_DEVICE axom::slam::policies::RuntimeSize< IntType >::RuntimeSize ( IntType  sz = DEFAULT_VALUE)
inline

Member Function Documentation

◆ size() [1/2]

template<typename IntType >
AXOM_HOST_DEVICE IntType axom::slam::policies::RuntimeSize< IntType >::size ( ) const
inline

◆ size() [2/2]

template<typename IntType >
AXOM_HOST_DEVICE IntType& axom::slam::policies::RuntimeSize< IntType >::size ( )
inline

◆ operator()() [1/2]

template<typename IntType >
IntType axom::slam::policies::RuntimeSize< IntType >::operator() ( ) const
inline

◆ operator()() [2/2]

template<typename IntType >
IntType& axom::slam::policies::RuntimeSize< IntType >::operator() ( )
inline

◆ empty()

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

◆ isValid()

template<typename IntType >
bool axom::slam::policies::RuntimeSize< IntType >::isValid ( bool  ) const
inline

Member Data Documentation

◆ DEFAULT_VALUE

template<typename IntType >
const IntType axom::slam::policies::RuntimeSize< IntType >::DEFAULT_VALUE = IntType {}
static

◆ m_sz

template<typename IntType >
IntType axom::slam::policies::RuntimeSize< IntType >::m_sz
protected

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