VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Types | Protected Attributes | Private Member Functions
makVrv::DtKeyedSignalConnectionManager< KeyType > Class Template Reference

DtKeyedSignalConnectionManager extends DtSignalConnectionManager to allow access to managed signals via a key supplied when the connection is managed. More...

Inheritance diagram for makVrv::DtKeyedSignalConnectionManager< KeyType >:
Inheritance graph
[legend]

Public Member Functions

 DtKeyedSignalConnectionManager ()
 CTOR.
virtual ~DtKeyedSignalConnectionManager ()
 DTOR.
void manageConnection (KeyType key, const boost::signalslib::connection &conn)
 Connect a signal.
void disconnectSignals ()
 Disconnect all signals AND removes them.
void disconnectSignal (KeyType key)
 Disconnect and remove a signal.
bool hasSignal (KeyType key)
 Check if a signal for this key value already exists.
bool blockConnections (bool blocked)
 Blocks/unblocks connections.
bool connectionsBlocked () const
 check whether connections are blocked.
bool blockConnection (KeyType key, bool blocked)
 Blocks/unblocks connections.
bool connectionBlocked (KeyType key) const
 check whether connections are blocked.
- Public Member Functions inherited from makVrv::DtSignalConnectionManager
 DtSignalConnectionManager ()
 CTOR.
virtual ~DtSignalConnectionManager ()
 DTOR.
void manageConnection (const boost::signalslib::connection &conn)
 Connect a signal.
DtSignalConnectionManageroperator+= (const boost::signalslib::connection &conn)
 Connect a signal.
int numberOfConnections () const
 Get the number of connections.
bool blockConnection (int index, bool blocked)
 Blocks/unblocks connections.
bool connectionBlocked (int index) const
 check whether connections are blocked.

Protected Types

typedef boost::unordered_map
< KeyType,
boost::signalslib::connection > 
KeyedConnectionsMap
 A collection of keyed signals.
- Protected Types inherited from makVrv::DtSignalConnectionManager
typedef std::vector
< boost::signalslib::connection > 
Connections
 A collection of signals.

Protected Attributes

KeyedConnectionsMap myKeyedConnections
 The connected signals.
- Protected Attributes inherited from makVrv::DtSignalConnectionManager
Connections myConnections
 The connected signals.
bool myConnectionsBlocked
bool myIndiviualConnectionedBlocked

Private Member Functions

DtKeyedSignalConnectionManageroperator= (DtKeyedSignalConnectionManager asn)
 Assignment.
 DtKeyedSignalConnectionManager (const DtKeyedSignalConnectionManager &copy)
 Copy.

Detailed Description

template<typename KeyType>
class makVrv::DtKeyedSignalConnectionManager< KeyType >

DtKeyedSignalConnectionManager extends DtSignalConnectionManager to allow access to managed signals via a key supplied when the connection is managed.

Member Typedef Documentation

template<typename KeyType>
typedef boost::unordered_map<KeyType, boost::signalslib::connection> makVrv::DtKeyedSignalConnectionManager< KeyType >::KeyedConnectionsMap
protected

A collection of keyed signals.

Constructor & Destructor Documentation

template<typename KeyType>
makVrv::DtKeyedSignalConnectionManager< KeyType >::DtKeyedSignalConnectionManager ( )

CTOR.

template<typename KeyType>
virtual makVrv::DtKeyedSignalConnectionManager< KeyType >::~DtKeyedSignalConnectionManager ( )
virtual

DTOR.

template<typename KeyType>
makVrv::DtKeyedSignalConnectionManager< KeyType >::DtKeyedSignalConnectionManager ( const DtKeyedSignalConnectionManager< KeyType > &  copy)
private

Copy.

Member Function Documentation

template<typename KeyType>
void makVrv::DtKeyedSignalConnectionManager< KeyType >::manageConnection ( KeyType  key,
const boost::signalslib::connection &  conn 
)

Connect a signal.

template<typename KeyType>
void makVrv::DtKeyedSignalConnectionManager< KeyType >::disconnectSignals ( )

Disconnect all signals AND removes them.

Reimplemented from makVrv::DtSignalConnectionManager.

template<typename KeyType>
void makVrv::DtKeyedSignalConnectionManager< KeyType >::disconnectSignal ( KeyType  key)

Disconnect and remove a signal.

template<typename KeyType>
bool makVrv::DtKeyedSignalConnectionManager< KeyType >::hasSignal ( KeyType  key)

Check if a signal for this key value already exists.

template<typename KeyType>
bool makVrv::DtKeyedSignalConnectionManager< KeyType >::blockConnections ( bool  blocked)

Blocks/unblocks connections.

Returns current state connection blocking

Reimplemented from makVrv::DtSignalConnectionManager.

template<typename KeyType>
bool makVrv::DtKeyedSignalConnectionManager< KeyType >::connectionsBlocked ( ) const

check whether connections are blocked.

Reimplemented from makVrv::DtSignalConnectionManager.

template<typename KeyType>
bool makVrv::DtKeyedSignalConnectionManager< KeyType >::blockConnection ( KeyType  key,
bool  blocked 
)

Blocks/unblocks connections.

Returns current state connection blocking, This function will cause the connection to be out of sync from the remaining connections.

template<typename KeyType>
bool makVrv::DtKeyedSignalConnectionManager< KeyType >::connectionBlocked ( KeyType  key) const

check whether connections are blocked.

template<typename KeyType>
DtKeyedSignalConnectionManager& makVrv::DtKeyedSignalConnectionManager< KeyType >::operator= ( DtKeyedSignalConnectionManager< KeyType >  asn)
private

Assignment.

Member Data Documentation

template<typename KeyType>
KeyedConnectionsMap makVrv::DtKeyedSignalConnectionManager< KeyType >::myKeyedConnections
protected

The connected signals.


The documentation for this class was generated from the following file:

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)