PSCF v1.1
|
Functor that wraps a one-argument class member function. More...
#include <MethodFunctor.h>
Public Member Functions | |
MethodFunctor (Object &object, Method1Ptr methodPtr) | |
Constructor. More... | |
virtual | ~MethodFunctor () |
Destructor. More... | |
virtual void | operator() (const T &t) |
Operator (). More... | |
![]() | |
virtual | ~IFunctor () |
Destructor (virtual) More... | |
virtual void | operator() (const T &t)=0 |
Call the associated function. More... | |
Functor that wraps a one-argument class member function.
The constructor to MethodFunctor<T> takes pointers to an invoking instance of class Object and a member function that takes one T argument. The operator () (const T&) invokes that method on that object.
Definition at line 26 of file MethodFunctor.h.
|
inline |
Constructor.
object | invoking object |
methodPtr | pointer to member function |
Definition at line 38 of file MethodFunctor.h.
|
inlinevirtual |
Destructor.
Definition at line 46 of file MethodFunctor.h.
|
inlinevirtual |
Operator ().
t | Parameter passed to method of associated T object. |
Implements Util::IFunctor< T >.
Definition at line 53 of file MethodFunctor.h.