DUECA/DUSIME
Loading...
Searching...
No Matches
Public Member Functions | List of all members
dueca::Callback< T > Class Template Reference

Template class for callback to a member function. More...

#include <Callback.hxx>

Inheritance diagram for dueca::Callback< T >:
Inheritance graph
[legend]
Collaboration diagram for dueca::Callback< T >:
Collaboration graph
[legend]

Public Member Functions

void operator() (const TimeSpec &t)
 The callback action.
 
void print (ostream &os) const
 Print to stream, for debugging.
 
 Callback (T *obj, void(T::*h)(const TimeSpec &t))
 Constructor.
 
 ~Callback ()
 Destructor.
 
- Public Member Functions inherited from dueca::GenericCallback
 GenericCallback ()
 Constructor.
 
virtual ~GenericCallback ()
 Destructor.
 

Detailed Description

template<class T>
class dueca::Callback< T >

Template class for callback to a member function.

With a member function of a specific type (with only a TimeSpec as parameter, and a pointer to an object, this object can implement callbacks.

Member Function Documentation

◆ operator()()

template<class T >
void dueca::Callback< T >::operator() ( const TimeSpec & t)
virtual

The callback action.

Implements dueca::GenericCallback.

◆ print()

template<class T >
void dueca::Callback< T >::print ( ostream & os) const
virtual

Print to stream, for debugging.

Implements dueca::GenericCallback.


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