|
MOAB: Mesh Oriented datABase
(version 5.4.1)
|
allocator for tag data More...
#include <SparseTag.hpp>
Public Member Functions | |
| SparseTagDataAllocator () | |
| constructor | |
| ~SparseTagDataAllocator () | |
| destructor | |
| void * | allocate (size_t data_size) |
| allocates memory of size and returns pointer | |
| void | destroy (void *p) |
| frees the memory | |
allocator for tag data
Definition at line 44 of file SparseTag.hpp.
| moab::SparseTagDataAllocator::SparseTagDataAllocator | ( | ) | [inline] |
| void* moab::SparseTagDataAllocator::allocate | ( | size_t | data_size | ) | [inline] |
allocates memory of size and returns pointer
Definition at line 52 of file SparseTag.hpp.
Referenced by moab::SparseTag::allocate_data().
{
return malloc( data_size );
}
| void moab::SparseTagDataAllocator::destroy | ( | void * | p | ) | [inline] |
frees the memory
Definition at line 57 of file SparseTag.hpp.
Referenced by moab::SparseTag::release_all_data(), and moab::SparseTag::remove_data().
{
free( p );
}