MeVisLab Toolbox Reference
lightweight::heap_storage< T > Class Template Reference

wrapper for large objects (i.e. More...

#include <mlLightweight.h>

Public Types

typedef heap_storage< TSelfType
 

Public Member Functions

 heap_storage (const T &value=T())
 
 heap_storage (const SelfType &other)
 
 ~heap_storage ()
 
SelfTypeoperator= (const SelfType &other)
 
SelfTypeoperator= (const T &other)
 
bool operator== (const SelfType &other) const
 
bool operator!= (const SelfType &other) const
 
 operator T& ()
 
 operator const T & () const
 

Detailed Description

template<typename T>
class lightweight::heap_storage< T >

wrapper for large objects (i.e.

objects of type T with sizeof(T)>sizeof(void*)) which puts objects on the heap and provides seamingless access

Definition at line 45 of file mlLightweight.h.

Member Typedef Documentation

◆ SelfType

Definition at line 48 of file mlLightweight.h.

Constructor & Destructor Documentation

◆ heap_storage() [1/2]

template<typename T >
lightweight::heap_storage< T >::heap_storage ( const T & value = T())
inline

Definition at line 50 of file mlLightweight.h.

◆ heap_storage() [2/2]

template<typename T >
lightweight::heap_storage< T >::heap_storage ( const SelfType & other)
inline

Definition at line 51 of file mlLightweight.h.

◆ ~heap_storage()

template<typename T >
lightweight::heap_storage< T >::~heap_storage ( )
inline

Definition at line 52 of file mlLightweight.h.

Member Function Documentation

◆ operator const T &()

template<typename T >
lightweight::heap_storage< T >::operator const T & ( ) const
inline

Definition at line 60 of file mlLightweight.h.

◆ operator T&()

template<typename T >
lightweight::heap_storage< T >::operator T& ( )
inline

Definition at line 59 of file mlLightweight.h.

◆ operator!=()

template<typename T >
bool lightweight::heap_storage< T >::operator!= ( const SelfType & other) const
inline

Definition at line 58 of file mlLightweight.h.

References mlrange_cast().

◆ operator=() [1/2]

Definition at line 54 of file mlLightweight.h.

References mlrange_cast().

◆ operator=() [2/2]

template<typename T >
SelfType & lightweight::heap_storage< T >::operator= ( const T & other)
inline

Definition at line 55 of file mlLightweight.h.

References mlrange_cast().

◆ operator==()

template<typename T >
bool lightweight::heap_storage< T >::operator== ( const SelfType & other) const
inline

Definition at line 57 of file mlLightweight.h.

References mlrange_cast().


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