Page Speed Optimization Libraries  1.13.35.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Protected Member Functions | List of all members
net_instaweb::MemberFunction4< C, T1, T2, T3, T4 > Class Template Reference

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

#include "function.h"

Inheritance diagram for net_instaweb::MemberFunction4< C, T1, T2, T3, T4 >:
net_instaweb::MemberFunctionBase< C > net_instaweb::Function

Public Types

typedef void(C::* Func )(T1, T2, T3, T4)
 

Public Member Functions

 MemberFunction4 (Func f, C *c, T1 v1, T2 v2, T3 v3, T4 v4)
 Constructor supplying a Run method, but no Cancel method.
 
 MemberFunction4 (Func f, Func cancel, C *c, T1 v1, T2 v2, T3 v3, T4 v4)
 Constructor supplying a Run method and a Cancel method.
 
- Public Member Functions inherited from net_instaweb::MemberFunctionBase< C >
 MemberFunctionBase (C *c)
 
- Public Member Functions inherited from net_instaweb::Function
void set_quit_requested_pointer (AtomicBool *x)
 
bool quit_requested () const
 
void CallRun ()
 
void CallCancel ()
 
void set_delete_after_callback (bool x)
 
void Reset ()
 

Protected Member Functions

virtual void Run ()
 
virtual void Cancel ()
 

Additional Inherited Members

- Protected Attributes inherited from net_instaweb::MemberFunctionBase< C >
C * object_
 

Detailed Description

template<class C, typename T1, typename T2, typename T3, typename T4>
class net_instaweb::MemberFunction4< C, T1, T2, T3, T4 >

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

Member Function Documentation

template<class C, typename T1, typename T2, typename T3, typename T4>
virtual void net_instaweb::MemberFunction4< C, T1, T2, T3, T4 >::Cancel ( )
inlineprotectedvirtual

Informs a the Function that it is being shut down. If this is called, Run() should not be called. This should never be called while a function is running. See also set_quit_requested(), which can be called during Run(), so that Run() implementations can check quit_requested() at their convenience to stop the operation in progress.

Reimplemented from net_instaweb::Function.

template<class C, typename T1, typename T2, typename T3, typename T4>
virtual void net_instaweb::MemberFunction4< C, T1, T2, T3, T4 >::Run ( )
inlineprotectedvirtual

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: