AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
|
Provides a wrapper for a compile time sized array, similar to std::array. This class is needed because NVCC doesn't capture standard stack arrays in device lambdas. Furthermore we can't use std::array because it is not host-device decorated. More...
#include </home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/feature-whitlock-mir_update/src/axom/core/StackArray.hpp>
Public Types | |
using | value_type = T |
Public Member Functions | |
AXOM_HOST_DEVICE T & | operator[] (IndexType i) noexcept |
Accessor, returns a reference to the value at the given index. More... | |
constexpr AXOM_HOST_DEVICE const T & | operator[] (IndexType i) const noexcept |
AXOM_HOST_DEVICE | operator T* () noexcept |
User defined conversion to a raw pointer. More... | |
constexpr AXOM_HOST_DEVICE | operator const T * () const noexcept |
AXOM_HOST_DEVICE T * | data () noexcept |
AXOM_HOST_DEVICE const T * | data () const noexcept |
AXOM_HOST_DEVICE T * | begin () noexcept |
Begin/end iterators. More... | |
AXOM_HOST_DEVICE const T * | begin () const noexcept |
AXOM_HOST_DEVICE T * | end () noexcept |
AXOM_HOST_DEVICE const T * | end () const noexcept |
Static Public Member Functions | |
constexpr static AXOM_HOST_DEVICE int | size () |
Return size of the array. More... | |
Public Attributes | |
T | m_data [N] |
Provides a wrapper for a compile time sized array, similar to std::array. This class is needed because NVCC doesn't capture standard stack arrays in device lambdas. Furthermore we can't use std::array because it is not host-device decorated.
T | the type of the values to hold. |
N | the number of values in the array. |
using axom::StackArray< T, N >::value_type = T |
|
inlinestaticconstexpr |
Return size of the array.
|
inlinenoexcept |
Accessor, returns a reference to the value at the given index.
[in] | i | the index to access. |
References axom::StackArray< T, N >::m_data.
|
inlineconstexprnoexcept |
References axom::StackArray< T, N >::m_data.
|
inlinenoexcept |
User defined conversion to a raw pointer.
|
inlineconstexprnoexcept |
|
inlinenoexcept |
References axom::StackArray< T, N >::m_data.
|
inlinenoexcept |
References axom::StackArray< T, N >::m_data.
|
inlinenoexcept |
Begin/end iterators.
References axom::StackArray< T, N >::m_data.
|
inlinenoexcept |
References axom::StackArray< T, N >::m_data.
|
inlinenoexcept |
References axom::StackArray< T, N >::m_data.
|
inlinenoexcept |
References axom::StackArray< T, N >::m_data.
T axom::StackArray< T, N >::m_data[N] |