15 #ifndef THREADSAFEPOINTERTO_H
16 #define THREADSAFEPOINTERTO_H
18 #include "pandabase.h"
19 #include "threadSafePointerToBase.h"
32 typedef TYPENAME ThreadSafePointerToBase<T>::To To;
36 INLINE ~ThreadSafePointerTo();
39 INLINE To &operator *()
const;
40 INLINE To *operator -> ()
const;
42 INLINE
operator T *()
const;
79 typedef TYPENAME ThreadSafePointerToBase<T>::To To;
84 INLINE ~ThreadSafeConstPointerTo();
87 INLINE
const To &operator *()
const;
88 INLINE
const To *operator -> ()
const;
89 INLINE
operator const T *()
const;
92 INLINE
const To *
p()
const;
105 #define TSPT(type) ThreadSafePointerTo< type >
106 #define TSCPT(type) ThreadSafeConstPointerTo< type >
108 #include "threadSafePointerTo.I"
To * p() const
Returns an ordinary pointer instead of a ThreadSafePointerTo.
const To * p() const
Returns an ordinary pointer instead of a ThreadSafeConstPointerTo.
void clear()
A convenient way to set the ThreadSafePointerTo object to NULL.
This is the base class for ThreadSafePointerTo and ThreadSafeConstPointerTo.
bool is_null() const
Returns true if the PointerTo is a NULL pointer, false otherwise.
This works exactly like PointerTo, except that the object is designed to be thread-safe: it is genera...