FEI Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
fei_Pool Class Reference

#include <fei_Pool.hpp>

Classes

struct  Chunk
 
struct  Link
 

Public Member Functions

 fei_Pool (unsigned int n)
 
 ~fei_Pool ()
 
void * alloc ()
 
void free (void *b)
 

Private Member Functions

 fei_Pool (const fei_Pool &)
 
fei_Pooloperator= (const fei_Pool &)
 
void grow ()
 

Private Attributes

Chunkchunks
 
const unsigned int esize
 
Linkhead
 

Detailed Description

Definition at line 26 of file fei_Pool.hpp.

Constructor & Destructor Documentation

fei_Pool::fei_Pool ( unsigned int  n)

Definition at line 12 of file fei_Pool.cpp.

fei_Pool::~fei_Pool ( )

Definition at line 19 of file fei_Pool.cpp.

References chunks, n, and fei_Pool::Chunk::next.

fei_Pool::fei_Pool ( const fei_Pool )
private

Member Function Documentation

void * fei_Pool::alloc ( )
inline

Definition at line 54 of file fei_Pool.hpp.

References grow(), head, and fei_Pool::Link::next.

void fei_Pool::free ( void *  b)
inline

Definition at line 64 of file fei_Pool.hpp.

References head, and fei_Pool::Link::next.

fei_Pool& fei_Pool::operator= ( const fei_Pool )
private
void fei_Pool::grow ( )
private

Definition at line 31 of file fei_Pool.cpp.

References chunks, esize, head, fei_Pool::Chunk::mem, n, fei_Pool::Chunk::next, and fei_Pool::Chunk::size.

Referenced by alloc().

Member Data Documentation

Chunk* fei_Pool::chunks
private

Definition at line 45 of file fei_Pool.hpp.

Referenced by grow(), and ~fei_Pool().

const unsigned int fei_Pool::esize
private

Definition at line 46 of file fei_Pool.hpp.

Referenced by grow().

Link* fei_Pool::head
private

Definition at line 47 of file fei_Pool.hpp.

Referenced by alloc(), free(), and grow().


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