soma-io 6.0.6
soma::MemoryAllocator Class Reference

Normal allocation mode: allocation in main memory. More...

#include <soma-io/allocator/allocator.h>

Inheritance diagram for soma::MemoryAllocator:
Collaboration diagram for soma::MemoryAllocator:

Public Member Functions

virtual ~MemoryAllocator ()
 
virtual char * allocate (size_t n, size_t elemsize, DataSource *datasource) const
 
virtual void deallocate (char *ptr, size_t n, size_t sz) const
 
- Public Member Functions inherited from soma::LowLevelAllocator
virtual ~LowLevelAllocator ()
 
virtual bool canDuplicate () const
 

Static Public Member Functions

static const MemoryAllocatorsingleton ()
 

Additional Inherited Members

- Protected Member Functions inherited from soma::LowLevelAllocator
 LowLevelAllocator ()
 

Detailed Description

Normal allocation mode: allocation in main memory.

Definition at line 82 of file allocator.h.

Constructor & Destructor Documentation

◆ ~MemoryAllocator()

virtual soma::MemoryAllocator::~MemoryAllocator ( )
virtual

Member Function Documentation

◆ allocate()

virtual char * soma::MemoryAllocator::allocate ( size_t n,
size_t elemsize,
DataSource * datasource ) const
virtual

◆ deallocate()

virtual void soma::MemoryAllocator::deallocate ( char * ptr,
size_t n,
size_t sz ) const
virtual

◆ singleton()

static const MemoryAllocator & soma::MemoryAllocator::singleton ( )
static

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