library of assembled shared sources

http://lass.cocamware.com

lass::util::AllocatorSimpleBlock< requestedBlockSize, FixedAllocator > Class Template Reference
[Allocator]

A simple fixed-size block allocator. More...

#include <allocator.h>

Collaboration diagram for lass::util::AllocatorSimpleBlock< requestedBlockSize, FixedAllocator >:

Collaboration graph
[legend]

Data Structures

struct  Node

Public Member Functions

 AllocatorSimpleBlock (size_t size)
 ~AllocatorSimpleBlock ()
void * allocate ()
void deallocate (void *pointer)

Private Member Functions

const bool grow ()
 AllocatorSimpleBlock (const AllocatorSimpleBlock &)
AllocatorSimpleBlockoperator= (const AllocatorSimpleBlock &)

Static Private Member Functions

static const size_t blockSize (size_t size, size_t *pSize, size_t *pAllocationsPerBlock)

Private Attributes

Nodeblocks_
Nodepool_
size_t size_
size_t allocationsPerBlock_

Detailed Description

template<size_t requestedBlockSize = 8192, typename FixedAllocator = AllocatorFixed<AllocatorMalloc>>
class lass::util::AllocatorSimpleBlock< requestedBlockSize, FixedAllocator >

A simple fixed-size block allocator.

Definition at line 938 of file allocator.h.


Constructor & Destructor Documentation

template<size_t requestedBlockSize = 8192, typename FixedAllocator = AllocatorFixed<AllocatorMalloc>>
lass::util::AllocatorSimpleBlock< requestedBlockSize, FixedAllocator >::AllocatorSimpleBlock ( size_t  size  )  [inline]

Definition at line 941 of file allocator.h.

template<size_t requestedBlockSize = 8192, typename FixedAllocator = AllocatorFixed<AllocatorMalloc>>
lass::util::AllocatorSimpleBlock< requestedBlockSize, FixedAllocator >::~AllocatorSimpleBlock (  )  [inline]

template<size_t requestedBlockSize = 8192, typename FixedAllocator = AllocatorFixed<AllocatorMalloc>>
lass::util::AllocatorSimpleBlock< requestedBlockSize, FixedAllocator >::AllocatorSimpleBlock ( const AllocatorSimpleBlock< requestedBlockSize, FixedAllocator > &   )  [private]


Member Function Documentation

template<size_t requestedBlockSize = 8192, typename FixedAllocator = AllocatorFixed<AllocatorMalloc>>
void* lass::util::AllocatorSimpleBlock< requestedBlockSize, FixedAllocator >::allocate (  )  [inline]

template<size_t requestedBlockSize = 8192, typename FixedAllocator = AllocatorFixed<AllocatorMalloc>>
void lass::util::AllocatorSimpleBlock< requestedBlockSize, FixedAllocator >::deallocate ( void *  pointer  )  [inline]

template<size_t requestedBlockSize = 8192, typename FixedAllocator = AllocatorFixed<AllocatorMalloc>>
const bool lass::util::AllocatorSimpleBlock< requestedBlockSize, FixedAllocator >::grow (  )  [inline, private]

template<size_t requestedBlockSize = 8192, typename FixedAllocator = AllocatorFixed<AllocatorMalloc>>
static const size_t lass::util::AllocatorSimpleBlock< requestedBlockSize, FixedAllocator >::blockSize ( size_t  size,
size_t *  pSize,
size_t *  pAllocationsPerBlock 
) [inline, static, private]

Definition at line 1000 of file allocator.h.

template<size_t requestedBlockSize = 8192, typename FixedAllocator = AllocatorFixed<AllocatorMalloc>>
AllocatorSimpleBlock& lass::util::AllocatorSimpleBlock< requestedBlockSize, FixedAllocator >::operator= ( const AllocatorSimpleBlock< requestedBlockSize, FixedAllocator > &   )  [private]


Field Documentation

template<size_t requestedBlockSize = 8192, typename FixedAllocator = AllocatorFixed<AllocatorMalloc>>
Node* lass::util::AllocatorSimpleBlock< requestedBlockSize, FixedAllocator >::blocks_ [private]

Definition at line 1014 of file allocator.h.

template<size_t requestedBlockSize = 8192, typename FixedAllocator = AllocatorFixed<AllocatorMalloc>>
Node* lass::util::AllocatorSimpleBlock< requestedBlockSize, FixedAllocator >::pool_ [private]

Definition at line 1015 of file allocator.h.

template<size_t requestedBlockSize = 8192, typename FixedAllocator = AllocatorFixed<AllocatorMalloc>>
size_t lass::util::AllocatorSimpleBlock< requestedBlockSize, FixedAllocator >::size_ [private]

Definition at line 1016 of file allocator.h.

template<size_t requestedBlockSize = 8192, typename FixedAllocator = AllocatorFixed<AllocatorMalloc>>
size_t lass::util::AllocatorSimpleBlock< requestedBlockSize, FixedAllocator >::allocationsPerBlock_ [private]

Definition at line 1017 of file allocator.h.


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

Generated on Mon Nov 10 14:22:16 2008 for Library of Assembled Shared Sources by doxygen 1.5.7.1
SourceForge.net Logo