#include <pointerTo.h>
Inheritance diagram for PointerToBase< T >:
Public Types | |
typedef T | To |
Public Member Functions | |
bool | operator== (const To *other) const |
bool | operator!= (const To *other) const |
bool | operator> (const To *other) const |
bool | operator<= (const To *other) const |
bool | operator>= (const To *other) const |
bool | operator== (To *other) const |
bool | operator!= (To *other) const |
bool | operator> (To *other) const |
bool | operator<= (To *other) const |
bool | operator>= (To *other) const |
bool | operator== (const PointerToBase< To > &other) const |
bool | operator!= (const PointerToBase< To > &other) const |
bool | operator> (const PointerToBase< To > &other) const |
bool | operator<= (const PointerToBase< To > &other) const |
bool | operator>= (const PointerToBase< To > &other) const |
bool | operator< (const To *other) const |
bool | operator< (const PointerToBase< To > &other) const |
bool | is_null () const |
Returns true if the PointerTo is a NULL pointer, false otherwise. | |
void | clear () |
A convenient way to set the PointerTo object to NULL. | |
void | output (ostream &out) const |
A handy function to output PointerTo's as a hex pointer followed by a reference count. | |
Protected Member Functions | |
PointerToBase (To *ptr) | |
PointerToBase (const PointerToBase< T > ©) | |
~PointerToBase () | |
void | reassign (To *ptr) |
This is the main work of the PointerTo family. | |
void | reassign (const PointerToBase< To > ©) |
Protected Attributes | |
To * | _ptr |
Don't try to use it directly; use either derived class instead.
Definition at line 97 of file pointerTo.h.
|
|
Definition at line 32 of file pointerTo.I. References PointerToBase< T >::_ptr, INLINE, NULL, PointerToBase< T >::reassign(), and PointerToBase< T >::To. |
|
Definition at line 46 of file pointerTo.I. References INLINE, NULL, PointerToBase< T >::reassign(), and PointerToBase< T >::To. |
|
Definition at line 60 of file pointerTo.I. References PointerToBase< T >::_ptr, NULL, and PointerToBase< T >::To. |
|
|
|
Definition at line 279 of file pointerTo.I. References PointerToBase< T >::_ptr, and INLINE. |
|
Definition at line 214 of file pointerTo.I. References PointerToBase< T >::_ptr, and INLINE. |
|
Definition at line 150 of file pointerTo.I. References PointerToBase< T >::_ptr, and INLINE. |
|
Definition at line 345 of file pointerTo.I. References INLINE. |
|
Definition at line 332 of file pointerTo.I. References PointerToBase< T >::_ptr, INLINE, NULL, and PointerToBase< T >::To. |
|
Definition at line 305 of file pointerTo.I. References PointerToBase< T >::_ptr, INLINE, and NULL. |
|
Definition at line 240 of file pointerTo.I. References PointerToBase< T >::_ptr. |
|
Definition at line 176 of file pointerTo.I. References PointerToBase< T >::_ptr, and INLINE. |
|
Definition at line 266 of file pointerTo.I. References PointerToBase< T >::_ptr, and INLINE. |
|
Definition at line 201 of file pointerTo.I. References PointerToBase< T >::_ptr, and INLINE. |
|
Definition at line 137 of file pointerTo.I. References PointerToBase< T >::_ptr, and INLINE. |
|
Definition at line 292 of file pointerTo.I. References PointerToBase< T >::_ptr, and INLINE. |
|
Definition at line 227 of file pointerTo.I. References PointerToBase< T >::_ptr, and INLINE. |
|
Definition at line 163 of file pointerTo.I. References PointerToBase< T >::_ptr. |
|
Definition at line 318 of file pointerTo.I. References INLINE, NULL, PointerToBase< T >::reassign(), and PointerToBase< T >::To. |
|
Definition at line 253 of file pointerTo.I. References PointerToBase< T >::_ptr, and INLINE. |
|
Definition at line 189 of file pointerTo.I. References PointerToBase< T >::_ptr, and INLINE. |
|
A handy function to output PointerTo's as a hex pointer followed by a reference count.
Definition at line 399 of file pointerTo.I. References PointerToBase< T >::_ptr, and INLINE. |
|
Definition at line 122 of file pointerTo.I. References PointerToBase< T >::_ptr, and INLINE. |
|
This is the main work of the PointerTo family. When the pointer is reassigned, decrement the old reference count and increment the new one. Definition at line 78 of file pointerTo.I. Referenced by ConstPointerTo< T >::ConstPointerTo(), PointerToBase< T >::operator>=(), PointerTo< T >::PointerTo(), and PointerToBase< T >::PointerToBase(). |
|