Reference::To< Type, active > Class Template Reference

Template class manages Reference::Able objects. More...

#include <Reference.h>

Public Member Functions

bool operator! () const
 Returns true if reference is null.
 
 operator bool () const
 Returns true if reference is other than null.
 
 To (Type *ptr=0)
 Default constructor.
 
 To (const To &)
 Copy constructor.
 
 ~To ()
 Destructor.
 
Tooperator= (const To &)
 Assignment operator.
 
Tooperator= (Type *)
 Assignment operator.
 
Type & operator* () const
 Object dereferencing operator.
 
Type * operator-> () const
 Member dereferencing operator.
 
 operator Type * () const
 Cast to Type* operator.
 
Type * get () const
 Return the pointer.
 
Type * release ()
 Return the pointer and unhook without deleting the object.
 
const Type * ptr () const
 Return pointer without testing for validity.
 
Type * ptr ()
 Return pointer without testing for validity.
 
std::string name () const
 Return the name of the object, as returned by typeid.
 

Detailed Description

template<class Type, bool active = true>
class Reference::To< Type, active >

Template class manages Reference::Able objects.

A smart pointer that gets invalidated when its target is destroyed.


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

Generated using doxygen 1.8.17