libjmmcg  release_579_6_g8cffd
A C++ library containing an eclectic mix of useful, advanced components.
jmmcg::LIBJMMCG_VER_NAMESPACE::NTUtils::SMAllocator< heap_type, heap_contents > Class Template Reference

#include <SharedMemory.hpp>

Inherits std::allocator< T >.

Public Types

typedef unsigned long size_type
 
typedef long difference_type
 
typedef heap_type::contents_type * pointer
 
typedef const heap_type::contents_type * const_pointer
 
typedef heap_type::contents_type & reference
 
typedef const heap_type::contents_type & const_reference
 
typedef heap_type::contents_type value_type
 

Public Member Functions

 SMAllocator () noexcept(true)
 
 SMAllocator (const SMAllocator &) noexcept(true)
 
 ~SMAllocator () noexcept(true)
 
pointer allocate (const size_type _N, const void *hint)
 
value_type_Charalloc (const size_type _N)
 
void construct (pointer _P, const value_type &_V)
 
void deallocate (void *_P, const size_type sz)
 
void destroy (pointer _P)
 
size_type max_size () const
 
template<class alloc >
bool operator== (const alloc &a) const
 
template<class alloc >
bool operator!= (const alloc &a) const
 
const heap_type & Heap () const noexcept(true)
 

Detailed Description

template<class heap_type, class heap_contents>
class jmmcg::LIBJMMCG_VER_NAMESPACE::NTUtils::SMAllocator< heap_type, heap_contents >

Definition at line 258 of file SharedMemory.hpp.

Member Typedef Documentation

◆ const_pointer

template<class heap_type , class heap_contents >
typedef const heap_type::contents_type* jmmcg::LIBJMMCG_VER_NAMESPACE::NTUtils::SMAllocator< heap_type, heap_contents >::const_pointer

Definition at line 263 of file SharedMemory.hpp.

◆ const_reference

template<class heap_type , class heap_contents >
typedef const heap_type::contents_type& jmmcg::LIBJMMCG_VER_NAMESPACE::NTUtils::SMAllocator< heap_type, heap_contents >::const_reference

Definition at line 265 of file SharedMemory.hpp.

◆ difference_type

template<class heap_type , class heap_contents >
typedef long jmmcg::LIBJMMCG_VER_NAMESPACE::NTUtils::SMAllocator< heap_type, heap_contents >::difference_type

Definition at line 261 of file SharedMemory.hpp.

◆ pointer

template<class heap_type , class heap_contents >
typedef heap_type::contents_type* jmmcg::LIBJMMCG_VER_NAMESPACE::NTUtils::SMAllocator< heap_type, heap_contents >::pointer

Definition at line 262 of file SharedMemory.hpp.

◆ reference

template<class heap_type , class heap_contents >
typedef heap_type::contents_type& jmmcg::LIBJMMCG_VER_NAMESPACE::NTUtils::SMAllocator< heap_type, heap_contents >::reference

Definition at line 264 of file SharedMemory.hpp.

◆ size_type

template<class heap_type , class heap_contents >
typedef unsigned long jmmcg::LIBJMMCG_VER_NAMESPACE::NTUtils::SMAllocator< heap_type, heap_contents >::size_type

Definition at line 260 of file SharedMemory.hpp.

◆ value_type

template<class heap_type , class heap_contents >
typedef heap_type::contents_type jmmcg::LIBJMMCG_VER_NAMESPACE::NTUtils::SMAllocator< heap_type, heap_contents >::value_type

Definition at line 266 of file SharedMemory.hpp.

Constructor & Destructor Documentation

◆ SMAllocator() [1/2]

template<class heap_type , class heap_contents >
jmmcg::LIBJMMCG_VER_NAMESPACE::NTUtils::SMAllocator< heap_type, heap_contents >::SMAllocator ( )
inlinenoexcept

Definition at line 271 of file SharedMemory.hpp.

◆ SMAllocator() [2/2]

template<class heap_type , class heap_contents >
jmmcg::LIBJMMCG_VER_NAMESPACE::NTUtils::SMAllocator< heap_type, heap_contents >::SMAllocator ( const SMAllocator< heap_type, heap_contents > &  )
inlinenoexcept

Definition at line 272 of file SharedMemory.hpp.

◆ ~SMAllocator()

template<class heap_type , class heap_contents >
jmmcg::LIBJMMCG_VER_NAMESPACE::NTUtils::SMAllocator< heap_type, heap_contents >::~SMAllocator ( )
inlinenoexcept

Definition at line 273 of file SharedMemory.hpp.

Member Function Documentation

◆ _Charalloc()

template<class heap_type , class heap_contents >
value_type* jmmcg::LIBJMMCG_VER_NAMESPACE::NTUtils::SMAllocator< heap_type, heap_contents >::_Charalloc ( const size_type  _N)
inline

Definition at line 276 of file SharedMemory.hpp.

◆ allocate()

template<class heap_type , class heap_contents >
pointer jmmcg::LIBJMMCG_VER_NAMESPACE::NTUtils::SMAllocator< heap_type, heap_contents >::allocate ( const size_type  _N,
const void *  hint 
)
inline

Definition at line 275 of file SharedMemory.hpp.

◆ construct()

template<class heap_type , class heap_contents >
void jmmcg::LIBJMMCG_VER_NAMESPACE::NTUtils::SMAllocator< heap_type, heap_contents >::construct ( pointer  _P,
const value_type _V 
)
inline

Definition at line 277 of file SharedMemory.hpp.

◆ deallocate()

template<class heap_type , class heap_contents >
void jmmcg::LIBJMMCG_VER_NAMESPACE::NTUtils::SMAllocator< heap_type, heap_contents >::deallocate ( void *  _P,
const size_type  sz 
)
inline

Definition at line 288 of file SharedMemory.hpp.

◆ destroy()

template<class heap_type , class heap_contents >
void jmmcg::LIBJMMCG_VER_NAMESPACE::NTUtils::SMAllocator< heap_type, heap_contents >::destroy ( pointer  _P)
inline

Definition at line 291 of file SharedMemory.hpp.

◆ Heap()

template<class heap_type , class heap_contents >
const heap_type& jmmcg::LIBJMMCG_VER_NAMESPACE::NTUtils::SMAllocator< heap_type, heap_contents >::Heap ( ) const
inlinenoexcept

Definition at line 295 of file SharedMemory.hpp.

◆ max_size()

template<class heap_type , class heap_contents >
size_type jmmcg::LIBJMMCG_VER_NAMESPACE::NTUtils::SMAllocator< heap_type, heap_contents >::max_size ( void  ) const
inline

Definition at line 292 of file SharedMemory.hpp.

◆ operator!=()

template<class heap_type , class heap_contents >
template<class alloc >
bool jmmcg::LIBJMMCG_VER_NAMESPACE::NTUtils::SMAllocator< heap_type, heap_contents >::operator!= ( const alloc &  a) const
inline

Definition at line 294 of file SharedMemory.hpp.

◆ operator==()

template<class heap_type , class heap_contents >
template<class alloc >
bool jmmcg::LIBJMMCG_VER_NAMESPACE::NTUtils::SMAllocator< heap_type, heap_contents >::operator== ( const alloc &  a) const
inline

Definition at line 293 of file SharedMemory.hpp.


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