![]() |
VR-Forces 5.0.2 Developer's Guide
|
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.
Public Member Functions | |
| DtCallbackConnection () | |
| bool | disconnect () |
Private Types | |
| typedef boost::function< bool()> | DisconnectFunctionType |
Private Member Functions | |
| DtCallbackConnection (const DisconnectFunctionType &func) | |
Private Attributes | |
| DisconnectFunctionType | myDisconnectFunction |
Friends | |
| template<typename Callback > | |
| class | DtCallbackListT |
|
private |
|
inline |
Default constructor.
|
inlineexplicitprivate |
|
inline |
Disconnect the connection. Can be called multiple times. Can be called on a default constructed object.
|
friend |
|
private |