![]() |
ATLAS Offline Software
|
STL-style allocator wrapper for ArenaPoolAllocator
.
More...
#include <ArenaPoolSTLAllocator.h>
Classes | |
struct | rebind |
Standard STL allocator rebinder. More... | |
Public Types | |
typedef std::allocator< T * > | base |
typedef base::value_type | value_type |
Standard STL allocator typedefs. More... | |
typedef base::size_type | size_type |
typedef base::difference_type | difference_type |
Public Member Functions | |
ArenaPoolSTLAllocator (size_t nblock=1000, const std::string &name="") | |
Default constructor. More... | |
template<class U , class V > | |
ArenaPoolSTLAllocator (const ArenaPoolSTLAllocator< U, V > &a) | |
Constructor from another ArenaPoolSTLAllocator . More... | |
size_t | nblock () const |
Return the hinted number of objects allocated per block. More... | |
const std::string & | name () const |
Return the name of this allocator. More... | |
Public Attributes | |
T | elements |
STL member. More... | |
Private Attributes | |
size_t | m_nblock |
std::string | m_name |
STL-style allocator wrapper for ArenaPoolAllocator
.
This is the specialization for pointers, which uses the standard STL allocator. It has no additional functionality except for passing through the name and nblock arguments.
See the file-level comments for details.
Definition at line 362 of file ArenaPoolSTLAllocator.h.
typedef std::allocator<T*> SG::ArenaPoolSTLAllocator< T *, VETO >::base |
Definition at line 366 of file ArenaPoolSTLAllocator.h.
typedef base::difference_type SG::ArenaPoolSTLAllocator< T *, VETO >::difference_type |
Definition at line 371 of file ArenaPoolSTLAllocator.h.
typedef base::size_type SG::ArenaPoolSTLAllocator< T *, VETO >::size_type |
Definition at line 370 of file ArenaPoolSTLAllocator.h.
typedef base::value_type SG::ArenaPoolSTLAllocator< T *, VETO >::value_type |
Standard STL allocator typedefs.
Definition at line 369 of file ArenaPoolSTLAllocator.h.
SG::ArenaPoolSTLAllocator< T *, VETO >::ArenaPoolSTLAllocator | ( | size_t | nblock = 1000 , |
const std::string & | name = "" |
||
) |
SG::ArenaPoolSTLAllocator< T *, VETO >::ArenaPoolSTLAllocator | ( | const ArenaPoolSTLAllocator< U, V > & | a | ) |
Constructor from another ArenaPoolSTLAllocator
.
The name
and nblock
parameters are copied, but the data are not.
const std::string& SG::ArenaPoolSTLAllocator< T *, VETO >::name | ( | ) | const |
Return the name of this allocator.
size_t SG::ArenaPoolSTLAllocator< T *, VETO >::nblock | ( | ) | const |
Return the hinted number of objects allocated per block.
|
inherited |
STL member.
|
private |
Definition at line 417 of file ArenaPoolSTLAllocator.h.
|
private |
Definition at line 416 of file ArenaPoolSTLAllocator.h.