API Documentation
Loading...
Searching...
No Matches
VariableReference Class Reference

An optimized class for storing a reference to a variable of some type up to 8 bytes in size without ownership or allocations on the stack. More...

#include <VariableReference.h>

Public Member Functions

template<class t_object_type >
void fillInfoTable (const ObjectInfo< t_object_type > &, uint01 level)
 
template<class t_type >
t_type get () const
 
template<class t_type >
void get (t_type &value, uint04 level, uint04 index) const
 
template<class t_type >
void getSingle (t_type &value, uint04 level, uint04 index) const
 
template<class t_type >
constexpr operator t_type () const
 
template<class t_type >
constexpr bool operator!= (const t_type &b) const
 
template<class t_type >
constexpr VariableReferenceoperator= (const t_type &b)
 
constexpr VariableReferenceoperator= (const VariableReference &)
 
template<class t_type >
constexpr bool operator== (const t_type &b) const
 
template<class t_type >
constexpr void set (const t_type &value)
 
 VariableReference (const VariableReference &reference)
 
template<class t_type >
constexpr VariableReference (t_type &value)
 

Detailed Description

An optimized class for storing a reference to a variable of some type up to 8 bytes in size without ownership or allocations on the stack.


Constructor & Destructor Documentation

◆ VariableReference() [1/2]

template<class t_type >
VariableReference ( t_type & value)
inlineconstexpr

◆ VariableReference() [2/2]

VariableReference ( const VariableReference & reference)
inline

Member Function Documentation

◆ fillInfoTable()

template<class t_object_type >
void fillInfoTable ( const ObjectInfo< t_object_type > & ,
uint01 level )
inline

◆ get() [1/2]

template<class t_type >
t_type get ( ) const
inline

◆ get() [2/2]

template<class t_type >
void get ( t_type & value,
uint04 level,
uint04 index ) const
inline

◆ getSingle()

template<class t_type >
void getSingle ( t_type & value,
uint04 level,
uint04 index ) const
inline

◆ operator t_type()

template<class t_type >
operator t_type ( ) const
inlineconstexpr

◆ operator!=()

template<class t_type >
bool operator!= ( const t_type & b) const
inlineconstexpr

◆ operator=() [1/2]

template<class t_type >
VariableReference & operator= ( const t_type & b)
inlineconstexpr

◆ operator=() [2/2]

VariableReference & operator= ( const VariableReference & )
inlineconstexpr

◆ operator==()

template<class t_type >
bool operator== ( const t_type & b) const
inlineconstexpr

◆ set()

template<class t_type >
void set ( const t_type & value)
inlineconstexpr

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