FEI Package Browser (Single Doxygen Collection)  Version of the Day
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() [1/2]

fei_Pool::fei_Pool ( unsigned int  n)

Definition at line 12 of file fei_Pool.cpp.

◆ ~fei_Pool()

fei_Pool::~fei_Pool ( )

Definition at line 19 of file fei_Pool.cpp.

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

◆ fei_Pool() [2/2]

fei_Pool::fei_Pool ( const fei_Pool )
private

Member Function Documentation

◆ alloc()

void * fei_Pool::alloc ( )
inline

Definition at line 54 of file fei_Pool.hpp.

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

◆ free()

void fei_Pool::free ( void *  b)
inline

Definition at line 64 of file fei_Pool.hpp.

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

◆ operator=()

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

◆ grow()

void fei_Pool::grow ( )
private

Definition at line 31 of file fei_Pool.cpp.

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

Referenced by alloc().

Member Data Documentation

◆ chunks

Chunk* fei_Pool::chunks
private

Definition at line 45 of file fei_Pool.hpp.

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

◆ esize

const unsigned int fei_Pool::esize
private

Definition at line 46 of file fei_Pool.hpp.

Referenced by grow().

◆ head

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: