Protium
Math and Design Features
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros Pages
Protium::Allocation Namespace Reference

Small object allocation module. More...

Classes

class  Chunk
 Represents a fixed number of blocks. More...
 
class  FixedAllocator
 Pool of allocation chunks. More...
 
class  SmallObject
 Inherit from this in order to benefit from small object allocation. More...
 
class  SmallObjectAllocator
 Singleton small object allocator. More...
 
class  SmallObjectAllocatorImplementation
 Manages a pool of fixed allocators. More...
 
class  SmallObjectBase
 Base class for small objects to be used in the small object allocation scheme. More...
 
class  SmallValueObject
 Inherit from this in order to benefit from small object allocation. More...
 
class  STLAdapter
 Allocator to be used by STL containers. More...
 

Typedefs

typedef SmallObject DefaultSmallObject
 A default small obect type. More...
 
typedef SmallValueObject DefaultSmallValueObject
 

Functions

template<template< class, class > class T, std::size_t C, std::size_t M, std::size_t O, template< class > class L, class X >
unsigned int GetPriority (SmallObjectAllocator< T, C, M, O, L, X > *)
 
template<typename Host >
bool operator!= (const STLAdapter< Host > &, const STLAdapter< Host > &)
 Always returns false. Nothing internal. More...
 
template<typename Host >
bool operator== (const STLAdapter< Host > &, const STLAdapter< Host > &)
 Always returns true. Nothing internal. More...
 

Detailed Description

Small object allocation module.

Typedef Documentation

A default small obect type.

Warning
Do not use if you are using as a base class for a singleton object

Definition at line 173 of file SmallObject.h.

Function Documentation

template<template< class, class > class T, std::size_t C, std::size_t M, std::size_t O, template< class > class L, class X >
unsigned int Protium::Allocation::GetPriority ( SmallObjectAllocator< T, C, M, O, L, X > *  )
inline

Definition at line 94 of file SmallObjectAllocator.h.

template<typename Host >
bool Protium::Allocation::operator!= ( const STLAdapter< Host > &  ,
const STLAdapter< Host > &   
)
inline

Always returns false. Nothing internal.

Definition at line 109 of file STLAdapter.h.

template<typename Host >
bool Protium::Allocation::operator== ( const STLAdapter< Host > &  ,
const STLAdapter< Host > &   
)
inline

Always returns true. Nothing internal.

Definition at line 103 of file STLAdapter.h.