AGX Dynamics 2.41.2.0
Loading...
Searching...
No Matches
agx::Event2< T1, T2 > Class Template Reference

An event with two arguments. More...

#include <Event.h>

+ Inheritance diagram for agx::Event2< T1, T2 >:

Public Member Functions

 Event2 (const agx::Name &name=agx::Name(), const T1 &defaultArg=T1())
 
void trigger (const T1 &arg1, const T2 &arg2)
 Trigger the event.
 
void trigger (const T2 &arg2)
 Trigger the event with default first argument.
 
- Public Member Functions inherited from agx::EventT< Callback2< T1, T2 > >
 EventT (const agx::Name &name=agx::Name())
 
void addCallback (const Callback2< T1, T2 > *callback)
 Add a callback to the event.
 
void addCallbackFirst (const Callback2< T1, T2 > *callback)
 Add a callback to the front of the callback list.
 
bool containsCallback (const Callback2< T1, T2 > *callback) const
 
const CallbackPtrVectorgetCallbacks () const
 
const agx::NamegetName () const
 
void removeAllCallbacks ()
 Remove all callbacks.
 
bool removeCallback (const Callback2< T1, T2 > *callback)
 

Additional Inherited Members

- Public Types inherited from agx::EventT< Callback2< T1, T2 > >
typedef VectorPOD< const CallbackType * > CallbackPtrVector
 
typedef Callback2< T1, T2 > CallbackType
 
- Protected Attributes inherited from agx::EventT< Callback2< T1, T2 > >
Threadm_activeThread
 
CallbackPtrVector m_callbacks
 
agx::UInt32 m_iterationIndex
 
Name m_name
 

Detailed Description

template<typename T1, typename T2>
class agx::Event2< T1, T2 >

An event with two arguments.

Definition at line 121 of file Event.h.

Constructor & Destructor Documentation

◆ Event2()

template<typename T1 , typename T2 >
agx::Event2< T1, T2 >::Event2 ( const agx::Name name = agx::Name(),
const T1 &  defaultArg = T1() 
)

Definition at line 283 of file Event.h.

Member Function Documentation

◆ trigger() [1/2]

template<typename T1 , typename T2 >
void agx::Event2< T1, T2 >::trigger ( const T1 &  arg1,
const T2 &  arg2 
)

◆ trigger() [2/2]

template<typename T1 , typename T2 >
void agx::Event2< T1, T2 >::trigger ( const T2 &  arg2)

Trigger the event with default first argument.

Definition at line 286 of file Event.h.


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