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

A policy class for the offset in a set. The offset can be set at runtime. More...

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

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

Public Types

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

Public Member Functions

constexpr AXOM_HOST_DEVICE IntType offset () const
 
constexpr AXOM_HOST_DEVICE IntTypeoffset ()
 
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_Offset_Policies

A few default policies for the offset of an OrderedSet

static const IntType DEFAULT_VALUE = OffsetTag<IntType>::defaultValue()
 

Protected Attributes

IntType m_value
 

Detailed Description

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

A policy class for the offset in a set. The offset can be set at runtime.

Member Typedef Documentation

◆ TagType

◆ IntType

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

Member Function Documentation

◆ offset() [1/2]

template<typename IntType >
constexpr AXOM_HOST_DEVICE IntType axom::slam::policies::RuntimeOffset< IntType >::offset ( ) const
inlineconstexpr

◆ offset() [2/2]

template<typename IntType >
constexpr AXOM_HOST_DEVICE IntType& axom::slam::policies::RuntimeOffset< IntType >::offset ( )
inlineconstexpr

◆ value() [1/2]

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

◆ value() [2/2]

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

◆ operator()() [1/2]

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

◆ operator()() [2/2]

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

◆ isValid()

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

Member Data Documentation

◆ DEFAULT_VALUE

template<typename IntType >
const IntType axom::slam::policies::RuntimeOffset< IntType >::DEFAULT_VALUE = OffsetTag<IntType>::defaultValue()
static

◆ m_value

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

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