osg::ref_ptr< T > Class Template Reference

List of all members.

Public Types

typedef T element_type

Public Member Functions

 ref_ptr ()
 ref_ptr (T *ptr)
 ref_ptr (const ref_ptr &rp)
 ~ref_ptr ()
ref_ptr & operator= (const ref_ptr &rp)
ref_ptr & operator= (T *ptr)
bool operator== (const ref_ptr &rp) const
bool operator== (const T *ptr) const
bool operator!= (const ref_ptr &rp) const
bool operator!= (const T *ptr) const
bool operator< (const ref_ptr &rp) const
T & operator * () const
T * operator-> () const
T * get () const
bool operator! () const
bool valid () const
T * release ()
void swap (ref_ptr &rp)

Friends

bool operator== (const T *ptr, const ref_ptr &rp)
bool operator!= (const T *ptr, const ref_ptr &rp)

Detailed Description

template<class T>
class osg::ref_ptr< T >

Smart pointer for handling referenced counted objects.


Member Typedef Documentation

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


Constructor & Destructor Documentation

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

template<class T>
osg::ref_ptr< T >::ref_ptr (  T *  ptr  )  [inline]
 

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

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


Member Function Documentation

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

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

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

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

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

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

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

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

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

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

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

template<class T>
T* osg::ref_ptr< T >::release (   )  [inline]
 

template<class T>
void osg::ref_ptr< T >::swap (  ref_ptr< T > &  rp  )  [inline]
 

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


Friends And Related Function Documentation

template<class T>
bool operator!= (  const T *  ptr,
const ref_ptr< T > &  rp
)  [friend]
 

template<class T>
bool operator== (  const T *  ptr,
const ref_ptr< T > &  rp
)  [friend]
 


The documentation for this class was generated from the following file:
Generated on Wed Nov 29 06:19:19 2006 for OpenSceneGraph by  doxygen 1.4.6