Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

base::FixedAllocator Class Reference

Collaboration diagram for base::FixedAllocator:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 FixedAllocator (std::size_t blockSize=0)
 FixedAllocator (const FixedAllocator &)
FixedAllocatoroperator= (const FixedAllocator &)
 ~FixedAllocator ()
void Swap (FixedAllocator &rhs)
void * Allocate ()
void Deallocate (void *p)
std::size_t BlockSize () const
bool operator< (std::size_t rhs) const

Constructor & Destructor Documentation

FixedAllocator::FixedAllocator std::size_t  blockSize = 0  )  [explicit]
 

Definition at line 161 of file SmallObj.cpp.

References DEFAULT_CHUNK_SIZE, and numBlocks.

FixedAllocator::FixedAllocator const FixedAllocator  ) 
 

Definition at line 183 of file SmallObj.cpp.

References next_, and prev_.

FixedAllocator::~FixedAllocator  ) 
 

Definition at line 213 of file SmallObj.cpp.

References next_, and prev_.


Member Function Documentation

void * FixedAllocator::Allocate  ) 
 

Definition at line 257 of file SmallObj.cpp.

Referenced by base::SmallObjAllocator::Allocate().

std::size_t base::FixedAllocator::BlockSize  )  const [inline]
 

Definition at line 124 of file SmallObj.

Referenced by base::SmallObjAllocator::Allocate(), base::SmallObjAllocator::Deallocate(), and operator<().

void FixedAllocator::Deallocate void *  p  ) 
 

Definition at line 294 of file SmallObj.cpp.

Referenced by base::SmallObjAllocator::Deallocate().

bool base::FixedAllocator::operator< std::size_t  rhs  )  const [inline]
 

Definition at line 127 of file SmallObj.

References BlockSize().

FixedAllocator & FixedAllocator::operator= const FixedAllocator  ) 
 

Definition at line 202 of file SmallObj.cpp.

References Swap().

void FixedAllocator::Swap FixedAllocator rhs  ) 
 

Definition at line 241 of file SmallObj.cpp.

References allocChunk_, blockSize_, chunks_, deallocChunk_, numBlocks_, and base::swap().

Referenced by operator=().


The documentation for this class was generated from the following files:
Generated on Thu Jul 29 16:39:21 2004 for OpenSim by doxygen 1.3.6