MeVisLab Toolbox Reference
lightweight Namespace Reference

Namespace lightweight, provides utilities to wrap large objects in a lightweight variant whose static size is 2*sizeof(void*). More...

Classes

class  heap_storage
 wrapper for large objects (i.e. More...
 
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.

◆ access() [2/3]

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

Definition at line 70 of file mlLightweight.h.

◆ access() [3/3]

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

◆ apply_visitor()

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

Definition at line 108 of file mlLightweight.h.

Referenced by PropertyValue::apply().