Sierra Toolkit
Version of the Day
|
#include <fixed_pool_eastl.h>
Classes | |
struct | Link |
Public Member Functions | |
fixed_pool_base (void *pMemory=NULL) | |
fixed_pool_base & | operator= (const fixed_pool_base &) |
void | init (void *pMemory, size_t memorySize, size_t nodeSize, size_t alignment, size_t alignmentOffset=0) |
size_t | peak_size () const |
bool | can_allocate () const |
Public Attributes | |
Link * | mpHead |
Link * | mpNext |
Link * | mpCapacity |
size_t | mnNodeSize |
This is a base class for the implementation of fixed-size pools. In particular, the fixed_pool and fixed_pool_with_overflow classes are based on fixed_pool_base.
Definition at line 161 of file fixed_pool_eastl.h.
|
inline |
Definition at line 166 of file fixed_pool_eastl.h.
|
inline |
operator=
Definition at line 183 of file fixed_pool_eastl.h.
void eastl::fixed_pool_base::init | ( | void * | pMemory, |
size_t | memorySize, | ||
size_t | nodeSize, | ||
size_t | alignment, | ||
size_t | alignmentOffset = 0 |
||
) |
init
Initializes a fixed_pool with a given set of parameters. You cannot call this function twice else the resulting behaviour will be undefined. You can only call this function after constructing the fixed_pool with the default constructor.
Definition at line 47 of file fixed_pool_eastl.cpp.
|
inline |
peak_size
Returns the maximum number of outstanding allocations there have been at any one time. This represents a high water mark for the allocation count.
Definition at line 206 of file fixed_pool_eastl.h.
|
inline |
can_allocate
Returns true if there are any free links.
Definition at line 220 of file fixed_pool_eastl.h.