net_instaweb::MemberFunction0< C > Class Template Reference

Captures a delayed call to a 0-arg member function as a closure. More...

#include "function.h"

Inheritance diagram for net_instaweb::MemberFunction0< C >:
net_instaweb::MemberFunctionBase< C > net_instaweb::Function

List of all members.

Public Types

typedef void(C::* Func )()

Public Member Functions

 MemberFunction0 (Func f, C *c)
 Constructor suppying a Run method, but no Cancel method.
 MemberFunction0 (Func f, typename MemberFunctionBase< C >::CancelFunc cancel, C *c)
 Constructor suppying a Run method and a Cancel method.

Protected Member Functions

virtual void Run ()

Detailed Description

template<class C>
class net_instaweb::MemberFunction0< C >

Captures a delayed call to a 0-arg member function as a closure.


Member Function Documentation

template<class C>
virtual void net_instaweb::MemberFunction0< C >::Run (  )  [inline, protected, virtual]

Callers must override this to define the action to take when a closure is run. If this is called, Cancel() should not be called. This is a convention that's expected of callers of Function objects, but is not enforced by the Function implementation.

Implements net_instaweb::Function.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Tue May 29 16:34:10 2012 for Page Speed Optimization Libraries by  doxygen 1.6.3