![]() |
AGX Dynamics 2.40.0.0
|
An event has a list of listeners (agx::Callback), which are called when the event is triggered. More...
#include <Event.h>
Public Types | |
typedef VectorPOD< const CallbackType * > | CallbackPtrVector |
typedef T | CallbackType |
Public Member Functions | |
EventT (const agx::Name &name=agx::Name()) | |
void | addCallback (const T *callback) |
Add a callback to the event. | |
void | addCallbackFirst (const T *callback) |
Add a callback to the front of the callback list. | |
bool | containsCallback (const T *callback) const |
const CallbackPtrVector & | getCallbacks () const |
const agx::Name & | getName () const |
void | removeAllCallbacks () |
Remove all callbacks. | |
bool | removeCallback (const T *callback) |
Protected Attributes | |
Thread * | m_activeThread |
CallbackPtrVector | m_callbacks |
agx::UInt32 | m_iterationIndex |
Name | m_name |
An event has a list of listeners (agx::Callback), which are called when the event is triggered.
typedef VectorPOD< const CallbackType * > agx::EventT< T >::CallbackPtrVector |
typedef T agx::EventT< T >::CallbackType |
agx::EventT< T >::EventT | ( | const agx::Name & | name = agx::Name() | ) |
void agx::EventT< T >::addCallback | ( | const T * | callback | ) |
Add a callback to the event.
Definition at line 172 of file Event.h.
References agx::__agx_Event_getActiveThread(), agxAssert, and std::swap().
void agx::EventT< T >::addCallbackFirst | ( | const T * | callback | ) |
Add a callback to the front of the callback list.
Definition at line 190 of file Event.h.
References agx::__agx_Event_getActiveThread(), and agxAssert.
bool agx::EventT< T >::containsCallback | ( | const T * | callback | ) | const |
const EventT< T >::CallbackPtrVector & agx::EventT< T >::getCallbacks |
const Name & agx::EventT< T >::getName |
Definition at line 169 of file Event.h.
Referenced by agx::operator<<().
void agx::EventT< T >::removeAllCallbacks |
bool agx::EventT< T >::removeCallback | ( | const T * | callback | ) |
Definition at line 199 of file Event.h.
References agx::__agx_Event_getActiveThread(), and agxAssert.
|
protected |
|
protected |
|
protected |
|
protected |