Public Member Functions | Protected Attributes

DataStructures::BytePool Class Reference

#include <DS_BytePool.h>

Collaboration diagram for DataStructures::BytePool:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 BytePool ()
 ~BytePool ()
void SetPageSize (int size)
unsigned char * Allocate (int bytesWanted, const char *file, unsigned int line)
void Release (unsigned char *data, const char *file, unsigned int line)
void Clear (const char *file, unsigned int line)

Protected Attributes

MemoryPool< unsigned char[128]> pool128
MemoryPool< unsigned char[512]> pool512
MemoryPool< unsigned char[2048]> pool2048
MemoryPool< unsigned char[8192]> pool8192

Detailed Description

Definition at line 22 of file DS_BytePool.h.


Constructor & Destructor Documentation

BytePool::BytePool (  ) 

Definition at line 10 of file DS_BytePool.cpp.

Here is the call graph for this function:

BytePool::~BytePool (  ) 

Definition at line 17 of file DS_BytePool.cpp.


Member Function Documentation

unsigned char * BytePool::Allocate ( int  bytesWanted,
const char *  file,
unsigned int  line 
)

Definition at line 27 of file DS_BytePool.cpp.

Here is the call graph for this function:

void BytePool::Clear ( const char *  file,
unsigned int  line 
)

Definition at line 138 of file DS_BytePool.cpp.

Here is the call graph for this function:

void BytePool::Release ( unsigned char *  data,
const char *  file,
unsigned int  line 
)

Definition at line 86 of file DS_BytePool.cpp.

Here is the call graph for this function:

void BytePool::SetPageSize ( int  size  ) 

Definition at line 20 of file DS_BytePool.cpp.

Here is the call graph for this function:


Member Data Documentation

MemoryPool<unsigned char[128]> DataStructures::BytePool::pool128 [protected]

Definition at line 33 of file DS_BytePool.h.

MemoryPool<unsigned char[2048]> DataStructures::BytePool::pool2048 [protected]

Definition at line 35 of file DS_BytePool.h.

MemoryPool<unsigned char[512]> DataStructures::BytePool::pool512 [protected]

Definition at line 34 of file DS_BytePool.h.

MemoryPool<unsigned char[8192]> DataStructures::BytePool::pool8192 [protected]

Definition at line 36 of file DS_BytePool.h.


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