MOAB: Mesh Oriented datABase  (version 5.3.1)
moab::SparseTagDataAllocator Class Reference

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

Detailed Description

allocator for tag data

Definition at line 44 of file SparseTag.hpp.


Constructor & Destructor Documentation

constructor

Definition at line 48 of file SparseTag.hpp.

{}

destructor

Definition at line 50 of file SparseTag.hpp.

{}

Member Function Documentation

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 );
    }

List of all members.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines