#include <nub/ref.h>
Public Member Functions | |
soft_ref (nub::uid i, ref_type tp=STRONG) | |
soft_ref (T *master, ref_type tp=STRONG, ref_vis vis=DEFAULT) | |
template<class U> | |
soft_ref (const soft_ref< U > &other) | |
template<class U> | |
soft_ref (const ref< U > &other) | |
void | reset (T *p=0) |
Shorthand for assignment. | |
T * | get () const |
T * | operator-> () const |
T & | operator* () const |
T * | get_weak () const throw () |
ref_type | get_ref_type () const throw () |
bool | is_valid () const throw () |
bool | is_invalid () const throw () |
bool | operator== (const soft_ref &other) const throw () |
bool | operator!= (const soft_ref &other) const throw () |
bool | operator< (const soft_ref &other) const throw () |
Comparison operator for sorting, to insert in std::map or std::set, etc. | |
nub::uid | id () const throw () |
T * | getWeak () const throw () |
bool | isValid () const throw () |
bool | isInvalid () const throw () |
Definition at line 231 of file ref.h.
void nub::soft_ref< T >::reset | ( | T * | p = 0 |
) | [inline] |
T* nub::soft_ref< T >::get | ( | ) | const [inline] |
Returns the pointee, or if throws an exception if there is not a valid pointee.
Definition at line 274 of file ref.h.
Referenced by nub::signal_base::do_connect(), nub::signal_base::do_disconnect(), and nub::ref< nub::slot0 >::operator<().
T* nub::soft_ref< T >::get_weak | ( | ) | const throw () [inline] |
Returns the pointee, or returns null if there is not a valid pointee. Will not throw an exception.
Definition at line 281 of file ref.h.
Referenced by GxCache::draw(), and nub::soft_ref< Toglet >::operator<().