Go to the documentation of this file. 1 #ifndef SimTK_SimTKCOMMON_REFERENCE_PTR_H_
2 #define SimTK_SimTKCOMMON_REFERENCE_PTR_H_
71 {
if (&r !=
this)
clear();
return *
this; }
75 {
reset(&t);
return *
this; }
79 {
reset(tp);
return *
this; }
93 operator T*()
const {
return p; }
97 operator bool()
const {
return !
empty(); }
100 T*
get()
const {
return p; }
106 "An attempt was made to dereference a null pointer.");
140 template <
class T>
inline void
147 #endif // SimTK_SimTKCOMMON_REFERENCE_PTR_H_