Rosetta 3.3
Public Member Functions
utility::signals::Link Class Reference

interface wrapper around utility::signals::LinkUnit More...

#include <Link.hh>

Collaboration diagram for utility::signals::Link:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Link ()
 default constructor
 Link (LinkUnitOP unit)
 LinkUnit constructor.
 Link (Link const &rval)
 copy constructor
 ~Link ()
 default destructor
Linkoperator= (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

Detailed Description

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.

Remarks:
Returned by utility::signals::SignalHub upon connection.

Constructor & Destructor Documentation

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


Member Function Documentation

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

Link& utility::signals::Link::operator= ( Link const &  rval) [inline]

copy assignment

bool utility::signals::Link::operator== ( Link const &  rval) [inline]

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?

Returns:
false if link invalid or empty, otherwise true

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines