OnixS C++ CME MDP Conflated UDP Handler 1.1.2
API documentation
Loading...
Searching...
No Matches
MemoryPoolAllocator< Object > Class Template Reference

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::ConflatedUDP::MemoryPoolAllocator< Object >

Definition at line 87 of file MemoryPool.h.

Member Typedef Documentation

◆ const_pointer

template<class Object>
typedef const Object* const_pointer

Definition at line 94 of file MemoryPool.h.

◆ const_reference

template<class Object>
typedef const Object& const_reference

Definition at line 97 of file MemoryPool.h.

◆ difference_type

template<class Object>
typedef std::ptrdiff_t difference_type

Definition at line 100 of file MemoryPool.h.

◆ pointer

template<class Object>
typedef Object* pointer

Definition at line 93 of file MemoryPool.h.

◆ reference

template<class Object>
typedef Object& reference

Definition at line 96 of file MemoryPool.h.

◆ size_type

template<class Object>
typedef std::size_t size_type

Definition at line 99 of file MemoryPool.h.

◆ value_type

template<class Object>
typedef Object value_type

Definition at line 92 of file MemoryPool.h.

Constructor & Destructor Documentation

◆ MemoryPoolAllocator() [1/4]

template<class Object>
MemoryPoolAllocator ( )
inline

Definition at line 113 of file MemoryPool.h.

◆ MemoryPoolAllocator() [2/4]

template<class Object>
MemoryPoolAllocator ( MemoryPool & memoryPool)
inline

Definition at line 118 of file MemoryPool.h.

◆ MemoryPoolAllocator() [3/4]

template<class Object>
MemoryPoolAllocator ( const MemoryPoolAllocator< Object > & other)
inline

Definition at line 124 of file MemoryPool.h.

◆ MemoryPoolAllocator() [4/4]

template<class Object>
template<class Other>
MemoryPoolAllocator ( const MemoryPoolAllocator< Other > & other)
inline

Definition at line 134 of file MemoryPool.h.

◆ ~MemoryPoolAllocator()

template<class Object>
~MemoryPoolAllocator ( )
inline

Definition at line 140 of file MemoryPool.h.

Member Function Documentation

◆ address() [1/2]

template<class Object>
const_pointer address ( const_reference x) const
inline

Definition at line 157 of file MemoryPool.h.

◆ address() [2/2]

template<class Object>
pointer address ( reference obj) const
inline

Definition at line 150 of file MemoryPool.h.

◆ allocate()

template<class Object>
pointer allocate ( size_type qty)
inline

Definition at line 164 of file MemoryPool.h.

◆ construct()

template<class Object>
void construct ( pointer block,
const value_type & obj )
inline

Definition at line 189 of file MemoryPool.h.

◆ deallocate()

template<class Object>
void deallocate ( pointer block,
size_type  )
inline

Definition at line 179 of file MemoryPool.h.

◆ destroy()

template<class Object>
void destroy ( pointer obj)
inline

Definition at line 197 of file MemoryPool.h.

◆ max_size()

template<class Object>
size_type max_size ( ) const
inline

Definition at line 204 of file MemoryPool.h.

◆ memoryPool()

template<class Object>
MemoryPool & memoryPool ( ) const
inline

Definition at line 144 of file MemoryPool.h.

◆ operator=() [1/2]

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

Definition at line 212 of file MemoryPool.h.

◆ operator=() [2/2]

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

Definition at line 225 of file MemoryPool.h.