Page Speed Optimization Libraries
1.13.35.1
|
#include "callback.h"
Public Member Functions | |
virtual void | Run (A1)=0 |
Base class for a single 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); };
void Foo(MyClass* my_class) { Callback1<int>* cb = NewCallback(my_class, &MyClass::MyMethod); Bar(cb); }
void Bar(Callback1<int>* cb) { cb->Run(1234); }