|
Classdesc 3.44
|
#include <poly.h>


Public Member Functions | |
| template<class U> | |
| polyref | addObject () |
| add object of type U | |
| template<class U, class A> | |
| polyref | addObject (A x) |
| template<class U, class A1, class A2> | |
| polyref | addObject (A1 x1, A2 x2) |
| T * | operator-> () |
| T & | operator* () |
| const T * | operator-> () const |
| const T & | operator* () const |
| bool | operator== (const polyref &x) |
| template<class U> | |
| bool | operator!= (const U &x) const |
| template<class U> | |
| U & | cast () |
| cast target to type U. Throws if not possible | |
| template<class U> | |
| const U & | cast () const |
| operator bool () const | |
| Public Member Functions inherited from ref< T > | |
| ref (const ref &x) | |
| ref (const T &x) | |
| ref & | operator= (const ref &x) |
| ref & | operator= (const T &x) |
| T * | operator-> () |
| 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 |
| T & | operator* () |
| dereference - creates default object if null | |
| const T * | operator-> () const |
| dereference - throws in debug mode if null | |
| const T & | operator* () 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) |