SegmentedAllocator Class Reference

#include <SegmentedAllocator.h>

Inheritance diagram for SegmentedAllocator:

Allocator List of all members.

Public Member Functions

 SegmentedAllocator (size_t nodeCapacity, uint32 nodes)
virtual ~SegmentedAllocator ()
 ENABLE_RUNTIME_CLASSTYPE ()
virtual void * allocate (size_t size)
virtual PoolfindPool (void *ptr)
virtual void freeResources ()
virtual size_t getCapacity ()
void printInfo ()

Private Attributes

std::vector< SegmentedPool * > pools
size_t nodeCapacity
uint32 nodes

Detailed Description

Definition at line 26 of file SegmentedAllocator.h.


Constructor & Destructor Documentation

SegmentedAllocator::SegmentedAllocator ( size_t  nodeCapacity,
uint32  nodes 
)

Definition at line 24 of file SegmentedAllocator.cpp.

References nodeCapacity, and pools.

SegmentedAllocator::~SegmentedAllocator (  )  [virtual]

Definition at line 32 of file SegmentedAllocator.cpp.

References pools.


Member Function Documentation

void * SegmentedAllocator::allocate ( size_t  size  )  [virtual]

Implements Allocator.

Definition at line 43 of file SegmentedAllocator.cpp.

References nodeCapacity, nodes, and pools.

SegmentedAllocator::ENABLE_RUNTIME_CLASSTYPE (  ) 

Reimplemented from Allocator.

Pool * SegmentedAllocator::findPool ( void *  ptr  )  [virtual]

Implements Allocator.

Definition at line 72 of file SegmentedAllocator.cpp.

References pools.

void SegmentedAllocator::freeResources (  )  [virtual]

Implements Allocator.

Definition at line 83 of file SegmentedAllocator.cpp.

References pools.

virtual size_t SegmentedAllocator::getCapacity (  )  [inline, virtual]

Implements Allocator.

Definition at line 40 of file SegmentedAllocator.h.

void SegmentedAllocator::printInfo (  )  [virtual]

Implements Allocator.

Definition at line 99 of file SegmentedAllocator.cpp.

References pools, and pout.


Member Data Documentation

size_t SegmentedAllocator::nodeCapacity [private]

Definition at line 47 of file SegmentedAllocator.h.

Referenced by allocate(), and SegmentedAllocator().

uint32 SegmentedAllocator::nodes [private]

Definition at line 48 of file SegmentedAllocator.h.

Referenced by allocate().

std::vector<SegmentedPool *> SegmentedAllocator::pools [private]

Definition at line 45 of file SegmentedAllocator.h.

Referenced by allocate(), findPool(), freeResources(), printInfo(), SegmentedAllocator(), and ~SegmentedAllocator().


The documentation for this class was generated from the following files:
Generated on Fri Jul 27 22:29:53 2007 for pentagram by  doxygen 1.4.7