Sierra Toolkit  Version of the Day
eastl::fixed_vector_allocator< nodeSize, nodeCount, nodeAlignment, nodeAlignmentOffset, bEnableOverflow, Allocator > Class Template Reference

#include <fixed_pool_eastl.h>

Public Types

enum  {
  kNodeSize = nodeSize,
  kNodeCount = nodeCount,
  kNodesSize = nodeCount * nodeSize,
  kBufferSize = kNodesSize + ((nodeAlignment > 1) ? nodeSize-1 : 0) + nodeAlignmentOffset,
  kNodeAlignment = nodeAlignment,
  kNodeAlignmentOffset = nodeAlignmentOffset
}
 
typedef fixed_vector_allocator< nodeSize, nodeCount, nodeAlignment, nodeAlignmentOffset, bEnableOverflow, Allocator > this_type
 
typedef Allocator overflow_allocator_type
 

Public Member Functions

 fixed_vector_allocator (void *pNodeBuffer)
 
fixed_vector_allocatoroperator= (const fixed_vector_allocator &x)
 
void * allocate (size_t n, int flags=0)
 
void * allocate (size_t n, size_t alignment, size_t offset, int flags=0)
 
void deallocate (void *p, size_t n)
 
const char * get_name () const
 
void set_name (const char *pName)
 
overflow_allocator_type & get_overflow_allocator ()
 
void set_overflow_allocator (const overflow_allocator_type &allocator)
 

Public Attributes

overflow_allocator_type mOverflowAllocator
 
void * mpPoolBegin
 

Detailed Description

template<size_t nodeSize, size_t nodeCount, size_t nodeAlignment, size_t nodeAlignmentOffset, bool bEnableOverflow, typename Allocator = EASTLAllocatorType>
class eastl::fixed_vector_allocator< nodeSize, nodeCount, nodeAlignment, nodeAlignmentOffset, bEnableOverflow, Allocator >

fixed_vector_allocator

Template parameters: nodeSize The size of individual objects. nodeCount The number of objects the pool contains. nodeAlignment The alignment of the objects to allocate. nodeAlignmentOffset The alignment offset of the objects to allocate. bEnableOverflow Whether or not we should use the overflow heap if our object pool is exhausted. Allocator Overflow allocator, which is only used if bEnableOverflow == true. Defaults to the global heap.

Definition at line 1148 of file fixed_pool_eastl.h.


The documentation for this class was generated from the following file: