|
AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
|
Default storage policy for axom::Array. Uses Umpire to reallocate buffers. More...
#include </home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/main/src/axom/core/Array.hpp>

Public Member Functions | |
| template<int Dims> | |
| void | onShapeUpdate (StackArray< IndexType, Dims >) |
| Callback to report changes in shape of data in Array. More... | |
| template<typename Func > | |
| T * | reallocate (T *old_data, int, int allocator_id, int new_capacity, Func &&nontrivial_move) |
| Reallocates a buffer. More... | |
| void | deallocate (T *data) |
| Frees a buffer. More... | |
Default storage policy for axom::Array. Uses Umpire to reallocate buffers.
|
inline |
Callback to report changes in shape of data in Array.
| [in] | shape | the current dimensions of the array |
|
inline |
Reallocates a buffer.
| [in] | old_data | pointer to the old buffer |
| [in] | old_capacity | the capacity of the currently allocated buffer |
| [in] | allocator_id | the allocator ID to use |
| [in] | new_capacity | the capacity to allocate |
| [in] | nontrivial_move | a callback to move elements that aren't trivially copyable |
References axom::deallocate().
|
inline |
Frees a buffer.
References axom::deallocate().