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 >
constexpr bool is_null() const
Returns true if the PointerTo is a NULL pointer, false otherwise.
const To * p() const
Returns an ordinary pointer instead of a ThreadSafeConstPointerTo.
This is the base class for ThreadSafePointerTo and ThreadSafeConstPointerTo.
void clear()
A convenient way to set the ThreadSafePointerTo object to NULL.
This works exactly like PointerTo, except that the object is designed to be thread-safe: it is genera...
To * p() const
Returns an ordinary pointer instead of a ThreadSafePointerTo.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.