AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
axom::mint::detail::ExternalStoragePolicy< T > Class Template Reference

Externally-managed storage policy. Reallocation is not supported. More...

#include </home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/main/src/axom/mint/utils/ExternalArray.hpp>

Public Member Functions

template<int Dims>
void onShapeUpdate (StackArray< IndexType, Dims > AXOM_UNUSED_PARAM(shape))
 Callback to report changes in shape/size of valid data in Array. More...
 
template<typename Func >
T * reallocate (T *AXOM_UNUSED_PARAM(old_data), int old_capacity, int AXOM_UNUSED_PARAM(allocator_id), int new_capacity, Func &&AXOM_UNUSED_PARAM(nontrivial_move))
 Reallocates a buffer. No-op for ExternalArray. More...
 
void deallocate (void *AXOM_UNUSED_PARAM(data))
 Frees a buffer. No-op for ExternalArray. More...
 

Detailed Description

template<typename T>
class axom::mint::detail::ExternalStoragePolicy< T >

Externally-managed storage policy. Reallocation is not supported.

Member Function Documentation

◆ onShapeUpdate()

template<typename T >
template<int Dims>
void axom::mint::detail::ExternalStoragePolicy< T >::onShapeUpdate ( StackArray< IndexType, Dims >   AXOM_UNUSED_PARAMshape)
inline

Callback to report changes in shape/size of valid data in Array.

Parameters
[in]shapethe current dimensions of the array
[in]sizethe current number of elements stored in the array

◆ reallocate()

template<typename T >
template<typename Func >
T* axom::mint::detail::ExternalStoragePolicy< T >::reallocate ( T *  AXOM_UNUSED_PARAMold_data,
int  old_capacity,
int   AXOM_UNUSED_PARAMallocator_id,
int  new_capacity,
Func &&  AXOM_UNUSED_PARAMnontrivial_move 
)
inline

Reallocates a buffer. No-op for ExternalArray.

References SLIC_ERROR.

◆ deallocate()

template<typename T >
void axom::mint::detail::ExternalStoragePolicy< T >::deallocate ( void *  AXOM_UNUSED_PARAMdata)
inline

Frees a buffer. No-op for ExternalArray.


The documentation for this class was generated from the following file: