SourcePro® API Reference Guide

 
Loading...
Searching...
No Matches
RWTReferenceWrapper< T > Class Template Reference

Stores a reference to an object. More...

#include <rw/tools/refwrap.h>

Public Member Functions

 RWTReferenceWrapper (const RWTReferenceWrapper &rhs)
 
 RWTReferenceWrapper (T &ref)
 
 operator T& () const
 
RWTReferenceWrapperoperator= (const RWTReferenceWrapper &rhs)
 

Related Symbols

(Note that these are not member symbols.)

template<typename T >
RWTReferenceWrapper< const T > rwCRef (const T &ref)
 
template<typename T >
RWTReferenceWrapper< T > rwRef (T &ref)
 

Detailed Description

template<typename T>
class RWTReferenceWrapper< T >

RWTReferenceWrapper stores a reference to an object.

Constructor & Destructor Documentation

◆ RWTReferenceWrapper() [1/2]

template<typename T >
RWTReferenceWrapper< T >::RWTReferenceWrapper ( T & ref)
inline

Constructs a reference wrapper for the object referenced by ref

◆ RWTReferenceWrapper() [2/2]

template<typename T >
RWTReferenceWrapper< T >::RWTReferenceWrapper ( const RWTReferenceWrapper< T > & rhs)
inline

Constructs a reference wrapper for the object referenced by rhs.

Member Function Documentation

◆ operator T&()

template<typename T >
RWTReferenceWrapper< T >::operator T& ( ) const
inline

Conversion operator.

◆ operator=()

template<typename T >
RWTReferenceWrapper & RWTReferenceWrapper< T >::operator= ( const RWTReferenceWrapper< T > & rhs)
inline

Assignment operator. Self will reference the same instance as rhs.

Friends And Related Symbol Documentation

◆ rwCRef()

template<typename T >
RWTReferenceWrapper< const T > rwCRef ( const T & ref)
related

Constructs an RWTReferenceWrapper for ref.

◆ rwRef()

template<typename T >
RWTReferenceWrapper< T > rwRef ( T & ref)
related

Constructs an RWTReferenceWrapper for ref.

Copyright © 2024 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved.