Panda3D
Public Types | Public Member Functions

NodePointerTo< T > Class Template Reference

This implements the special NodePointerTo template class, which works just like PointerTo except it manages the objects node_ref_count instead of the normal ref_count. More...

#include "nodePointerTo.h"

Inheritance diagram for NodePointerTo< T >:
NodePointerToBase< T > PointerToVoid MemoryBase

List of all members.

Public Types

typedef NodePointerToBase< T >::To To

Public Member Functions

 NodePointerTo (To *ptr=(To *) NULL)
 NodePointerTo (const NodePointerTo< T > &copy)
 operator T * () const
 We also have the typecast operator to automatically convert NodePointerTo's to the required kind of actual pointer.
To & operator* () const
To * operator-> () const
NodePointerTo< T > & operator= (const NodePointerTo< T > &copy)
NodePointerTo< T > & operator= (To *ptr)
To * p () const
 Returns an ordinary pointer instead of a NodePointerTo.

Detailed Description

template<class T>
class NodePointerTo< T >

This implements the special NodePointerTo template class, which works just like PointerTo except it manages the objects node_ref_count instead of the normal ref_count.

Definition at line 29 of file nodePointerTo.h.


Member Function Documentation

template<class T >
NodePointerTo< T >::operator T * ( ) const [inline]

We also have the typecast operator to automatically convert NodePointerTo'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 93 of file nodePointerTo.I.

template<class T >
NodePointerTo< T >::To * NodePointerTo< T >::p ( ) const [inline]

Returns an ordinary pointer instead of a NodePointerTo.

Useful to work around compiler problems, particularly for implicit upcasts.

Definition at line 108 of file nodePointerTo.I.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations