Functor for a global function with 1 parameter and return value.
More...
#include <ArFunctor.h>
Inherits ArRetFunctor1< Ret, P1 >.
|
Ret(* | myFunc )(P1) |
|
P1 | myP1 |
|
std::string | myName |
|
template<class Ret, class P1>
class ArGlobalRetFunctor1< Ret, P1 >
Functor for a global function with 1 parameter and return value.
This is a class for global functions which take 1 parameter and return a value. This ties a C style function pointer into the functor class hierarchy as a convience. Code that has a reference to this class and treat it as an ArFunctor can use it like any other functor.
For an overall description of functors, see ArFunctor.
- Examples:
- auxSerialExample.cpp, and imuExample.cpp.
◆ ArGlobalRetFunctor1() [1/2]
template<class Ret, class P1>
Constructor - supply function pointer.
- Parameters
-
func | global function pointer |
◆ ArGlobalRetFunctor1() [2/2]
template<class Ret, class P1>
Constructor - supply function pointer, default parameters.
- Parameters
-
func | global function pointer |
p1 | default first parameter |
◆ invokeR()
template<class Ret, class P1>
◆ setP1()
template<class Ret, class P1>
Set the default parameter.
- Parameters
-
p1 | default first parameter |
The documentation for this class was generated from the following file: