|  | The Gaudi Framework
    v28r2
    | 
#include <GaudiKernel/Allocator.h>

| Classes | |
| struct | rebind | 
| Public Types | |
| typedef Type | value_type | 
| typedef size_t | size_type | 
| typedef ptrdiff_t | difference_type | 
| typedef Type * | pointer | 
| typedef const Type * | const_pointer | 
| typedef Type & | reference | 
| typedef const Type & | const_reference | 
| Public Member Functions | |
| Allocator () throw () | |
| Constructor.  More... | |
| ~Allocator () throw () | |
| destructor  More... | |
| Type * | MallocSingle () | 
| Malloc and Free methods to be used when overloading new and delete operators in the client <Type> object.  More... | |
| void | FreeSingle (Type *anElement) | 
| void | ResetStorage () | 
| Returns allocated storage to the free store, resets allocator and page sizes.  More... | |
| size_t | GetAllocatedSize () const | 
| Returns the size of the total memory allocated.  More... | |
| template<class U > | |
| Allocator (const Allocator< U > &right) throw () | |
| Copy constructor.  More... | |
| pointer | address (reference r) const | 
| Returns the address of values.  More... | |
| const_pointer | address (const_reference r) const | 
| pointer | allocate (size_type n, void *=0) | 
| Allocates space for n elements of type Type, but does not initialise.  More... | |
| void | deallocate (pointer p, size_type n) | 
| Deallocates n elements of type Type, but doesn't destroy.  More... | |
| void | construct (pointer p, const Type &val) | 
| Initialises *p by val.  More... | |
| void | destroy (pointer p) | 
| Destroy *p but doesn't deallocate.  More... | |
| size_type | max_size () const throw () | 
| Returns the maximum number of elements that can be allocated.  More... | |
| Private Attributes | |
| GaudiUtils::AllocatorPool | mem | 
The class is imported from Geant4 project
Definition at line 71 of file Allocator.h.
| typedef const Type* GaudiUtils::Allocator< Type >::const_pointer | 
Definition at line 109 of file Allocator.h.
| typedef const Type& GaudiUtils::Allocator< Type >::const_reference | 
Definition at line 111 of file Allocator.h.
| typedef ptrdiff_t GaudiUtils::Allocator< Type >::difference_type | 
Definition at line 107 of file Allocator.h.
| typedef Type* GaudiUtils::Allocator< Type >::pointer | 
Definition at line 108 of file Allocator.h.
| typedef Type& GaudiUtils::Allocator< Type >::reference | 
Definition at line 110 of file Allocator.h.
| typedef size_t GaudiUtils::Allocator< Type >::size_type | 
Definition at line 106 of file Allocator.h.
| typedef Type GaudiUtils::Allocator< Type >::value_type | 
Definition at line 105 of file Allocator.h.
| GaudiUtils::Allocator< Type >::Allocator | ( | ) | ||
| throw | ( | |||
| ) | ||||
| GaudiUtils::Allocator< Type >::~Allocator | ( | ) | ||
| throw | ( | |||
| ) | ||||
| 
 | inline | ||||||||||||||
| 
 | inline | 
| 
 | inline | 
Definition at line 120 of file Allocator.h.
| 
 | inline | 
Allocates space for n elements of type Type, but does not initialise.
Definition at line 123 of file Allocator.h.
| 
 | inline | 
| 
 | inline | 
Deallocates n elements of type Type, but doesn't destroy.
Definition at line 136 of file Allocator.h.
| 
 | inline | 
| 
 | inline | 
Definition at line 214 of file Allocator.h.
| 
 | inline | 
Returns the size of the total memory allocated.
Definition at line 238 of file Allocator.h.
| 
 | inline | 
Malloc and Free methods to be used when overloading new and delete operators in the client <Type> object.
Definition at line 204 of file Allocator.h.
| 
 | inline | |||||||||||||
Returns the maximum number of elements that can be allocated.
Definition at line 153 of file Allocator.h.
| 
 | inline | 
Returns allocated storage to the free store, resets allocator and page sizes.
Note: contents in memory are lost using this call !
Definition at line 225 of file Allocator.h.
| 
 | private | 
Definition at line 166 of file Allocator.h.