VR-Forces 5.0.1 Developer's Guide
 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

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.

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

Public Member Functions

 DtKeyedSignalConnectionManager ()
 
virtual ~DtKeyedSignalConnectionManager ()
 
void manageConnection (KeyType key, const boost::signalslib::connection &conn)
 
void disconnectSignals ()
 
void disconnectSignal (KeyType key)
 
bool hasSignal (KeyType key)
 
bool blockConnections (bool blocked)
 
bool connectionsBlocked () const
 
bool blockConnection (KeyType key, bool blocked)
 
bool connectionBlocked (KeyType key) const
 
- Public Member Functions inherited from makVrv::DtSignalConnectionManager
 DtSignalConnectionManager ()
 
virtual ~DtSignalConnectionManager ()
 
void manageConnection (const boost::signalslib::connection &conn)
 
DtSignalConnectionManageroperator+= (const boost::signalslib::connection &conn)
 
bool blockConnections (bool blocked)
 
int numberOfConnections () const
 
void disconnectSignals ()
 
bool connectionsBlocked () const
 

Protected Types

typedef boost::unordered_map
< KeyType,
boost::signalslib::connection > 
KeyedConnectionsMap
 
- Protected Types inherited from makVrv::DtSignalConnectionManager
typedef std::vector
< boost::signalslib::connection > 
Connections
 

Protected Attributes

KeyedConnectionsMap myKeyedConnections
 
- Protected Attributes inherited from makVrv::DtSignalConnectionManager
Connections myConnections
 
bool myConnectionsBlocked
 
bool myIndiviualConnectionedBlocked
 
std::vector
< boost::signalslib::shared_connection_block * > 
mySharedConnectionsBlockManager
 

Private Member Functions

DtKeyedSignalConnectionManageroperator= (DtKeyedSignalConnectionManager asn)
 
 DtKeyedSignalConnectionManager (const DtKeyedSignalConnectionManager &copy)
 

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 Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)