Public Member Functions | |
Pool () | |
Standard constructor creating an empty pool. | |
~Pool () | |
Destructor. Frees memory and warns about memory leaks. | |
void | initialize (const unsigned int size) |
Create data vector; does nothing after first initialization. | |
Public Attributes | |
std::vector< entry_type > * | data |
Pointer to the storage object. |
This is where the actual storage for GrowingVectorMemory is provided. Only one of these pools is used for each vector type, thus allocating all vectors from the same storage.
GrowingVectorMemory< VECTOR >::Pool::Pool | ( | ) |
Standard constructor creating an empty pool.
GrowingVectorMemory< VECTOR >::Pool::~Pool | ( | ) |
Destructor. Frees memory and warns about memory leaks.
void GrowingVectorMemory< VECTOR >::Pool::initialize | ( | const unsigned int | size | ) |
Create data vector; does nothing after first initialization.
std::vector<entry_type>* GrowingVectorMemory< VECTOR >::Pool::data |
Pointer to the storage object.