HashPool Class Reference

#include <Allocate.h>

Collaboration diagram for HashPool:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 HashPool (PoolType type, char *name)
 ~HashPool ()
void * Alloc (size_t size)
void Free (void *p)
void FreePool ()
LONG GetTotal ()
BOOL IsEmpty ()

Protected Member Functions

MemHeaderGetFreeMemHeader ()
void MakeFreeMemHeaders ()
void PutFreeMemHeader (MemHeader *memheader)
MemHeaderAllocateBlock (size_t minsize)

Protected Attributes

MemHeaderm_memheader
CCriticalSection m_criticalsection
size_t m_total
PoolType m_type
char * m_name
MemHeaderm_freememheaders
char * m_memheaderlist

Detailed Description

Definition at line 79 of file Allocate.h.


Constructor & Destructor Documentation

HashPool::HashPool PoolType  type,
char *  name
 

HashPool::~HashPool  ) 
 


Member Function Documentation

void* HashPool::Alloc size_t  size  ) 
 

MemHeader* HashPool::AllocateBlock size_t  minsize  )  [inline, protected]
 

void HashPool::Free void *  p  ) 
 

void HashPool::FreePool  ) 
 

MemHeader* HashPool::GetFreeMemHeader  )  [protected]
 

LONG HashPool::GetTotal  )  [inline]
 

Definition at line 106 of file Allocate.h.

BOOL HashPool::IsEmpty  )  [inline]
 

Definition at line 107 of file Allocate.h.

void HashPool::MakeFreeMemHeaders  )  [protected]
 

void HashPool::PutFreeMemHeader MemHeader memheader  )  [protected]
 


Member Data Documentation

CCriticalSection HashPool::m_criticalsection [protected]
 

Definition at line 86 of file Allocate.h.

MemHeader* HashPool::m_freememheaders [protected]
 

Definition at line 92 of file Allocate.h.

MemHeader* HashPool::m_memheader [protected]
 

Definition at line 82 of file Allocate.h.

char* HashPool::m_memheaderlist [protected]
 

Definition at line 93 of file Allocate.h.

char* HashPool::m_name [protected]
 

Definition at line 90 of file Allocate.h.

size_t HashPool::m_total [protected]
 

Definition at line 88 of file Allocate.h.

PoolType HashPool::m_type [protected]
 

Definition at line 89 of file Allocate.h.


The documentation for this class was generated from the following file:
This A:M SDK v12.0 documentation is maintained by Hash Inc. Please address any comments concerning this documentation to AMReports. If you have any information, knowledge, or documentation to share with the A:M developer community, please post them on the Hash SDK forum.

Generated on Thu Oct 27 11:46:52 2005 with doxygen 1.4.5 written by Dimitri van Heesch, © 1997-2001