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 Types

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

Public Member Functions

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::RuntimeSize< IntType >

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

Member Typedef Documentation

◆ TagType

◆ IntType

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

Member Function Documentation

◆ size() [1/2]

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

◆ size() [2/2]

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

◆ empty()

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

◆ 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()
static

◆ m_value

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

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