ScummVM API documentation
Common::BaseCallback< S > Class Template Referenceabstract

#include <callback.h>

Inheritance diagram for Common::BaseCallback< S >:
Common::Callback< T, S > Common::CallbackBridge< T, OS, S >

Public Member Functions

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 callbacks that know the exact instance of the method that must be called.

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

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

Member Function Documentation

◆ operator()()

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

Type of the object passed to the operator.

Implemented in Common::CallbackBridge< T, OS, S >, Common::Callback< T, S >, and Common::GlobalFunctionCallback< T >.


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