14 #ifndef THREADSAFEPOINTERTO_H 15 #define THREADSAFEPOINTERTO_H 29 typedef typename ThreadSafePointerToBase<T>::To To;
36 INLINE To &operator *()
const;
37 INLINE To *operator -> ()
const;
39 INLINE
operator T *()
const;
74 typedef typename ThreadSafePointerToBase<T>::To To;
82 INLINE
const To &operator *()
const;
83 INLINE
const To *operator -> ()
const;
84 INLINE
operator const T *()
const;
87 INLINE
const To *
p()
const;
100 #define TSPT(type) ThreadSafePointerTo< type > 101 #define TSCPT(type) ThreadSafeConstPointerTo< type > PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
constexpr bool is_null() const
Returns true if the PointerTo is a NULL pointer, false otherwise.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
const To * p() const
Returns an ordinary pointer instead of a ThreadSafeConstPointerTo.
To * p() const
Returns an ordinary pointer instead of a ThreadSafePointerTo.
void clear()
A convenient way to set the ThreadSafePointerTo object to NULL.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is the base class for ThreadSafePointerTo and ThreadSafeConstPointerTo.
This works exactly like PointerTo, except that the object is designed to be thread-safe: it is genera...