Panda3D
|
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 |
Public Member Functions | |
NodeConstPointerTo (const To *ptr=(const To *) NULL) | |
NodeConstPointerTo (const NodePointerTo< T > ©) | |
NodeConstPointerTo (const NodeConstPointerTo< T > ©) | |
operator const T * () const | |
We also have the typecast operator to automatically convert NodeConstPointerTo's to the required kind of actual pointer. | |
const To & | operator* () const |
const To * | operator-> () const |
NodeConstPointerTo< T > & | operator= (const To *ptr) |
NodeConstPointerTo< T > & | operator= (const NodeConstPointerTo< T > ©) |
NodeConstPointerTo< T > & | operator= (const NodePointerTo< T > ©) |
const To * | p () const |
Returns an ordinary pointer instead of a NodeConstPointerTo. |
A NodeConstPointerTo is similar to a NodePointerTo, except it keeps a const pointer to the thing.
Definition at line 59 of file nodePointerTo.h.
NodeConstPointerTo< T >::operator const T * | ( | ) | const [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 235 of file nodePointerTo.I.
const NodeConstPointerTo< T >::To * NodeConstPointerTo< T >::p | ( | ) | const [inline] |
Returns an ordinary pointer instead of a NodeConstPointerTo.
Useful to work around compiler problems, particularly for implicit upcasts.
Definition at line 250 of file nodePointerTo.I.