My Project
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules
MemPool Struct Reference

#include <mem_pool.h>

Public Member Functions

bool Ready ()
 
void AddBlock (MemBlock *blk)
 
void DelBlock (MemBlock *b)
 
void InsertBefore (MemBlock *b, MemBlock *p)
 
void InsertAfter (MemBlock *b, MemBlock *n)
 
void CoalesceRight (MemBlock *b)
 
bool Allocate (MemChunk &chunk, u32 size, int align)
 
void Deallocate (const MemChunk &chunk)
 
void Destroy ()
 
u32 GetFreeSpace ()
 

Data Fields

MemBlock * first
 
MemBlock * last
 

Detailed Description

Definition at line 28 of file mem_pool.h.

Member Function Documentation

void AddBlock ( MemBlock *  blk)
inline

Definition at line 34 of file mem_pool.h.

bool Allocate ( MemChunk &  chunk,
u32  size,
int  align 
)

Definition at line 33 of file mem_pool.cpp.

void CoalesceRight ( MemBlock *  b)

Definition at line 19 of file mem_pool.cpp.

void Deallocate ( const MemChunk &  chunk)

Definition at line 76 of file mem_pool.cpp.

void DelBlock ( MemBlock *  b)
inline

Definition at line 42 of file mem_pool.h.

void Destroy ( )
inline

Definition at line 75 of file mem_pool.h.

u32 GetFreeSpace ( )

Definition at line 127 of file mem_pool.cpp.

void InsertAfter ( MemBlock *  b,
MemBlock *  n 
)
inline

Definition at line 60 of file mem_pool.h.

void InsertBefore ( MemBlock *  b,
MemBlock *  p 
)
inline

Definition at line 51 of file mem_pool.h.

bool Ready ( )
inline

Definition at line 32 of file mem_pool.h.

Field Documentation

MemBlock* first

Definition at line 30 of file mem_pool.h.

MemBlock * last

Definition at line 30 of file mem_pool.h.


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