Page Speed Optimization Libraries  1.13.35.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
net_instaweb::Callback1< A1 > Class Template Referenceabstract

#include "callback.h"

Inheritance diagram for net_instaweb::Callback1< A1 >:
net_instaweb::_MemberCallback_0_1< C, A1, DeleteAfterRun > net_instaweb::_MemberCallback_1_1< T, P1, A1, DeleteAfterRun >

Public Member Functions

virtual void Run (A1)=0
 

Detailed Description

template<class A1>
class net_instaweb::Callback1< A1 >

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); }


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