48 #ifndef GAUDIKERNEL_Allocator_h 49 #define GAUDIKERNEL_Allocator_h 1 119 pointer
address(reference r)
const {
return &r; }
120 const_pointer
address(const_reference r)
const {
return &r; }
131 mem_alloc =
static_cast<Type*
>(::operator
new(n*
sizeof(
Type)));
143 ::operator
delete((
void*)p);
157 return 2147483647/
sizeof(
Type);
184 template <
class Type>
194 template <
class Type>
203 template <
class Type>
213 template <
class Type>
224 template <
class Type>
237 template <
class Type>
247 template <
class T1,
class T2>
259 template <
class T1,
class T2>
Type * MallocSingle()
Malloc and Free methods to be used when overloading new and delete operators in the client <Type> obj...
const_pointer address(const_reference r) const
ptrdiff_t difference_type
void FreeSingle(Type *anElement)
void deallocate(pointer p, size_type n)
Deallocates n elements of type Type, but doesn't destroy.
unsigned int Size() const
Return storage size.
void ResetStorage()
Returns allocated storage to the free store, resets allocator and page sizes.
pointer address(reference r) const
Returns the address of values.
GaudiUtils::AllocatorPool mem
const Type * const_pointer
void * Alloc()
Allocate one element.
void Reset()
Return storage to the free store.
void destroy(pointer p)
Destroy *p but doesn't deallocate.
void construct(pointer p, const Type &val)
Initialises *p by val.
size_type max_size() const
Returns the maximum number of elements that can be allocated.
pointer allocate(size_type n, void *=0)
Allocates space for n elements of type Type, but does not initialise.
void Free(void *b)
Return an element back to the pool.
const Type & const_reference
Forward declarations for the functions in SerializeSTL.h.
size_t GetAllocatedSize() const
Returns the size of the total memory allocated.
Type
the list of available types for ntuples