momo  3.10
momo::internal::ObjectBuffer< TObject, tAlignment, tCount > Class Template Reference

#include <ObjectManager.h>

Public Types

typedef TObject Object
 

Public Member Functions

 MOMO_STATIC_ASSERT (ObjectAlignmenter< Object >::Check(alignment))
 
 MOMO_STATIC_ASSERT (count > 0)
 
 ObjectBuffer ()=default
 
 ObjectBuffer (const ObjectBuffer &)=delete
 
 ~ObjectBuffer ()=default
 
ObjectBufferoperator= (const ObjectBuffer &)=delete
 
template<bool isWithinLifetime = false>
const ObjectGetPtr () const noexcept
 
template<bool isWithinLifetime = false>
ObjectGetPtr () noexcept
 
const ObjectGet () const noexcept
 
ObjectGet () noexcept
 

Static Public Attributes

static const size_t alignment = tAlignment
 
static const size_t count = tCount
 

Member Typedef Documentation

◆ Object

template<typename TObject , size_t tAlignment, size_t tCount = 1>
typedef TObject momo::internal::ObjectBuffer< TObject, tAlignment, tCount >::Object

Constructor & Destructor Documentation

◆ ObjectBuffer() [1/2]

template<typename TObject , size_t tAlignment, size_t tCount = 1>
momo::internal::ObjectBuffer< TObject, tAlignment, tCount >::ObjectBuffer ( )
default

◆ ObjectBuffer() [2/2]

template<typename TObject , size_t tAlignment, size_t tCount = 1>
momo::internal::ObjectBuffer< TObject, tAlignment, tCount >::ObjectBuffer ( const ObjectBuffer< TObject, tAlignment, tCount > &  )
delete

◆ ~ObjectBuffer()

template<typename TObject , size_t tAlignment, size_t tCount = 1>
momo::internal::ObjectBuffer< TObject, tAlignment, tCount >::~ObjectBuffer ( )
default

Member Function Documentation

◆ Get() [1/2]

template<typename TObject , size_t tAlignment, size_t tCount = 1>
const Object& momo::internal::ObjectBuffer< TObject, tAlignment, tCount >::Get ( ) const
inlinenoexcept

◆ Get() [2/2]

template<typename TObject , size_t tAlignment, size_t tCount = 1>
Object& momo::internal::ObjectBuffer< TObject, tAlignment, tCount >::Get ( )
inlinenoexcept

◆ GetPtr() [1/2]

template<typename TObject , size_t tAlignment, size_t tCount = 1>
template<bool isWithinLifetime = false>
const Object* momo::internal::ObjectBuffer< TObject, tAlignment, tCount >::GetPtr ( ) const
inlinenoexcept

◆ GetPtr() [2/2]

template<typename TObject , size_t tAlignment, size_t tCount = 1>
template<bool isWithinLifetime = false>
Object* momo::internal::ObjectBuffer< TObject, tAlignment, tCount >::GetPtr ( )
inlinenoexcept

◆ MOMO_STATIC_ASSERT() [1/2]

template<typename TObject , size_t tAlignment, size_t tCount = 1>
momo::internal::ObjectBuffer< TObject, tAlignment, tCount >::MOMO_STATIC_ASSERT ( count  ,
 
)

◆ MOMO_STATIC_ASSERT() [2/2]

template<typename TObject , size_t tAlignment, size_t tCount = 1>
momo::internal::ObjectBuffer< TObject, tAlignment, tCount >::MOMO_STATIC_ASSERT ( ObjectAlignmenter< Object ::Checkalignment)

◆ operator=()

template<typename TObject , size_t tAlignment, size_t tCount = 1>
ObjectBuffer& momo::internal::ObjectBuffer< TObject, tAlignment, tCount >::operator= ( const ObjectBuffer< TObject, tAlignment, tCount > &  )
delete

Member Data Documentation

◆ alignment

template<typename TObject , size_t tAlignment, size_t tCount = 1>
const size_t momo::internal::ObjectBuffer< TObject, tAlignment, tCount >::alignment = tAlignment
static

◆ count

template<typename TObject , size_t tAlignment, size_t tCount = 1>
const size_t momo::internal::ObjectBuffer< TObject, tAlignment, tCount >::count = tCount
static

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