Classdesc 3.44
ref< T > Class Template Reference

#include <ref.h>

Inheritance diagram for ref< T >:
Inheritance graph
Collaboration diagram for ref< T >:
Collaboration graph

Public Member Functions

 ref (const ref &x)
 ref (const T &x)
refoperator= (const ref &x)
refoperator= (const T &x)
Toperator-> ()
 dereference - creates default object if null
template<class M>
functional::bound_method< T, M > operator->* (M &m)
template<class M>
functional::bound_method< T, M > operator->* (M &m) const
Toperator* ()
 dereference - creates default object if null
const Toperator-> () const
 dereference - throws in debug mode if null
const Toperator* () const
 dereference - throws in debug mode if null
void nullify ()
 make reference null
bool nullref () const
 true if reference is null
 operator bool () const
 equivalent to nullref
int refCount () const
 return the payloads reference count
bool operator== (const ref &x) const
bool operator== (const T *x) const
bool operator== (const T &x) const
template<class U>
bool operator!= (const U &x) const
bool operator< (const ref &x) const
void swap (ref &x)

Detailed Description

template<class T>
class classdesc::ref< T >

A non-polymorphic smart pointer class


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