|
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/v0.10.1/src/axom/core/StackArray.hpp>

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 * | 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 |
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. |
|
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 |
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] |