Pol  Revision:cb584c9
weak_ptr< T > Class Template Reference

#include <weakptr.h>

+ Inheritance diagram for weak_ptr< T >:

Public Member Functions

 weak_ptr (weak_ptr_link< T > *wpl)
 
void clear ()
 
bool exists () const
 
T * get_weakptr () const
 
T & operator* () const
 
T * operator-> () const
 
weak_ptroperator= (const weak_ptr_link< T > *wpl)
 
weak_ptroperator= (const weak_ptr_owner< T > &wpo)
 

Private Types

typedef ref_ptr< weak_ptr_link< T > > base
 

Additional Inherited Members

- Protected Member Functions inherited from ref_ptr< weak_ptr_link< T > >
void add_ref ()
 
void release ()
 
 ref_ptr (weak_ptr_link< T > *ptr=0)
 
 ref_ptr (const ref_ptr &rptr)
 
 ref_ptr (ref_ptr &&rptr) POL_NOEXCEPT
 
 ~ref_ptr ()
 
void clear ()
 
weak_ptr_link< T > * get () const
 
bool operator! () const
 
bool operator!= (const ref_ptr &rptr) const
 
bool operator!= (weak_ptr_link< T > *ptr) const
 
weak_ptr_link< T > & operator* () const
 
weak_ptr_link< T > * operator-> () const
 
bool operator< (const ref_ptr &rptr) const
 
bool operator< (weak_ptr_link< T > *ptr) const
 
bool operator<= (const ref_ptr &rptr) const
 
bool operator<= (weak_ptr_link< T > *ptr) const
 
ref_ptroperator= (const ref_ptr &rptr)
 
ref_ptroperator= (ref_ptr &&rptr)
 
bool operator== (const ref_ptr &rptr) const
 
bool operator== (weak_ptr_link< T > *ptr) const
 
bool operator> (const ref_ptr &rptr) const
 
bool operator> (weak_ptr_link< T > *ptr) const
 
bool operator>= (const ref_ptr &rptr) const
 
bool operator>= (weak_ptr_link< T > *ptr) const
 
void set (weak_ptr_link< T > *ptr)
 

Detailed Description

template<class T>
class weak_ptr< T >

Definition at line 46 of file weakptr.h.

Member Typedef Documentation

template<class T>
typedef ref_ptr<weak_ptr_link<T> > weak_ptr< T >::base
private

Definition at line 48 of file weakptr.h.

Constructor & Destructor Documentation

template<class T>
weak_ptr< T >::weak_ptr ( weak_ptr_link< T > *  wpl)
explicit

Definition at line 94 of file weakptr.h.

Member Function Documentation

template<class T >
void weak_ptr< T >::clear ( )
template<class T >
T & weak_ptr< T >::operator* ( ) const

Definition at line 130 of file weakptr.h.

template<class T >
T * weak_ptr< T >::operator-> ( ) const

Definition at line 125 of file weakptr.h.

References weak_ptr< T >::get_weakptr().

template<class T>
weak_ptr< T > & weak_ptr< T >::operator= ( const weak_ptr_link< T > *  wpl)

Definition at line 98 of file weakptr.h.

References ref_ptr< weak_ptr_link< T > >::set().

template<class T>
weak_ptr< T > & weak_ptr< T >::operator= ( const weak_ptr_owner< T > &  wpo)

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