AGX Dynamics  2.37.3.2
agx::Callback3< T1, T2, T3 > Class Template Reference

Templated callback with three arguments. More...

#include <Callback.h>

Public Types

typedef std::function< void(T1, T2, T3)> CallbackFunction
 

Public Member Functions

 Callback3 ()
 
 Callback3 (const CallbackFunction &func, bool repeatEnable=true)
 
template<class ClassT >
 Callback3 (void(ClassT::*fun)(T1, T2, T3), ClassT *obj, bool repeatEnable=true)
 
template<class ClassT >
 Callback3 (void(ClassT::*fun)(T1, T2), ClassT *obj, bool repeatEnable=true)
 
template<class ClassT >
 Callback3 (void(ClassT::*fun)(T1), ClassT *obj, bool repeatEnable=true)
 
template<class ClassT >
 Callback3 (void(ClassT::*fun)(), ClassT *obj, bool repeatEnable=true)
 
const CallbackFunction & implementation () const
 Return the std representation. More...
 
bool isRepeating () const
 
bool isValid () const
 
 operator const CallbackFunction & () const
 
void operator() (T1 arg1, T2 arg2, T3 arg3) const
 Execute the callback. More...
 
void run (T1 arg1, T2 arg2, T3 arg3) const
 

Detailed Description

template<typename T1, typename T2, typename T3>
class agx::Callback3< T1, T2, T3 >

Templated callback with three arguments.

Definition at line 181 of file Callback.h.

Member Typedef Documentation

◆ CallbackFunction

template<typename T1, typename T2, typename T3>
typedef std::function<void (T1, T2, T3)> agx::Callback3< T1, T2, T3 >::CallbackFunction

Definition at line 184 of file Callback.h.

Constructor & Destructor Documentation

◆ Callback3() [1/6]

template<typename T1 , typename T2 , typename T3 >
agx::Callback3< T1, T2, T3 >::Callback3 ( )

Definition at line 382 of file Callback.h.

◆ Callback3() [2/6]

template<typename T1 , typename T2 , typename T3 >
agx::Callback3< T1, T2, T3 >::Callback3 ( const CallbackFunction &  func,
bool  repeatEnable = true 
)

Definition at line 385 of file Callback.h.

◆ Callback3() [3/6]

template<typename T1 , typename T2 , typename T3 >
template<class ClassT >
agx::Callback3< T1, T2, T3 >::Callback3 ( void(ClassT::*)(T1, T2, T3)  fun,
ClassT *  obj,
bool  repeatEnable = true 
)

Definition at line 369 of file Callback.h.

◆ Callback3() [4/6]

template<typename T1 , typename T2 , typename T3 >
template<class ClassT >
agx::Callback3< T1, T2, T3 >::Callback3 ( void(ClassT::*)(T1, T2)  fun,
ClassT *  obj,
bool  repeatEnable = true 
)

Definition at line 373 of file Callback.h.

◆ Callback3() [5/6]

template<typename T1 , typename T2 , typename T3 >
template<class ClassT >
agx::Callback3< T1, T2, T3 >::Callback3 ( void(ClassT::*)(T1)  fun,
ClassT *  obj,
bool  repeatEnable = true 
)

Definition at line 376 of file Callback.h.

◆ Callback3() [6/6]

template<typename T1 , typename T2 , typename T3 >
template<class ClassT >
agx::Callback3< T1, T2, T3 >::Callback3 ( void(ClassT::*)()  fun,
ClassT *  obj,
bool  repeatEnable = true 
)

Definition at line 379 of file Callback.h.

Member Function Documentation

◆ implementation()

template<typename T1 , typename T2 , typename T3 >
const Callback3< T1, T2, T3 >::CallbackFunction & agx::Callback3< T1, T2, T3 >::implementation ( ) const

Return the std representation.

Definition at line 398 of file Callback.h.

◆ isRepeating()

template<typename T1 , typename T2 , typename T3 >
bool agx::Callback3< T1, T2, T3 >::isRepeating ( ) const
Returns
True if the callback is repeating (when added to an agx::Event)

Definition at line 401 of file Callback.h.

References AGX_FORCE_INLINE.

Referenced by agx::Event3< RigidBodyEmitter *, agx::RigidBody *, DistributionModel * >::trigger().

◆ isValid()

template<typename T1 , typename T2 , typename T3 >
bool agx::Callback3< T1, T2, T3 >::isValid ( ) const
Returns
True if the callback is non-void

Definition at line 407 of file Callback.h.

◆ operator const CallbackFunction &()

template<typename T1, typename T2, typename T3>
agx::Callback3< T1, T2, T3 >::operator const CallbackFunction & ( ) const

◆ operator()()

template<typename T1 , typename T2 , typename T3 >
void agx::Callback3< T1, T2, T3 >::operator() ( T1  arg1,
T2  arg2,
T3  arg3 
) const

Execute the callback.

Definition at line 388 of file Callback.h.

References agx::Callback3< T1, T2, T3 >::run().

◆ run()

template<typename T1 , typename T2 , typename T3 >
void agx::Callback3< T1, T2, T3 >::run ( T1  arg1,
T2  arg2,
T3  arg3 
) const

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