|
AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
|
Provides a wrapper for a StackArray with an additional size member. More...
#include </home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/v0.10.1/src/axom/core/StaticArray.hpp>

Public Member Functions | |
| AXOM_HOST_DEVICE int | size () const |
| Returns the size of the static array. More... | |
| AXOM_HOST_DEVICE void | push_back (const T &obj) |
| Pushes an object to the back of the static array. More... | |
| AXOM_HOST_DEVICE void | clear () |
| Clears the data from the static array. More... | |
| 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 StackArray with an additional size member.
| T | the type of the values to hold. |
| N | the number of values in the array. |
|
inline |
Returns the size of the static array.
|
inline |
Pushes an object to the back of the static array.
| [in] | obj | the object to be added to the back. |
|
inline |
Clears the data from the static array.
|
inlinenoexceptinherited |
Accessor, returns a reference to the value at the given index.
| [in] | i | the index to access. |
References axom::StackArray< T, N >::m_data.
|
inlineconstexprnoexceptinherited |
References axom::StackArray< T, N >::m_data.
|
inlinenoexceptinherited |
User defined conversion to a raw pointer.
|
inlineconstexprnoexceptinherited |
|
inlinenoexceptinherited |
Begin/end iterators.
References axom::StackArray< T, N >::m_data.
|
inlinenoexceptinherited |
References axom::StackArray< T, N >::m_data.
|
inlinenoexceptinherited |
References axom::StackArray< T, N >::m_data.
|
inlinenoexceptinherited |
References axom::StackArray< T, N >::m_data.
|
inherited |