TRefByValue Class Reference

class TRefByValue

A templated class which encapsulates a reference to an object within a wrapper.

The wrapper object can be passed to a function as a value type. This allows a reference to be passed to a function as a value type.

This wrapper object is commonly termed a value reference.

Public Member Functions
TRefByValue(T &)
operator T &()
Private Member Functions
TRefByValue &operator=(TRefByValue)
Private Attributes
T &iRef

Constructor & Destructor Documentation

TRefByValue(T &)

TRefByValue(T &aRef)[inline]

Constructs this value reference for the specified referenced object.

Parameters

T & aRefThe referenced object.

Member Functions Documentation

operator T &()

operator T &()[inline]

Gets a reference to the object encapsulated inside this value reference.

operator=(TRefByValue)

TRefByValue &operator=(TRefByValueaRef)[private]

Parameters

TRefByValue aRef

Member Data Documentation

T & iRef

T &iRef[private]