#include <pointerTo.h>
Inheritance diagram for PointerTo< T >:
Public Types | |
typedef TYPENAME PointerToBase< T >::To | To |
Public Member Functions | |
PointerTo (To *ptr=(To *) NULL) | |
PointerTo (const PointerTo< T > ©) | |
To & | operator * () const |
To * | operator-> () const |
operator TYPENAME PointerToBase () const | |
We also have the typecast operator to automatically convert PointerTo's to the required kind of actual pointer. | |
To * | p () const |
Returns an ordinary pointer instead of a PointerTo. | |
PointerTo< T > & | operator= (To *ptr) |
PointerTo< T > & | operator= (const PointerTo< T > ©) |
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. | |
bool | operator== (const To *other) const |
bool | operator== (To *other) const |
bool | operator== (const PointerToBase< To > &other) const |
bool | operator!= (const To *other) const |
bool | operator!= (To *other) const |
bool | operator!= (const PointerToBase< To > &other) const |
bool | operator> (const To *other) const |
bool | operator> (To *other) const |
bool | operator> (const PointerToBase< To > &other) const |
bool | operator<= (const To *other) const |
bool | operator<= (To *other) const |
bool | operator<= (const PointerToBase< To > &other) const |
bool | operator>= (const To *other) const |
bool | operator>= (To *other) const |
bool | operator>= (const PointerToBase< To > &other) const |
bool | operator< (const To *other) const |
bool | operator< (const PointerToBase< To > &other) const |
void | output (ostream &out) const |
A handy function to output PointerTo's as a hex pointer followed by a reference count. | |
Protected Member Functions | |
void | reassign (To *ptr) |
This is the main work of the PointerTo family. | |
void | reassign (const PointerToBase< To > ©) |
Protected Attributes | |
To * | _ptr |
Definition at line 167 of file pointerTo.h.
|
Reimplemented from PointerToBase< T >. Definition at line 169 of file pointerTo.h. Referenced by operator<<(). |
|
Definition at line 416 of file pointerTo.I. References INLINE, and PointerToBase< T >::reassign(). Referenced by operator<<(). |
|
Definition at line 428 of file pointerTo.I. References INLINE, and PointerToBase< T >::reassign(). |
|
A convenient way to set the PointerTo object to NULL. (Assignment to a NULL pointer also works, of course.) Reimplemented from PointerToBase< T >. Definition at line 203 of file pointerTo.h. |
|
Returns true if the PointerTo is a NULL pointer, false otherwise. (Direct comparison to a NULL pointer also works.) Reimplemented from PointerToBase< T >. Definition at line 202 of file pointerTo.h. |
|
Definition at line 442 of file pointerTo.I. References INLINE. Referenced by operator<<(). |
|
We also have the typecast operator to automatically convert PointerTo's to the required kind of actual pointer. This introduces ambiguities which the compiler will resolve one way or the other, but we don't care which way it goes because either will be correct. Definition at line 479 of file pointerTo.I. References PointerToBase< T >::_ptr, INLINE, and TYPENAME. |
|
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 455 of file pointerTo.I. References INLINE. Referenced by operator<<(). |
|
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 524 of file pointerTo.I. References PointerToBase< T >::_ptr, INLINE, and TYPENAME. |
|
Definition at line 510 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. |
|
Returns an ordinary pointer instead of a PointerTo. Useful to work around compiler problems, particularly for implicit upcasts. Definition at line 497 of file pointerTo.I. |
|
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(). |
|