Project
Loading...
Searching...
No Matches
o2::utils::ShmAllocator< T > Class Template Reference

#include <ShmAllocator.h>

Classes

struct  rebind
 

Public Types

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

Public Member Functions

 ShmAllocator () noexcept=default
 
template<typename T2 >
 ShmAllocator (const ShmAllocator< T2 > &) noexcept
 
 ~ShmAllocator () noexcept=default
 
pointer adress (reference r)
 
const_pointer adress (const_reference r) const
 
pointer allocate (size_type n)
 
void deallocate (pointer p, size_type s)
 
void construct (pointer p, const value_type &value)
 
template<class U , class... Args>
void construct (U *p, Args &&... args)
 
void destroy (pointer p)
 
size_type max_size () const noexcept
 
bool operator!= (const ShmAllocator< T > &other) const
 
bool operator== (const ShmAllocator< T > &) const
 

Detailed Description

template<typename T>
class o2::utils::ShmAllocator< T >

Definition at line 34 of file ShmAllocator.h.

Member Typedef Documentation

◆ const_pointer

template<typename T >
typedef const T* o2::utils::ShmAllocator< T >::const_pointer

Definition at line 42 of file ShmAllocator.h.

◆ const_reference

template<typename T >
typedef const T& o2::utils::ShmAllocator< T >::const_reference

Definition at line 45 of file ShmAllocator.h.

◆ difference_type

template<typename T >
typedef std::ptrdiff_t o2::utils::ShmAllocator< T >::difference_type

Definition at line 39 of file ShmAllocator.h.

◆ pointer

template<typename T >
typedef T* o2::utils::ShmAllocator< T >::pointer

Definition at line 41 of file ShmAllocator.h.

◆ reference

template<typename T >
typedef T& o2::utils::ShmAllocator< T >::reference

Definition at line 44 of file ShmAllocator.h.

◆ size_type

template<typename T >
typedef std::size_t o2::utils::ShmAllocator< T >::size_type

Definition at line 38 of file ShmAllocator.h.

◆ value_type

template<typename T >
typedef T o2::utils::ShmAllocator< T >::value_type

Definition at line 37 of file ShmAllocator.h.

Constructor & Destructor Documentation

◆ ShmAllocator() [1/2]

template<typename T >
o2::utils::ShmAllocator< T >::ShmAllocator ( )
inlinedefaultnoexcept

◆ ShmAllocator() [2/2]

template<typename T >
template<typename T2 >
o2::utils::ShmAllocator< T >::ShmAllocator ( const ShmAllocator< T2 > &  )
inlinenoexcept

Definition at line 51 of file ShmAllocator.h.

◆ ~ShmAllocator()

template<typename T >
o2::utils::ShmAllocator< T >::~ShmAllocator ( )
inlinedefaultnoexcept

Member Function Documentation

◆ adress() [1/2]

template<typename T >
const_pointer o2::utils::ShmAllocator< T >::adress ( const_reference  r) const
inline

Definition at line 59 of file ShmAllocator.h.

◆ adress() [2/2]

template<typename T >
pointer o2::utils::ShmAllocator< T >::adress ( reference  r)
inline

Definition at line 57 of file ShmAllocator.h.

◆ allocate()

template<typename T >
pointer o2::utils::ShmAllocator< T >::allocate ( size_type  n)
inline

Definition at line 62 of file ShmAllocator.h.

◆ construct() [1/2]

template<typename T >
void o2::utils::ShmAllocator< T >::construct ( pointer  p,
const value_type value 
)
inline

Definition at line 80 of file ShmAllocator.h.

◆ construct() [2/2]

template<typename T >
template<class U , class... Args>
void o2::utils::ShmAllocator< T >::construct ( U *  p,
Args &&...  args 
)
inline

Definition at line 86 of file ShmAllocator.h.

◆ deallocate()

template<typename T >
void o2::utils::ShmAllocator< T >::deallocate ( pointer  p,
size_type  s 
)
inline

Definition at line 70 of file ShmAllocator.h.

◆ destroy()

template<typename T >
void o2::utils::ShmAllocator< T >::destroy ( pointer  p)
inline

Definition at line 91 of file ShmAllocator.h.

◆ max_size()

template<typename T >
size_type o2::utils::ShmAllocator< T >::max_size ( ) const
inlinenoexcept

Definition at line 93 of file ShmAllocator.h.

◆ operator!=()

template<typename T >
bool o2::utils::ShmAllocator< T >::operator!= ( const ShmAllocator< T > &  other) const
inline

Definition at line 100 of file ShmAllocator.h.

◆ operator==()

template<typename T >
bool o2::utils::ShmAllocator< T >::operator== ( const ShmAllocator< T > &  ) const
inline

Definition at line 105 of file ShmAllocator.h.


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