Rosetta
|
interface wrapper around utility::signals::LinkUnit More...
#include <Link.hh>
Public Member Functions | |
Link () | |
default constructor More... | |
Link (LinkUnitOP unit) | |
LinkUnit constructor. More... | |
Link (Link const &)=default | |
copy constructor More... | |
~Link ()=default | |
default destructor More... | |
Link & | operator= (Link const &rval) |
copy assignment More... | |
bool | operator== (Link const &rval) |
equality comparison More... | |
bool | empty () const |
link empty? More... | |
bool | valid () const |
link still valid? More... | |
void | invalidate () |
cut the connection, safe to call even when link is empty More... | |
bool | blocked () const |
link blocked? More... | |
void | block () |
locally block the link More... | |
void | unblock () |
locally unblock the link More... | |
Private Types | |
typedef utility::pointer::shared_ptr< LinkUnit > | LinkUnitOP |
Private Attributes | |
LinkUnitOP | unit_ |
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.
|
private |
|
inline |
default constructor
|
inline |
LinkUnit constructor.
|
inlinedefault |
copy constructor
|
inlinedefault |
default destructor
|
inline |
locally block the link
References unit_.
|
inline |
|
inline |
link empty?
References unit_.
|
inline |
cut the connection, safe to call even when link is empty
References unit_.
copy assignment
References unit_.
|
inline |
equality comparison
References unit_.
|
inline |
locally unblock the link
References unit_.
|
inline |
|
private |
Referenced by block(), blocked(), empty(), invalidate(), operator=(), operator==(), unblock(), and valid().