Sierra Toolkit Version of the Day
eastl::fixed_pool_base Struct Reference

#include <fixed_pool_eastl.h>

Inheritance diagram for eastl::fixed_pool_base:
Collaboration diagram for eastl::fixed_pool_base:

List of all members.

Classes

struct  Link

Public Member Functions

 fixed_pool_base (void *pMemory=NULL)
fixed_pool_baseoperator= (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

LinkmpHead
LinkmpNext
LinkmpCapacity
size_t mnNodeSize

Detailed Description

fixed_pool_base

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.


Constructor & Destructor Documentation

eastl::fixed_pool_base::fixed_pool_base ( void *  pMemory = NULL) [inline]

fixed_pool_base

Definition at line 166 of file fixed_pool_eastl.h.


Member Function Documentation

fixed_pool_base& eastl::fixed_pool_base::operator= ( const fixed_pool_base ) [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.

Reimplemented in eastl::fixed_allocator_with_overflow, and eastl::fixed_pool_with_overflow< Allocator >.

Definition at line 47 of file fixed_pool_eastl.cpp.

size_t eastl::fixed_pool_base::peak_size ( ) const [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.

bool eastl::fixed_pool_base::can_allocate ( ) const [inline]

can_allocate

Returns true if there are any free links.

Definition at line 220 of file fixed_pool_eastl.h.


The documentation for this struct was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines