cwidget  0.5.17
Public Member Functions | List of all members
cwidget::util::ref_ptr< T > Class Template Reference

Public Member Functions

 ref_ptr (T *_ref)
 
 ref_ptr (const ref_ptr &other)
 
template<class S >
 ref_ptr (const ref_ptr< S > &other)
 
ref_ptroperator= (const ref_ptr &other)
 
const sigc::reference_wrapper< T > weak_ref () const
 
template<class S >
ref_ptr< T > & operator= (const ref_ptr< S > &other)
 
template<class S >
bool operator== (const ref_ptr< S > &other) const
 
template<class S >
bool operator!= (const ref_ptr< S > &other) const
 
template<class S >
bool operator< (const ref_ptr< S > &other) const
 
template<class S >
bool operator> (const ref_ptr< S > &other) const
 
template<class S >
bool operator<= (const ref_ptr< S > &other) const
 
template<class S >
bool operator>= (const ref_ptr< S > &other) const
 
template<class S >
ref_ptr< S > dyn_downcast () const
 
void clear ()
 
bool valid () const
 
T * operator-> () const
 
T * unsafe_get_ref () const
 Extract the pointer. More...
 

Member Function Documentation

◆ unsafe_get_ref()

template<class T>
T* cwidget::util::ref_ptr< T >::unsafe_get_ref ( ) const
inline

Extract the pointer.

Should generally be used with care (but is used in the implementation to cast/compare between differently templated instances).

Referenced by cwidget::dialogs::yesno().


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