Choreonoid  1.5
Public Types | Public Member Functions | Friends | List of all members
cnoid::ref_ptr< T > Class Template Reference

#include <Referenced.h>

Public Types

typedef T element_type
 

Public Member Functions

 ref_ptr ()
 
 ref_ptr (T *p)
 
template<class U >
 ref_ptr (ref_ptr< U > const &rhs)
 
 ref_ptr (ref_ptr const &rhs)
 
 ~ref_ptr ()
 
template<class U >
ref_ptroperator= (ref_ptr< U > const &rhs)
 
ref_ptroperator= (ref_ptr const &rhs)
 
ref_ptroperator= (T *rhs)
 
void reset ()
 
void reset (T *rhs)
 
T * get () const
 
 operator T * () const
 
T & operator* () const
 
T * operator-> () const
 
void swap (ref_ptr &rhs)
 

Friends

template<class Y >
class weak_ref_ptr
 
template<class Y >
class ref_ptr
 

Member Typedef Documentation

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

Constructor & Destructor Documentation

template<class T>
cnoid::ref_ptr< T >::ref_ptr ( )
inline
template<class T>
cnoid::ref_ptr< T >::ref_ptr ( T *  p)
inline
template<class T>
template<class U >
cnoid::ref_ptr< T >::ref_ptr ( ref_ptr< U > const &  rhs)
inline
template<class T>
cnoid::ref_ptr< T >::ref_ptr ( ref_ptr< T > const &  rhs)
inline
template<class T>
cnoid::ref_ptr< T >::~ref_ptr ( )
inline

Member Function Documentation

template<class T>
T* cnoid::ref_ptr< T >::get ( ) const
inline
template<class T>
cnoid::ref_ptr< T >::operator T * ( ) const
inline
template<class T>
T& cnoid::ref_ptr< T >::operator* ( ) const
inline
template<class T>
T* cnoid::ref_ptr< T >::operator-> ( ) const
inline
template<class T>
template<class U >
ref_ptr& cnoid::ref_ptr< T >::operator= ( ref_ptr< U > const &  rhs)
inline
template<class T>
ref_ptr& cnoid::ref_ptr< T >::operator= ( ref_ptr< T > const &  rhs)
inline
template<class T>
ref_ptr& cnoid::ref_ptr< T >::operator= ( T *  rhs)
inline
template<class T>
void cnoid::ref_ptr< T >::reset ( )
inline
template<class T>
void cnoid::ref_ptr< T >::reset ( T *  rhs)
inline
template<class T>
void cnoid::ref_ptr< T >::swap ( ref_ptr< T > &  rhs)
inline

Friends And Related Function Documentation

template<class T>
template<class Y >
friend class ref_ptr
friend
template<class T>
template<class Y >
friend class weak_ref_ptr
friend

The documentation for this class was generated from the following file: