Rosetta 3.3
Public Member Functions | Public Attributes
utility::signals::LinkUnit Struct Reference

struct specifying actual link data between observers and subjects More...

#include <LinkUnit.hh>

Inheritance diagram for utility::signals::LinkUnit:
Inheritance graph
[legend]
Collaboration diagram for utility::signals::LinkUnit:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 LinkUnit (void *f)
 function pointer constructor
 ~LinkUnit ()
 default destructor
template<typename Function >
Function & fref ()
 return a reference to the function object with requested cast
template<typename Function , typename Signal >
void send (Signal s)
 send a signal using the member function

Public Attributes

void * fn
 the observer's member function
bool valid
 connection still valid?
bool blocked
 connection locally blocked?

Detailed Description

struct specifying actual link data between observers and subjects

Remarks:
Used internally by SignalHub. There is no copy constructor and copy assignment, a LinkUnit is meant to be created only once for each connection.

Constructor & Destructor Documentation

utility::signals::LinkUnit::LinkUnit ( void *  f) [inline]

function pointer constructor

Parameters:
fpointer to function object with proper signature
utility::signals::LinkUnit::~LinkUnit ( ) [inline]

default destructor


Member Function Documentation

template<typename Function >
Function& utility::signals::LinkUnit::fref ( ) [inline]

return a reference to the function object with requested cast

References fn.

template<typename Function , typename Signal >
void utility::signals::LinkUnit::send ( Signal  s) [inline]

send a signal using the member function

Template Parameters:
theboost function type
theSignal to send, must match the necessary function signature

References blocked, fn, and valid.


Member Data Documentation

connection locally blocked?

Referenced by send().

the observer's member function

dependent upon SignalHub to manage memory

Referenced by utility::signals::SignalHub< ReturnType, Signal >::deallocate(), fref(), and send().

connection still valid?

Referenced by send().


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