A NodeConstPointerTo is similar to a NodePointerTo, except it keeps a const pointer to the thing. More...
#include "nodePointerTo.h"
Public Types | |
typedef NodePointerToBase< T >::To | To |
![]() | |
typedef T | To |
Public Member Functions | |
NodeConstPointerTo (const To *ptr=nullptr) | |
NodeConstPointerTo (const NodePointerTo< T > ©) | |
NodeConstPointerTo (const NodeConstPointerTo< T > ©) | |
NodeConstPointerTo (NodePointerTo< T > &&from) noexcept | |
NodeConstPointerTo (NodeConstPointerTo< T > &&from) noexcept | |
const To & | operator * () const |
const To * | operator -> () const |
operator const T * () const | |
We also have the typecast operator to automatically convert NodeConstPointerTo's to the required kind of actual pointer. More... | |
NodeConstPointerTo< T > & | operator= (NodePointerTo< T > &&from) noexcept |
NodeConstPointerTo< T > & | operator= (NodeConstPointerTo< T > &&from) noexcept |
NodeConstPointerTo< T > & | operator= (const To *ptr) |
NodeConstPointerTo< T > & | operator= (const NodePointerTo< T > ©) |
NodeConstPointerTo< T > & | operator= (const NodeConstPointerTo< T > ©) |
const To * | p () const |
Returns an ordinary pointer instead of a NodeConstPointerTo. More... | |
![]() | |
void | clear () |
A convenient way to set the NodePointerTo object to NULL. More... | |
void | output (std::ostream &out) const |
A handy function to output NodePointerTo's as a hex pointer followed by a reference count. More... | |
![]() | |
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... | |
A NodeConstPointerTo is similar to a NodePointerTo, except it keeps a const pointer to the thing.
Definition at line 57 of file nodePointerTo.h.
|
inline |
We also have the typecast operator to automatically convert NodeConstPointerTo'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 248 of file nodePointerTo.I.
|
inline |
Returns an ordinary pointer instead of a NodeConstPointerTo.
Useful to work around compiler problems, particularly for implicit upcasts.
Definition at line 260 of file nodePointerTo.I.