Go to the documentation of this file.
14 #ifndef NODEPOINTERTO_H
15 #define NODEPOINTERTO_H
31 typedef typename NodePointerToBase<T>::To To;
38 INLINE To &operator *()
const;
39 INLINE To *operator -> ()
const;
42 INLINE
operator T *()
const;
62 typedef typename NodePointerToBase<T>::To To;
72 INLINE
const To &operator *()
const;
73 INLINE
const To *operator -> ()
const;
74 INLINE
operator const T *()
const;
76 INLINE
const To *
p()
const;
94 #define NPT(type) NodePointerTo< type >
95 #define NCPT(type) NodeConstPointerTo< type >
const To * p() const
Returns an ordinary pointer instead of a NodeConstPointerTo.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This implements the special NodePointerTo template class, which works just like PointerTo except it m...
A NodeConstPointerTo is similar to a NodePointerTo, except it keeps a const pointer to the thing.
This is similar to PointerToBase, but it manages objects of type NodeReferenceCount or NodeCachedRefe...
To * p() const
Returns an ordinary pointer instead of a NodePointerTo.