soma-io
5.0.5
|
This allocator doesn't allocate anything. More...
#include <soma-io/allocator/allocator.h>
Public Member Functions | |
virtual | ~NullAllocator () |
virtual char * | allocate (size_t n, size_t elemsize, DataSource *datasource) const |
virtual void | deallocate (char *ptr, size_t n, size_t sz) const |
![]() | |
virtual | ~LowLevelAllocator () |
virtual bool | canDuplicate () const |
Static Public Member Functions | |
static const NullAllocator & | singleton () |
Additional Inherited Members | |
![]() | |
LowLevelAllocator () | |
This allocator doesn't allocate anything.
NullAllocator is used to "fake" allocation and use data already allocated (and owned) by other structures
Definition at line 108 of file allocator.h.
|
virtual |
|
virtual |
Implements soma::LowLevelAllocator.
|
virtual |
Implements soma::LowLevelAllocator.
|
static |