MeVisLab Toolbox Reference
lightweight Namespace Reference

Classes

class  heap_storage
struct  make_lightweight
class  lightweight_visitor

Functions

template<typename T>
Taccess (T &storage)
template<typename T>
Taccess (heap_storage< T > &storage)
template<typename T>
const Taccess (const heap_storage< T > &storage)
template<typename VisitorType, typename VariantType>
VisitorType::result_type apply_visitor (VisitorType &visitor, VariantType &value)

Detailed Description

Namespace lightweight, provides utilities to wrap large objects in a lightweight variant whose static size is 2*sizeof(void*). Not meant for public use.

Function Documentation

◆ access() [1/3]

template<typename T>
const T & lightweight::access ( const heap_storage< T > & storage)

Definition at line 73 of file mlLightweight.h.

References T.

◆ access() [2/3]

template<typename T>
T & lightweight::access ( heap_storage< T > & storage)

Definition at line 70 of file mlLightweight.h.

References T.

◆ access() [3/3]

template<typename T>
T & lightweight::access ( T & storage)

Definition at line 67 of file mlLightweight.h.

References T.

Referenced by lightweight::lightweight_visitor< VisitorType >::operator()().

◆ apply_visitor()

template<typename VisitorType, typename VariantType>
VisitorType::result_type lightweight::apply_visitor ( VisitorType & visitor,
VariantType & value )
inline