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

A policy class for the size of a set that can be modified 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::DynamicRuntimeSize< IntType >:

Public Types

using TagType = SizeTag< IntType >
 
using IntType = decltype(Tag::defaultValue())
 

Public Member Functions

AXOM_HOST_DEVICE DynamicRuntimeSize (IntType sz=RuntimeSize< IntType >::DEFAULT_VALUE)
 
void setSize (IntType s)
 
void add (IntType s)
 
void subtract (IntType s)
 
constexpr AXOM_HOST_DEVICE IntType size () const
 
constexpr AXOM_HOST_DEVICE IntTypesize ()
 
constexpr AXOM_HOST_DEVICE bool empty () const
 
constexpr AXOM_HOST_DEVICE auto value () const
 
constexpr AXOM_HOST_DEVICE auto & value ()
 
constexpr auto operator() () const
 
constexpr auto & operator() ()
 
constexpr 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 = SizeTag<IntType>::defaultValue()
 

Protected Attributes

IntType m_value
 

Detailed Description

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

A policy class for the size of a set that can be modified at runtime.

Member Typedef Documentation

◆ TagType

◆ IntType

using axom::slam::policies::RuntimeValue< SizeTag< IntType > >::IntType = decltype(Tag::defaultValue())
inherited

Constructor & Destructor Documentation

◆ DynamicRuntimeSize()

Member Function Documentation

◆ setSize()

template<typename IntType >
void axom::slam::policies::DynamicRuntimeSize< IntType >::setSize ( IntType  s)
inline

◆ add()

template<typename IntType >
void axom::slam::policies::DynamicRuntimeSize< IntType >::add ( IntType  s)
inline

◆ subtract()

template<typename IntType >
void axom::slam::policies::DynamicRuntimeSize< IntType >::subtract ( IntType  s)
inline

◆ size() [1/2]

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

◆ size() [2/2]

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

◆ empty()

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

◆ value() [1/2]

constexpr AXOM_HOST_DEVICE auto axom::slam::policies::RuntimeValue< SizeTag< IntType > >::value ( ) const
inlineconstexprinherited

◆ value() [2/2]

constexpr AXOM_HOST_DEVICE auto& axom::slam::policies::RuntimeValue< SizeTag< IntType > >::value ( )
inlineconstexprinherited

◆ operator()() [1/2]

constexpr auto axom::slam::policies::RuntimeValue< SizeTag< IntType > >::operator() ( ) const
inlineconstexprinherited

◆ operator()() [2/2]

constexpr auto& axom::slam::policies::RuntimeValue< SizeTag< IntType > >::operator() ( )
inlineconstexprinherited

◆ isValid()

constexpr bool axom::slam::policies::RuntimeValue< SizeTag< IntType > >::isValid ( bool  ) const
inlineconstexprinherited

Member Data Documentation

◆ DEFAULT_VALUE

template<typename IntType >
const IntType axom::slam::policies::RuntimeSize< IntType >::DEFAULT_VALUE = SizeTag<IntType>::defaultValue()
staticinherited

◆ m_value

IntType axom::slam::policies::RuntimeValue< SizeTag< IntType > >::m_value
protectedinherited

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