osg::observer_ptr< T > Class Template Reference

Smart pointer for observed objects, that automatically set pointers to them to null when they deleted. More...

Inheritance diagram for osg::observer_ptr< T >:

Inheritance graph
[legend]

List of all members.

Public Types

typedef T element_type

Public Member Functions

 observer_ptr ()
 observer_ptr (T *t)
 observer_ptr (const observer_ptr &rp)
 ~observer_ptr ()
observer_ptroperator= (const observer_ptr &rp)
observer_ptroperator= (T *ptr)
virtual void objectDeleted (void *)
bool operator== (const observer_ptr &rp) const
bool operator!= (const observer_ptr &rp) const
bool operator< (const observer_ptr &rp) const
bool operator> (const observer_ptr &rp) const
bool operator== (const T *ptr) const
bool operator!= (const T *ptr) const
bool operator< (const T *ptr) const
bool operator> (const T *ptr) const
T & operator * ()
const T & operator * () const
T * operator-> ()
const T * operator-> () const
bool operator! () const
bool valid () const
T * get ()
const T * get () const


Detailed Description

template<class T>
class osg::observer_ptr< T >

Smart pointer for observed objects, that automatically set pointers to them to null when they deleted.


Member Typedef Documentation

template<class T>
typedef T osg::observer_ptr< T >::element_type


Constructor & Destructor Documentation

template<class T>
osg::observer_ptr< T >::observer_ptr (  )  [inline]

template<class T>
osg::observer_ptr< T >::observer_ptr ( T *  t  )  [inline]

template<class T>
osg::observer_ptr< T >::observer_ptr ( const observer_ptr< T > &  rp  )  [inline]

template<class T>
osg::observer_ptr< T >::~observer_ptr (  )  [inline]


Member Function Documentation

template<class T>
observer_ptr& osg::observer_ptr< T >::operator= ( const observer_ptr< T > &  rp  )  [inline]

template<class T>
observer_ptr& osg::observer_ptr< T >::operator= ( T *  ptr  )  [inline]

template<class T>
virtual void osg::observer_ptr< T >::objectDeleted ( void *   )  [inline, virtual]

Reimplemented from osg::Observer.

template<class T>
bool osg::observer_ptr< T >::operator== ( const observer_ptr< T > &  rp  )  const [inline]

template<class T>
bool osg::observer_ptr< T >::operator!= ( const observer_ptr< T > &  rp  )  const [inline]

template<class T>
bool osg::observer_ptr< T >::operator< ( const observer_ptr< T > &  rp  )  const [inline]

template<class T>
bool osg::observer_ptr< T >::operator> ( const observer_ptr< T > &  rp  )  const [inline]

template<class T>
bool osg::observer_ptr< T >::operator== ( const T *  ptr  )  const [inline]

template<class T>
bool osg::observer_ptr< T >::operator!= ( const T *  ptr  )  const [inline]

template<class T>
bool osg::observer_ptr< T >::operator< ( const T *  ptr  )  const [inline]

template<class T>
bool osg::observer_ptr< T >::operator> ( const T *  ptr  )  const [inline]

template<class T>
T& osg::observer_ptr< T >::operator * (  )  [inline]

template<class T>
const T& osg::observer_ptr< T >::operator * (  )  const [inline]

template<class T>
T* osg::observer_ptr< T >::operator-> (  )  [inline]

template<class T>
const T* osg::observer_ptr< T >::operator-> (  )  const [inline]

template<class T>
bool osg::observer_ptr< T >::operator! (  )  const [inline]

template<class T>
bool osg::observer_ptr< T >::valid (  )  const [inline]

template<class T>
T* osg::observer_ptr< T >::get (  )  [inline]

template<class T>
const T* osg::observer_ptr< T >::get (  )  const [inline]


The documentation for this class was generated from the following file:
Generated at Sun Oct 14 02:12:12 2007 for the OpenSceneGraph by doxygen 1.5.3.