#include <refcounter_decls.h>
Public Member Functions | |
| Reference (RC *obj) | |
| Constructs a Reference from a RefCounter object created using new. | |
| Reference (const Reference &other) | |
| This is a normal copy constructor needed for reference counting. | |
| Reference< RC > & | operator= (RC *obj) |
| Assigns a RefCounter reference to this Reference. | |
| Reference< RC > & | operator= (const Reference &other) |
| This is a normal assignment operator needed for reference counting. | |
| bool | operator== (const Reference &other) const |
| Checks whether this and other reference the same object. | |
| bool | operator!= (const Reference &other) const |
| Checks whether this and other reference the same object. | |
| RC & | operator * () const |
| Returns the RefCounter derived object referenced. | |
| RC * | operator-> () const |
| Returns the RefCounter derived object referenced. | |
| ~Reference () | |
| This destructor is needed for reference counting. | |
Friends | |
| class | WeakReference< RC > |
RC must be derived from RefCounter.
Constructs a Reference from a RefCounter object created using new.
| obj | is the object to reference |
This is a normal copy constructor needed for reference counting.
| other | is the object to "copy" |
Assigns a RefCounter reference to this Reference.
| obj | is the object to reference |
| Reference< RC > & Reference< RC >::operator= | ( | const Reference< RC > & | other | ) | [inline] |
This is a normal assignment operator needed for reference counting.
| other | is the object to "copy" |
| bool Reference< RC >::operator== | ( | const Reference< RC > & | other | ) | const [inline] |
Checks whether this and other reference the same object.
| other | is the Reference to compare to |
| bool Reference< RC >::operator!= | ( | const Reference< RC > & | other | ) | const [inline] |
Checks whether this and other reference the same object.
| other | is the Reference to compare to |
| RC & Reference< RC >::operator * | ( | ) | const [inline] |
| RC * Reference< RC >::operator-> | ( | ) | const [inline] |
1.5.1