ScummVM API documentation
Common::GlobalFunctionCallback< T > Class Template Reference

#include <callback.h>

Inheritance diagram for Common::GlobalFunctionCallback< T >:
Common::BaseCallback< T >

Public Member Functions

 GlobalFunctionCallback (GlobalFunction cb)
 
virtual void operator() (T data)
 

Detailed Description

template<typename T>
class Common::GlobalFunctionCallback< T >

GlobalFunctionCallback<T> is a simple wrapper for global C functions.

If a method accepts BaseCallback<T>, you can pass your C function by passing new GlobalFunctionCallback<T>(yourFunction)

Member Function Documentation

◆ operator()()

template<typename T >
virtual void Common::GlobalFunctionCallback< T >::operator() ( data)
inlinevirtual

Type of the object passed to the operator.

< C function passed to the operator.

Implements Common::BaseCallback< T >.


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