AGXDynamics  2.31.1.0
agx::Event Class Reference

An event with no arguments. More...

#include <Event.h>

+ Inheritance diagram for agx::Event:

Public Types

typedef VectorPOD< const CallbackType * > CallbackPtrVector
 
typedef Callback CallbackType
 

Public Member Functions

 Event (const agx::Name &name=agx::Name())
 
void addCallback (const Callback *callback)
 Add a callback to the event. More...
 
void addCallbackFirst (const Callback *callback)
 Add a callback to the front of the callback list. More...
 
bool containsCallback (const Callback *callback) const
 
const CallbackPtrVector & getCallbacks () const
 
const agx::Name & getName () const
 
void removeAllCallbacks ()
 Remove all callbacks. More...
 
bool removeCallback (const Callback *callback)
 
void trigger ()
 Trigger the event. More...
 

Protected Attributes

Thread * m_activeThread
 
CallbackPtrVector m_callbacks
 
agx::UInt32 m_iterationIndex
 
Name m_name
 

Detailed Description

An event with no arguments.

Definition at line 89 of file Event.h.

Member Typedef Documentation

◆ CallbackPtrVector

typedef VectorPOD< const CallbackType * > agx::EventT< Callback >::CallbackPtrVector
inherited

Definition at line 38 of file Event.h.

◆ CallbackType

typedef Callback agx::EventT< Callback >::CallbackType
inherited

Definition at line 37 of file Event.h.

Constructor & Destructor Documentation

◆ Event()

agx::Event::Event ( const agx::Name &  name = agx::Name())

Definition at line 225 of file Event.h.

Member Function Documentation

◆ addCallback()

void agx::EventT< Callback >::addCallback ( const Callback *  callback)
inherited

Add a callback to the event.

Definition at line 172 of file Event.h.

◆ addCallbackFirst()

void agx::EventT< Callback >::addCallbackFirst ( const Callback *  callback)
inherited

Add a callback to the front of the callback list.

Definition at line 190 of file Event.h.

◆ containsCallback()

bool agx::EventT< Callback >::containsCallback ( const Callback *  callback) const
inherited
Returns
True if the callback is registered with this event.

Definition at line 223 of file Event.h.

◆ getCallbacks()

const EventT< Callback >::CallbackPtrVector & agx::EventT< Callback >::getCallbacks ( ) const
inherited
Returns
The list of registered callbacks.

Definition at line 220 of file Event.h.

◆ getName()

const Name & agx::EventT< Callback >::getName ( ) const
inherited
Returns
The name of the event.

Definition at line 169 of file Event.h.

◆ removeAllCallbacks()

void agx::EventT< Callback >::removeAllCallbacks ( )
inherited

Remove all callbacks.

Definition at line 217 of file Event.h.

◆ removeCallback()

bool agx::EventT< Callback >::removeCallback ( const Callback *  callback)
inherited

Definition at line 199 of file Event.h.

◆ trigger()

Member Data Documentation

◆ m_activeThread

Thread* agx::EventT< Callback >::m_activeThread
protectedinherited

Definition at line 82 of file Event.h.

◆ m_callbacks

CallbackPtrVector agx::EventT< Callback >::m_callbacks
protectedinherited

Definition at line 80 of file Event.h.

Referenced by trigger().

◆ m_iterationIndex

agx::UInt32 agx::EventT< Callback >::m_iterationIndex
protectedinherited

Definition at line 83 of file Event.h.

◆ m_name

Name agx::EventT< Callback >::m_name
protectedinherited

Definition at line 81 of file Event.h.


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