15 #ifndef WEAKPOINTERTOBASE_H 16 #define WEAKPOINTERTOBASE_H 18 #include "pandabase.h" 19 #include "pointerToBase.h" 20 #include "weakPointerToVoid.h" 37 INLINE ~WeakPointerToBase();
39 void reassign(To *ptr);
52 INLINE
bool operator == (
const To *other)
const;
53 INLINE
bool operator != (
const To *other)
const;
54 INLINE
bool operator > (
const To *other)
const;
55 INLINE
bool operator <= (
const To *other)
const;
56 INLINE
bool operator >= (
const To *other)
const;
57 INLINE
bool operator == (To *other)
const;
58 INLINE
bool operator != (To *other)
const;
59 INLINE
bool operator > (To *other)
const;
60 INLINE
bool operator <= (To *other)
const;
61 INLINE
bool operator >= (To *other)
const;
66 INLINE
bool operator <= (const WeakPointerToBase<To> &other)
const;
72 INLINE
bool operator <= (const PointerToBase<To> &other)
const;
75 INLINE
bool operator < (
const To *other)
const;
76 INLINE
bool operator < (const WeakPointerToBase<To> &other)
const;
77 INLINE
bool operator < (const PointerToBase<To> &other)
const;
84 void output(ostream &out)
const;
88 INLINE ostream &operator <<(ostream &out, const WeakPointerToBase<T> &pointer) {
93 #include "weakPointerToBase.I" void refresh() const
Informs the WeakPointerTo object that its pointer is no longer deleted.
This is the specialization of PointerToVoid for weak pointers.
void clear()
A convenient way to set the PointerTo object to NULL.
This is the base class for PointerTo and ConstPointerTo.
void output(ostream &out) const
A handy function to output PointerTo's as a hex pointer followed by a reference count.
This is the base class for PointerTo and ConstPointerTo.