OnixS C++ CME MDP Streamlined Market Data Handler  1.2.0
API Documentation
MemoryPoolAllocator< Object > Class Template Reference

#include <OnixS/CME/Streamlined/MemoryPool.h>

Classes

struct  rebind
 

Public Types

typedef Object value_type
 
typedef Object * pointer
 
typedef const Object * const_pointer
 
typedef Object & reference
 
typedef const Object & const_reference
 
typedef std::size_t size_type
 
typedef std::ptrdiff_t difference_type
 

Public Member Functions

 MemoryPoolAllocator ()
 
 MemoryPoolAllocator (MemoryPool &memoryPool)
 
 MemoryPoolAllocator (const MemoryPoolAllocator &other)
 
template<class Other >
 MemoryPoolAllocator (const MemoryPoolAllocator< Other > &other)
 
 ~MemoryPoolAllocator ()
 
MemoryPoolmemoryPool () const
 
pointer address (reference obj) const
 
const_pointer address (const_reference x) const
 
pointer allocate (size_type qty)
 
void deallocate (pointer block, size_type)
 
void construct (pointer block, const value_type &obj)
 
void destroy (pointer obj)
 
size_type max_size () const
 
MemoryPoolAllocatoroperator= (const MemoryPoolAllocator &other)
 
template<class Other >
MemoryPoolAllocatoroperator= (const MemoryPoolAllocator< Other > &other)
 

Detailed Description

template<class Object>
class OnixS::CME::Streamlined::MDH::MemoryPoolAllocator< Object >

Definition at line 87 of file MemoryPool.h.

Member Typedef Documentation

typedef const Object* const_pointer

Definition at line 94 of file MemoryPool.h.

typedef const Object& const_reference

Definition at line 97 of file MemoryPool.h.

typedef std::ptrdiff_t difference_type

Definition at line 100 of file MemoryPool.h.

typedef Object* pointer

Definition at line 93 of file MemoryPool.h.

typedef Object& reference

Definition at line 96 of file MemoryPool.h.

typedef std::size_t size_type

Definition at line 99 of file MemoryPool.h.

typedef Object value_type

Definition at line 92 of file MemoryPool.h.

Constructor & Destructor Documentation

MemoryPoolAllocator ( )
inline

Definition at line 113 of file MemoryPool.h.

MemoryPoolAllocator ( MemoryPool memoryPool)
inline

Definition at line 118 of file MemoryPool.h.

MemoryPoolAllocator ( const MemoryPoolAllocator< Object > &  other)
inline

Definition at line 124 of file MemoryPool.h.

MemoryPoolAllocator ( const MemoryPoolAllocator< Other > &  other)
inline

Definition at line 134 of file MemoryPool.h.

~MemoryPoolAllocator ( )
inline

Definition at line 140 of file MemoryPool.h.

Member Function Documentation

pointer address ( reference  obj) const
inline

Definition at line 150 of file MemoryPool.h.

const_pointer address ( const_reference  x) const
inline

Definition at line 157 of file MemoryPool.h.

pointer allocate ( size_type  qty)
inline

Definition at line 164 of file MemoryPool.h.

void construct ( pointer  block,
const value_type obj 
)
inline

Definition at line 189 of file MemoryPool.h.

void deallocate ( pointer  block,
size_type   
)
inline

Definition at line 179 of file MemoryPool.h.

void destroy ( pointer  obj)
inline

Definition at line 197 of file MemoryPool.h.

size_type max_size ( ) const
inline

Definition at line 203 of file MemoryPool.h.

MemoryPool& memoryPool ( ) const
inline

Definition at line 144 of file MemoryPool.h.

MemoryPoolAllocator& operator= ( const MemoryPoolAllocator< Object > &  other)
inline

Definition at line 211 of file MemoryPool.h.

MemoryPoolAllocator& operator= ( const MemoryPoolAllocator< Other > &  other)
inline

Definition at line 224 of file MemoryPool.h.


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