|
AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
|
This class extends StackArray with some std::vector-like convenience methods. More...
#include </home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/main/src/axom/core/StaticArray.hpp>

Public Types | |
| using | value_type = T |
Public Member Functions | |
| AXOM_HOST_DEVICE | StaticArray () |
| Constructor. More... | |
| AXOM_HOST_DEVICE | StaticArray (const StaticArray &obj) |
| Copy Constructor. More... | |
| AXOM_HOST_DEVICE | ~StaticArray () |
| Destructor. More... | |
| AXOM_HOST_DEVICE StaticArray & | operator= (const StaticArray &obj) |
| Copy assignment operator. More... | |
| constexpr AXOM_HOST_DEVICE axom::IndexType | capacity () const |
| Returns the capacity of the static array. More... | |
| AXOM_HOST_DEVICE axom::IndexType | 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 | pop_back () |
| Pops the last element off the list. More... | |
| AXOM_HOST_DEVICE void | clear () |
| Clears the data from the static array. More... | |
| AXOM_HOST_DEVICE bool | empty () const |
| Determines whether the container is empty. More... | |
| AXOM_HOST_DEVICE void | fill (const T &fill_value) |
| Fills the container with the supplied value. 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 * | 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] |
This class extends StackArray with some std::vector-like convenience methods.
| T | the type of the values to hold. |
| N | the number of values in the array. |
|
inherited |
|
inline |
Constructor.
|
inline |
Copy Constructor.
| obj | The object to be copied. |
References axom::StackArray< T, N >::m_data.
|
inline |
Destructor.
|
inline |
Copy assignment operator.
| obj | The object to be copied. |
References axom::StackArray< T, N >::m_data.
|
inlineconstexpr |
Returns the capacity of the static 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. |
References axom::StaticArray< T, N >::capacity().
|
inline |
Pops the last element off the list.
|
inline |
Clears the data from the static array.
|
inline |
Determines whether the container is empty.
|
inline |
Fills the container with the supplied value.
| fill_value | The fill value. |
|
inlinestaticconstexprinherited |
Return size of the 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 |
References axom::StackArray< T, N >::m_data.
|
inlinenoexceptinherited |
References axom::StackArray< T, N >::m_data.
|
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 |