Page Speed Optimization Libraries
1.13.35.1
|
#include "callback.h"
Public Member Functions | |
virtual void | Run (A1, A2)=0 |
Base class for a two-argument callback. Currently we have a single implementation that handles single argument member functions, which are to be invoked at some point in the future with the parameter. Example Usage:
class MyClass { public: void MyMethod(int x, double y); };
void Foo(MyClass* my_class) { Callback<int, double>* cb = NewCallback(my_class, &MyClass::MyMethod); Bar(cb); }
void Bar(Callback1<int, double>* cb) { cb->Run(1234, 2.7182818); }