ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

Common::BaseCallback< S > Class Template Reference

BaseCallback<S> is a simple base class for object-oriented callbacks. More...

#include <callback.h>

Inheritance diagram for Common::BaseCallback< S >:

List of all members.

Public Member Functions

 BaseCallback ()
virtual ~BaseCallback ()
virtual void operator() (S data)=0

Detailed Description

template<typename S = void *>
class Common::BaseCallback< S >

BaseCallback<S> is a simple base class for object-oriented callbacks.

Object-oriented callbacks are such callbacks that know exact instance which method must be called.

For backwards compatibility purposes, there is a GlobalFunctionCallback, which is BaseCallback<void *>, so it can be used with global C-like functions too.

<S> is the type, which is passed to operator() of this callback. This allows you to specify that you accept a callback, which wants to receive an <S> object.

Definition at line 42 of file callback.h.


Constructor & Destructor Documentation

template<typename S = void *>
Common::BaseCallback< S >::BaseCallback (  )  [inline]

Definition at line 44 of file callback.h.

template<typename S = void *>
virtual Common::BaseCallback< S >::~BaseCallback (  )  [inline, virtual]

Definition at line 45 of file callback.h.


Member Function Documentation

template<typename S = void *>
virtual void Common::BaseCallback< S >::operator() ( data  )  [pure virtual]

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


Generated on Sat Jan 12 2019 05:04:00 for ResidualVM by doxygen 1.7.1
curved edge   curved edge