AGX Dynamics 2.41.2.0
Loading...
Searching...
No Matches
agx::Callback1< T > Class Template Reference

Templated callback with one argument. More...

#include <Callback.h>

Public Types

typedef std::function< void(T)> CallbackFunction
 

Public Member Functions

 Callback1 ()
 
 Callback1 (const CallbackFunction &func, bool repeatEnable=true)
 
template<class ClassT >
 Callback1 (void(ClassT::*fun)(), ClassT *obj, bool repeatEnable=true)
 
template<class ClassT >
 Callback1 (void(ClassT::*fun)(T), ClassT *obj, bool repeatEnable=true)
 
const CallbackFunctionimplementation () const
 Return the std representation.
 
bool isRepeating () const
 
bool isValid () const
 
 operator const CallbackFunction & () const
 
void operator() (T arg1) const
 Execute the callback.
 
void run (T arg1) const
 

Detailed Description

template<typename T>
class agx::Callback1< T >

Templated callback with one argument.

Definition at line 100 of file Callback.h.

Member Typedef Documentation

◆ CallbackFunction

template<typename T >
typedef std::function<void (T)> agx::Callback1< T >::CallbackFunction

Definition at line 103 of file Callback.h.

Constructor & Destructor Documentation

◆ Callback1() [1/4]

template<typename T >
agx::Callback1< T >::Callback1

Definition at line 295 of file Callback.h.

◆ Callback1() [2/4]

template<typename T >
agx::Callback1< T >::Callback1 ( const CallbackFunction func,
bool  repeatEnable = true 
)

Definition at line 298 of file Callback.h.

◆ Callback1() [3/4]

template<typename T >
template<class ClassT >
agx::Callback1< T >::Callback1 ( void(ClassT::*)(T)  fun,
ClassT *  obj,
bool  repeatEnable = true 
)
inline

Definition at line 289 of file Callback.h.

◆ Callback1() [4/4]

template<typename T >
template<class ClassT >
agx::Callback1< T >::Callback1 ( void(ClassT::*)()  fun,
ClassT *  obj,
bool  repeatEnable = true 
)

Definition at line 292 of file Callback.h.

Member Function Documentation

◆ implementation()

template<typename T >
const Callback1< T >::CallbackFunction & agx::Callback1< T >::implementation

Return the std representation.

Definition at line 311 of file Callback.h.

◆ isRepeating()

template<typename T >
bool agx::Callback1< T >::isRepeating
Returns
True if the callback is repeating (when added to an agx::Event)

Definition at line 314 of file Callback.h.

Referenced by agx::Event1< T1 >::trigger().

◆ isValid()

template<typename T >
bool agx::Callback1< T >::isValid
Returns
True if the callback is non-void

Definition at line 320 of file Callback.h.

◆ operator const CallbackFunction &()

template<typename T >
agx::Callback1< T >::operator const CallbackFunction & ( ) const

◆ operator()()

template<typename T >
void agx::Callback1< T >::operator() ( arg1) const

Execute the callback.

Definition at line 301 of file Callback.h.

◆ run()

template<typename T >
void agx::Callback1< T >::run ( arg1) const

Definition at line 304 of file Callback.h.

References agxAssert.

Referenced by agx::Event1< T1 >::trigger().


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