VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Types | Private Member Functions | Private Attributes | Friends
DtCallbackConnection Class Reference

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
 

Member Typedef Documentation

typedef boost::function<bool()> DtCallbackConnection::DisconnectFunctionType
private

Constructor & Destructor Documentation

DtCallbackConnection::DtCallbackConnection ( )
inline

Default constructor.

DtCallbackConnection::DtCallbackConnection ( const DisconnectFunctionType func)
inlineexplicitprivate

Member Function Documentation

bool DtCallbackConnection::disconnect ( )
inline

Disconnect the connection. Can be called multiple times. Can be called on a default constructed object.

Returns
Whether the disconnected callback was the last callback in the list.

Friends And Related Function Documentation

template<typename Callback >
friend class DtCallbackListT
friend

Member Data Documentation

DisconnectFunctionType DtCallbackConnection::myDisconnectFunction
private

The documentation for this class was generated from the following file:

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)