|
AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
|
Storage policy for sidre::Array. Uses Sidre to manage buffers. More...
#include </home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/main/src/axom/sidre/core/Array.hpp>
Public Member Functions | |
| template<int Dims> | |
| void | onShapeUpdate (StackArray< IndexType, Dims > shape) |
| Callback to report changes in shape of data in Array. More... | |
| template<typename Func > | |
| T * | reallocate (T *AXOM_UNUSED_PARAM(old_data), int AXOM_UNUSED_PARAM(old_capacity), int AXOM_UNUSED_PARAM(allocator_id), int new_capacity, Func &&AXOM_UNUSED_PARAM(nontrivial_move)) |
| Reallocates a buffer. More... | |
| void | deallocate (T *AXOM_UNUSED_PARAM(data)) |
| Deallocator callback. Unused since Sidre manages the underlying memory. More... | |
| void | setView (View *view) |
| Sets the underlying Sidre view. More... | |
| View * | getView () |
| Return the underlying Sidre view. More... | |
| const View * | getView () const |
Static Public Member Functions | |
| static constexpr TypeID | sidreTypeId () |
| Return the TypeID corresponding to T. More... | |
Storage policy for sidre::Array. Uses Sidre to manage buffers.
|
inline |
Callback to report changes in shape of data in Array.
| [in] | shape | the current dimensions of the array |
References axom::sidre::detail::describeViewImpl(), and axom::sidre::detail::SidreStoragePolicy< T >::sidreTypeId().
|
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::sidre::View::allocate(), axom::sidre::View::getVoidPtr(), axom::sidre::View::isEmpty(), axom::sidre::View::reallocate(), and axom::sidre::detail::SidreStoragePolicy< T >::sidreTypeId().
|
inline |
Deallocator callback. Unused since Sidre manages the underlying memory.
|
inlinestaticconstexpr |
Return the TypeID corresponding to T.
|
inline |
Sets the underlying Sidre view.
|
inline |
Return the underlying Sidre view.
|
inline |