![]() |
VR-Forces 4.0.4 Class Documentation
|
Class to manage disconnection of boost connections on deletion. More...

Public Member Functions | |
| DtSignalConnectionManager () | |
| CTOR. | |
| virtual | ~DtSignalConnectionManager () |
| DTOR. | |
| void | manageConnection (const boost::signalslib::connection &conn) |
| Connect a signal. | |
| DtSignalConnectionManager & | operator+= (const boost::signalslib::connection &conn) |
| Connect a signal. | |
| int | numberOfConnections () const |
| Get the number of connections. | |
| void | disconnectSignals () |
| Disconnect all signals. | |
| bool | blockConnections (bool blocked) |
| Blocks/unblocks connections. | |
| bool | blockConnection (int index, bool blocked) |
| Blocks/unblocks connections. | |
| bool | connectionsBlocked () const |
| check whether connections are blocked. | |
| bool | connectionBlocked (int index) const |
| check whether connections are blocked. | |
Protected Types | |
| typedef std::vector < boost::signalslib::connection > | Connections |
| A collection of signals. | |
Protected Attributes | |
| Connections | myConnections |
| The connected signals. | |
| bool | myConnectionsBlocked |
| bool | myIndiviualConnectionedBlocked |
Private Member Functions | |
| DtSignalConnectionManager & | operator= (DtSignalConnectionManager asn) |
| Assignment. | |
| DtSignalConnectionManager (const DtSignalConnectionManager ©) | |
| Copy. | |
Class to manage disconnection of boost connections on deletion.
typedef std::vector<boost::signalslib::connection> makVrv::DtSignalConnectionManager::Connections [protected] |
A collection of signals.
| virtual makVrv::DtSignalConnectionManager::~DtSignalConnectionManager | ( | ) | [virtual] |
DTOR.
| makVrv::DtSignalConnectionManager::DtSignalConnectionManager | ( | const DtSignalConnectionManager & | copy | ) | [private] |
Copy.
| void makVrv::DtSignalConnectionManager::manageConnection | ( | const boost::signalslib::connection & | conn | ) |
Connect a signal.
| DtSignalConnectionManager& makVrv::DtSignalConnectionManager::operator+= | ( | const boost::signalslib::connection & | conn | ) | [inline] |
Connect a signal.
| int makVrv::DtSignalConnectionManager::numberOfConnections | ( | ) | const |
Get the number of connections.
Disconnect all signals.
Blocks/unblocks connections.
Returns current state connection blocking
| bool makVrv::DtSignalConnectionManager::blockConnection | ( | int | index, |
| 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.
check whether connections are blocked.
| bool makVrv::DtSignalConnectionManager::connectionBlocked | ( | int | index | ) | const |
check whether connections are blocked.
| DtSignalConnectionManager& makVrv::DtSignalConnectionManager::operator= | ( | DtSignalConnectionManager | asn | ) | [private] |
Assignment.
The connected signals.