#include <SegmentedAllocator.h>
Inheritance diagram for SegmentedAllocator:
Public Member Functions | |
SegmentedAllocator (size_t nodeCapacity, uint32 nodes) | |
virtual | ~SegmentedAllocator () |
ENABLE_RUNTIME_CLASSTYPE () | |
virtual void * | allocate (size_t size) |
virtual Pool * | findPool (void *ptr) |
virtual void | freeResources () |
virtual size_t | getCapacity () |
void | printInfo () |
Private Attributes | |
std::vector< SegmentedPool * > | pools |
size_t | nodeCapacity |
uint32 | nodes |
Definition at line 26 of file SegmentedAllocator.h.
SegmentedAllocator::SegmentedAllocator | ( | size_t | nodeCapacity, | |
uint32 | nodes | |||
) |
SegmentedAllocator::~SegmentedAllocator | ( | ) | [virtual] |
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] |
void SegmentedAllocator::freeResources | ( | ) | [virtual] |
virtual size_t SegmentedAllocator::getCapacity | ( | ) | [inline, virtual] |
void SegmentedAllocator::printInfo | ( | ) | [virtual] |
size_t SegmentedAllocator::nodeCapacity [private] |
Definition at line 47 of file SegmentedAllocator.h.
Referenced by allocate(), and SegmentedAllocator().
uint32 SegmentedAllocator::nodes [private] |
std::vector<SegmentedPool *> SegmentedAllocator::pools [private] |
Definition at line 45 of file SegmentedAllocator.h.
Referenced by allocate(), findPool(), freeResources(), printInfo(), SegmentedAllocator(), and ~SegmentedAllocator().