Mesh Oriented datABase  (version 5.5.0)
An array-based unstructured mesh library
moab::SparseTagDataAllocator Class Reference

allocator for tag data More...

#include <SparseTag.hpp>

Public Member Functions

 SparseTagDataAllocator ()
 constructor More...
 
 ~SparseTagDataAllocator ()
 destructor More...
 
void * allocate (size_t data_size)
 allocates memory of size and returns pointer More...
 
void destroy (void *p)
 frees the memory More...
 

Detailed Description

allocator for tag data

Definition at line 44 of file SparseTag.hpp.

Constructor & Destructor Documentation

◆ SparseTagDataAllocator()

moab::SparseTagDataAllocator::SparseTagDataAllocator ( )
inline

constructor

Definition at line 48 of file SparseTag.hpp.

48 {}

◆ ~SparseTagDataAllocator()

moab::SparseTagDataAllocator::~SparseTagDataAllocator ( )
inline

destructor

Definition at line 50 of file SparseTag.hpp.

50 {}

Member Function Documentation

◆ allocate()

void* moab::SparseTagDataAllocator::allocate ( size_t  data_size)
inline

allocates memory of size and returns pointer

Definition at line 52 of file SparseTag.hpp.

53  {
54  return malloc( data_size );
55  }

Referenced by moab::SparseTag::allocate_data().

◆ destroy()

void moab::SparseTagDataAllocator::destroy ( void *  p)
inline

frees the memory

Definition at line 57 of file SparseTag.hpp.

58  {
59  free( p );
60  }

Referenced by moab::SparseTag::release_all_data(), and moab::SparseTag::remove_data().


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