Captures a delayed call to a 1-arg member function as a closure. More...
#include "function.h"
Public Types | |
typedef void(C::* | Func )(T1) |
Public Member Functions | |
MemberFunction1 (Func f, C *c, T1 v1) | |
Constructor suppying a Run method, but no Cancel method. | |
MemberFunction1 (Func f, typename MemberFunctionBase< C >::CancelFunc cancel, C *c, T1 v1) | |
Constructor suppying a Run method and a Cancel method. | |
Protected Member Functions | |
virtual void | Run () |
Captures a delayed call to a 1-arg member function as a closure.
virtual void net_instaweb::MemberFunction1< C, T1 >::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.