rasdaman API
|
#include <storageman.hh>
Public Types | |
typedef void *(* | storage_man_alloc )(size_t) |
types of storage management functions More... | |
typedef void(* | storage_man_free )(void *data) |
Public Member Functions | |
r_Storage_Man (void) | |
default constructor, switches to c-style allocation More... | |
r_Storage_Man (storage_man_alloc a, storage_man_free f) | |
constructor setting the storage functions More... | |
r_Storage_Man (const r_Storage_Man &src) | |
copy constructor More... | |
~r_Storage_Man (void) | |
destructor More... | |
void | set_storage_functions (storage_man_alloc a, storage_man_free f) |
setting the storage functions More... | |
r_Storage_Man & | operator= (const r_Storage_Man &src) |
assignment More... | |
void * | storage_alloc (size_t size) const throw (r_Error) |
allocation More... | |
void | storage_free (void *data) const |
deallocation More... | |
Protected Attributes | |
storage_man_alloc | myalloc |
the storage functions More... | |
storage_man_free | myfree |
INCLUDE: storageman.hh
MODULE: raslib
CLASSES: r_Storage_Man, r_Storage_Man_C, r_Storage_Man_CPP
COMMENTS:
Transparent handling of malloc/free vs. new/delete
typedef void*(* r_Storage_Man::storage_man_alloc)(size_t) |
types of storage management functions
typedef void(* r_Storage_Man::storage_man_free)(void *data) |
r_Storage_Man::r_Storage_Man | ( | void | ) |
default constructor, switches to c-style allocation
r_Storage_Man::r_Storage_Man | ( | storage_man_alloc | a, |
storage_man_free | f | ||
) |
constructor setting the storage functions
r_Storage_Man::r_Storage_Man | ( | const r_Storage_Man & | src | ) |
copy constructor
r_Storage_Man::~r_Storage_Man | ( | void | ) |
destructor
r_Storage_Man& r_Storage_Man::operator= | ( | const r_Storage_Man & | src | ) |
assignment
void r_Storage_Man::set_storage_functions | ( | storage_man_alloc | a, |
storage_man_free | f | ||
) |
setting the storage functions
void* r_Storage_Man::storage_alloc | ( | size_t | size | ) | const |
throw | ( | r_Error | |||
) |
allocation
void r_Storage_Man::storage_free | ( | void * | data | ) | const |
deallocation
|
protected |
the storage functions
|
protected |