Rosetta 3.3
|
interface wrapper around utility::signals::LinkUnit More...
#include <Link.hh>
Public Member Functions | |
Link () | |
default constructor | |
Link (LinkUnitOP unit) | |
LinkUnit constructor. | |
Link (Link const &rval) | |
copy constructor | |
~Link () | |
default destructor | |
Link & | operator= (Link const &rval) |
copy assignment | |
bool | operator== (Link const &rval) |
equality comparison | |
bool | empty () const |
link empty? | |
bool | valid () const |
link still valid? | |
void | invalidate () |
cut the connection, safe to call even when link is empty | |
bool | blocked () const |
link blocked? | |
void | block () |
locally block the link | |
void | unblock () |
locally unblock the link |
interface wrapper around utility::signals::LinkUnit
Can be used to manage the link between Subject and Observer. Signals can be temporarily blocked and the connection can be invalidated (disconnected) by the user. If a Subject is destroyed or a manual disconnect is called via the SignalHub, the Link will automatically become invalidated.
utility::signals::Link::Link | ( | ) | [inline] |
default constructor
utility::signals::Link::Link | ( | LinkUnitOP | unit | ) | [inline] |
LinkUnit constructor.
utility::signals::Link::Link | ( | Link const & | rval | ) | [inline] |
copy constructor
utility::signals::Link::~Link | ( | ) | [inline] |
default destructor
void utility::signals::Link::block | ( | ) | [inline] |
locally block the link
bool utility::signals::Link::blocked | ( | ) | const [inline] |
link blocked?
true if link is blocked or empty, otherwise false
bool utility::signals::Link::empty | ( | ) | const [inline] |
link empty?
void utility::signals::Link::invalidate | ( | ) | [inline] |
cut the connection, safe to call even when link is empty
equality comparison
References utility::pointer::owning_ptr< T >::get().
void utility::signals::Link::unblock | ( | ) | [inline] |
locally unblock the link
bool utility::signals::Link::valid | ( | ) | const [inline] |
link still valid?