Functor for a member function with return value and 1 parameter.
More...
#include <ArFunctor.h>
Inherits ArRetFunctor1< Ret, P1 >.
|
Ret(T::* | myFunc )(P1) |
|
T * | myObj |
|
P1 | myP1 |
|
std::string | myName |
|
template<class Ret, class T, class P1>
class ArRetFunctor1C< Ret, T, P1 >
Functor for a member function with return value and 1 parameter.
This is a class for member functions which take 1 parameter and return a value. This class contains the knowledge on how to call a member function on a particular instance of a class. This class should be instantiated by code that wishes to pass off a functor to another piece of code.
For an overall description of functors, see ArFunctor.
- Examples:
- functorExample.cpp, gpsRobotTaskExample.cpp, and gyroExample.cpp.
◆ ArRetFunctor1C() [1/4]
template<class Ret, class T, class P1>
Constructor - supply function pointer.
- Parameters
-
obj | object to call function on |
func | member function pointer |
◆ ArRetFunctor1C() [2/4]
template<class Ret, class T, class P1>
Constructor - supply function pointer, default parameters.
- Parameters
-
obj | object to call function on |
func | member function pointer |
p1 | default first parameter |
◆ ArRetFunctor1C() [3/4]
template<class Ret, class T, class P1>
Constructor - supply function pointer.
- Parameters
-
obj | object to call function on |
func | member function pointer |
◆ ArRetFunctor1C() [4/4]
template<class Ret, class T, class P1>
Constructor - supply function pointer, default parameters.
- Parameters
-
obj | object to call function on |
func | member function pointer |
p1 | default first parameter |
◆ invokeR()
template<class Ret, class T, class P1>
◆ setP1()
template<class Ret, class T, class P1>
Set the default parameter.
- Parameters
-
p1 | default first parameter |
◆ setThis() [1/2]
template<class Ret, class T, class P1>
Set the 'this' pointer.
- Parameters
-
◆ setThis() [2/2]
template<class Ret, class T, class P1>
Set the 'this' pointer.
- Parameters
-
The documentation for this class was generated from the following file: