![]() |
VR-Forces 4.8 Class Documentation
|
Represents the connection of a specific callback to a DtCallbackListT. More...
Public Member Functions | |
| DtCallbackConnection () | |
| Default constructor. More... | |
| bool | disconnect () |
| Disconnect the connection. More... | |
Private Types | |
| typedef boost::function< bool()> | DisconnectFunctionType |
Private Member Functions | |
| DtCallbackConnection (const DisconnectFunctionType &func) | |
Private Attributes | |
| DisconnectFunctionType | myDisconnectFunction |
Friends | |
| template<typename Callback > | |
| class | DtCallbackListT |
Represents the connection of a specific callback to a DtCallbackListT.
Saving a DtCallbackConnection returned from DtCallbackListT::addCallback allows you to disconnect the callback without having to remember what DtCallbackListT it was connected to or what parameters were used to connect it It is also more efficient than calling removeCallback.
|
private |
|
inline |
Default constructor.
|
inlineexplicitprivate |
|
inline |
Disconnect the connection.
Can be called multiple times. Can be called on a default constructed object.
|
friend |
|
private |