40#define G4Allocator_hh 1
123 mem_alloc =
static_cast<Type*
>(::operator
new(n *
sizeof(
Type)));
133 ::operator
delete((
void*) p);
146 return 2147483647 /
sizeof(
Type);
180 tname =
typeid(
Type).name();
198 return static_cast<Type*
>(mem.Alloc());
242 return mem.GetNoPages();
252 return mem.GetPageSize();
263 mem.GrowPageSize(sz);
280template <
class T1,
class T2>
290template <
class T1,
class T2>
bool operator==(const G4Allocator< T1 > &, const G4Allocator< T2 > &)
bool operator!=(const G4Allocator< T1 > &, const G4Allocator< T2 > &)
virtual void IncreasePageSize(unsigned int sz)=0
virtual std::size_t GetAllocatedSize() const =0
virtual const char * GetPoolType() const =0
virtual void ResetStorage()=0
virtual int GetNoPages() const =0
virtual ~G4AllocatorBase()
virtual std::size_t GetPageSize() const =0
std::size_t GetPageSize() const
std::size_t GetAllocatedSize() const
const char * GetPoolType() const
void IncreasePageSize(unsigned int sz)
pointer address(reference r) const
pointer allocate(size_type n, void *=0)
void deallocate(pointer p, size_type n)
void FreeSingle(Type *anElement)
ptrdiff_t difference_type
size_type max_size() const
const_pointer address(const_reference r) const
void construct(pointer p, const Type &val)