This is the base class for PointerTo and ConstPointerTo. More...
#include "pointerToBase.h"
Public Types | |
typedef T | To |
Public Member Functions | |
void | clear () |
A convenient way to set the PointerTo object to NULL. More... | |
void | output (std::ostream &out) const |
A handy function to output PointerTo's as a hex pointer followed by a reference count. More... | |
Public Member Functions inherited from PointerToVoid | |
size_t | get_hash () const |
constexpr bool | is_null () const |
Returns true if the PointerTo is a NULL pointer, false otherwise. More... | |
bool | operator != (const PointerToVoid &other) const |
bool | operator< (const void *other) const |
bool | operator< (const PointerToVoid &other) const |
bool | operator== (const PointerToVoid &other) const |
void | swap (PointerToVoid &other) noexcept |
Swaps the contents of this PointerTo with the other, without touching the reference counts. More... | |
Friends | |
template<typename Y > | |
class | PointerToBase |
template<typename Y > | |
class | WeakPointerToBase |
This is the base class for PointerTo and ConstPointerTo.
Don't try to use it directly; use either derived class instead.
Definition at line 29 of file pointerToBase.h.
|
inline |
A convenient way to set the PointerTo object to NULL.
(Assignment to a NULL pointer also works, of course.)
Definition at line 209 of file pointerToBase.I.
|
inline |
A handy function to output PointerTo's as a hex pointer followed by a reference count.
Definition at line 219 of file pointerToBase.I.