MeVisLab Toolbox Reference
Loading...
Searching...
No Matches
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 >
T & access (T &storage)
 
template<typename T >
T & access (heap_storage< T > &storage)
 
template<typename T >
const T & access (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 102 of file mlLightweight.h.

References mlrange_cast().

◆ access() [2/3]

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

Definition at line 97 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