VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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. More...
 
virtual ~DtKeyedSignalConnectionManager ()
 DTOR. More...
 
void manageConnection (KeyType key, const boost::signalslib::connection &conn)
 Connect a signal. More...
 
void disconnectSignals ()
 Disconnect all signals AND removes them. More...
 
void disconnectSignal (KeyType key)
 Disconnect and remove a signal. More...
 
bool hasSignal (KeyType key)
 Check if a signal for this key value already exists. More...
 
bool blockConnections (bool blocked)
 Blocks/unblocks connections. More...
 
bool connectionsBlocked () const
 check whether connections are blocked. More...
 
bool blockConnection (KeyType key, bool blocked)
 Blocks/unblocks connections. More...
 
bool connectionBlocked (KeyType key) const
 check whether connections are blocked. More...
 
- Public Member Functions inherited from makVrv::DtSignalConnectionManager
 DtSignalConnectionManager ()
 CTOR. More...
 
virtual ~DtSignalConnectionManager ()
 DTOR. More...
 
void manageConnection (const boost::signalslib::connection &conn)
 Connect a signal. More...
 
DtSignalConnectionManageroperator+= (const boost::signalslib::connection &conn)
 Connect a signal. More...
 
bool blockConnections (bool blocked)
 Blocks/unblocks connections. More...
 
int numberOfConnections () const
 Get the number of connections. More...
 
void disconnectSignals ()
 Disconnect all signals. More...
 
bool connectionsBlocked () const
 check whether connections are blocked. More...
 

Protected Types

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

Protected Attributes

KeyedConnectionsMap myKeyedConnections
 The connected signals. More...
 
- Protected Attributes inherited from makVrv::DtSignalConnectionManager
Connections myConnections
 The connected signals. More...
 
bool myConnectionsBlocked
 
bool myIndiviualConnectionedBlocked
 
std::vector
< boost::signalslib::shared_connection_block * > 
mySharedConnectionsBlockManager
 blocking Connections manager for signal2 connection More...
 

Private Member Functions

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

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.

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

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

check whether connections are blocked.

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 Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)