This is similar to PointerToBase, but it manages objects of type NodeReferenceCount or NodeCachedReferenceCount, and it updates the node_ref_count instead of the regular ref_count. More...
#include "nodePointerToBase.h"
Public Types | |
typedef T | To |
Public Member Functions | |
void | clear () |
A convenient way to set the NodePointerTo object to NULL. More... | |
void | output (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 |
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... | |
This is similar to PointerToBase, but it manages objects of type NodeReferenceCount or NodeCachedReferenceCount, and it updates the node_ref_count instead of the regular ref_count.
It is intended for use only in PandaNode, to hold a pointer to RenderState and TransformState, although it could be used by any object that wanted to maintain a separate reference count for reporting purposes.
Definition at line 36 of file nodePointerToBase.h.
|
inline |
A convenient way to set the NodePointerTo object to NULL.
(Assignment to a NULL pointer also works, of course.)
Definition at line 150 of file nodePointerToBase.I.
|
inline |
A handy function to output NodePointerTo's as a hex pointer followed by a reference count.
Definition at line 162 of file nodePointerToBase.I.