15 #ifndef WEAKPOINTERTO_H
16 #define WEAKPOINTERTO_H
18 #include "pandabase.h"
19 #include "weakPointerToBase.h"
20 #include "pointerTo.h"
34 typedef TYPENAME WeakPointerToBase<T>::To To;
41 INLINE To &operator *()
const;
42 INLINE To *operator -> ()
const;
44 INLINE
operator T *()
const;
71 typedef TYPENAME WeakPointerToBase<T>::To To;
80 INLINE
const To &operator *()
const;
81 INLINE
const To *operator -> ()
const;
82 INLINE
operator const T *()
const;
85 INLINE
const To *
p()
const;
102 #define WPT(type) WeakPointerTo< type >
103 #define WCPT(type) WeakConstPointerTo< type >
105 #include "weakPointerTo.I"
WeakPointerTo is similar to PointerTo, except that it does not actually prevent the referenced pointe...
void clear()
A convenient way to set the PointerTo object to NULL.
const To * p() const
Returns an ordinary pointer instead of a WeakConstPointerTo.
To * get_orig() const
Returns the original pointer value, even if the object has since been deleted.
To * p() const
Returns an ordinary pointer instead of a WeakPointerTo.
bool is_null() const
Returns true if the PointerTo is a NULL pointer, false otherwise.
A WeakConstPointerTo is similar to a WeakPointerTo, except it keeps a const pointer to the thing...
A ConstPointerTo is similar to a PointerTo, except it keeps a const pointer to the thing...
const To * get_orig() const
Returns the original pointer value, even if the object has since been deleted.
PointerTo is a template class which implements a smart pointer to an object derived from ReferenceCou...
This is the base class for PointerTo and ConstPointerTo.