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

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

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.


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