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...
 
class  lightweight_visitor
 
struct  make_lightweight
 

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 mlrange_cast().

◆ access() [2/3]

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

Definition at line 70 of file mlLightweight.h.

References mlrange_cast().

◆ access() [3/3]

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

◆ apply_visitor()

VisitorType::result_type lightweight::apply_visitor ( VisitorType & visitor,
VariantType & value )
inline