68 #include "pandabase.h"
69 #include "pointerToBase.h"
70 #include "register_type.h"
81 typedef TYPENAME PointerToBase<T>::To To;
88 #ifdef USE_MOVE_SEMANTICS
93 INLINE To &operator *()
const;
94 INLINE To *operator -> ()
const;
96 INLINE
operator T *()
const;
114 INLINE To *
p()
const;
146 typedef TYPENAME PointerToBase<T>::To To;
151 INLINE ~ConstPointerTo();
154 #ifdef USE_MOVE_SEMANTICS
161 INLINE
const To &operator *()
const;
162 INLINE
const To *operator -> ()
const;
163 INLINE
operator const T *()
const;
165 INLINE
const T *&
cheat();
168 INLINE
const To *
p()
const;
199 #define PT(type) PointerTo< type >
200 #define CPT(type) ConstPointerTo< type >
207 return T::get_class_type();
212 return T::get_class_type();
216 #include "pointerTo.I"
void clear()
A convenient way to set the PointerTo object to NULL.
const T *& cheat()
Returns a reference to the underlying pointer.
const To * p() const
Returns an ordinary pointer instead of a ConstPointerTo.
This is the base class for PointerTo and ConstPointerTo.
To * p() const
Returns an ordinary pointer instead of a PointerTo.
bool is_null() const
Returns true if the PointerTo is a NULL pointer, false otherwise.
A ConstPointerTo is similar to a PointerTo, except it keeps a const pointer to the thing...
PointerTo is a template class which implements a smart pointer to an object derived from ReferenceCou...
T *& cheat()
Returns a reference to the underlying pointer.
TypeHandle is the identifier used to differentiate C++ class types.