rasdaman complete source
Public Types | Public Member Functions | Protected Attributes | List of all members
r_Storage_Man Class Reference

#include <storageman.hh>

Inheritance diagram for r_Storage_Man:
r_Storage_Man_C r_Storage_Man_CPP

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_Manoperator= (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
 

Detailed Description

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

Member Typedef Documentation

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)

Constructor & Destructor Documentation

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

Member Function Documentation

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

Member Data Documentation

storage_man_alloc r_Storage_Man::myalloc
protected

the storage functions

storage_man_free r_Storage_Man::myfree
protected

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