|
| ExecutorMember (const FunctorMemberPtr< T > &functor, const std::string &name="") |
| Constructor: Initializes the parent class and the pointer to the member-functor. More...
|
|
virtual | ~ExecutorMember () |
| Destructor. More...
|
|
T * | getObject () const |
| Returns the object-pointer of the underlying FunctorMember. More...
|
|
MultiType | operator() (T *object) const |
| Calls the wrapped function with 0 arguments and an object-pointer. If the function needs more arguments, the executor's default values are used. More...
|
|
MultiType | operator() (T *object, const MultiType &arg1) const |
| Calls the wrapped function with 1 argument and an object-pointer. If the function needs more arguments, the executor's default values are used. More...
|
|
MultiType | operator() (T *object, const MultiType &arg1, const MultiType &arg2) const |
| Calls the wrapped function with 2 arguments and an object-pointer. If the function needs more arguments, the executor's default values are used. More...
|
|
MultiType | operator() (T *object, const MultiType &arg1, const MultiType &arg2, const MultiType &arg3) const |
| Calls the wrapped function with 3 arguments and an object-pointer. If the function needs more arguments, the executor's default values are used. More...
|
|
MultiType | operator() (T *object, const MultiType &arg1, const MultiType &arg2, const MultiType &arg3, const MultiType &arg4) const |
| Calls the wrapped function with 4 arguments and an object-pointer. If the function needs more arguments, the executor's default values are used. More...
|
|
MultiType | operator() (T *object, const MultiType &arg1, const MultiType &arg2, const MultiType &arg3, const MultiType &arg4, const MultiType &arg5) const |
| Calls the wrapped function with 5 arguments and an object-pointer. If the function needs more arguments, the executor's default values are used. More...
|
|
MultiType | parse (T *object, const std::string &arguments, int *error=nullptr, const std::string &delimiter=" ", bool bPrintError=false) const |
| Overloads Executor::parse() with an additional object-pointer. More...
|
|
void | setObject (T *object) const |
| Changes the object-pointer of the underlying FunctorMember. More...
|
|
| Executor (const FunctorPtr &functor, const std::string &name="") |
| Constructor: Creates an executor. More...
|
|
| Executor (const Executor &other) |
| Copy-constructor: Creates a new executor with the same values and a clone of the wrapped Functor. More...
|
|
virtual | ~Executor ()=default |
|
bool | allDefaultValuesSet () const |
| Returns true if the executor has a default value for each parameter of the wrapped function, so it can be called without passing additional arguments. More...
|
|
bool | defaultValueSet (unsigned int index) const |
| Returns true if the executor contains a default value for the parameter with given index (the first parameter has index 0). More...
|
|
int | evaluateArguments (const SubString &arguments, MultiType arg[MAX_FUNCTOR_ARGUMENTS], int *error=nullptr, const std::string &delimiter=" ") const |
| Converts the arguments in a SubString to the right type, so they can be used to execute the function without further conversions. More...
|
|
MultiType | getDefaultValue (unsigned int index) const |
| Returns the default value for a parameter with given index (the first parameter has index 0). More...
|
|
const FunctorPtr & | getFunctor () const |
| Returns the functor. More...
|
|
const std::string & | getName () const |
| Returns the name of the executor. More...
|
|
unsigned int | getParamCount () const |
| Returns the number of parameters of the wrapped function. More...
|
|
Functor::Type | getType () const |
| Returns the type of the wrapped function (static or member). More...
|
|
std::string | getTypenameParam (unsigned int param) const |
| Returns the name of the type of a parameter with given index (the first parameter has index 0). More...
|
|
std::string | getTypenameReturnvalue () const |
| Returns the name of the type of the return value. More...
|
|
bool | hasReturnvalue () const |
| Returns true if the wrapped function returns a value. More...
|
|
MultiType | operator() () const |
| Calls the wrapped function with 0 arguments. If the function needs more arguments, the executor's default values are used. More...
|
|
MultiType | operator() (const MultiType &arg1) const |
| Calls the wrapped function with 1 argument. If the function needs more arguments, the executor's default values are used. More...
|
|
MultiType | operator() (const MultiType &arg1, const MultiType &arg2) const |
| Calls the wrapped function with 2 arguments. If the function needs more arguments, the executor's default values are used. More...
|
|
MultiType | operator() (const MultiType &arg1, const MultiType &arg2, const MultiType &arg3) const |
| Calls the wrapped function with 3 arguments. If the function needs more arguments, the executor's default values are used. More...
|
|
MultiType | operator() (const MultiType &arg1, const MultiType &arg2, const MultiType &arg3, const MultiType &arg4) const |
| Calls the wrapped function with 4 arguments. If the function needs more arguments, the executor's default values are used. More...
|
|
MultiType | operator() (const MultiType &arg1, const MultiType &arg2, const MultiType &arg3, const MultiType &arg4, const MultiType &arg5) const |
| Calls the wrapped function with 5 arguments. If the function needs more arguments, the executor's default values are used. More...
|
|
MultiType | parse (const std::string &arguments, int *error=nullptr, const std::string &delimiter=" ", bool bPrintError=false) const |
| Calls the wrapped function with arguments that are passed in a string. More...
|
|
MultiType | parse (const SubString &arguments, int *error=nullptr, const std::string &delimiter=" ", bool bPrintError=false) const |
| Calls the wrapped function with arguments that are passed as tokens in a SubString. More...
|
|
void | setDefaultValue (unsigned int index, const MultiType &arg) |
| Defines the default value for a parameter with given index (the first parameter has index 0). More...
|
|
void | setDefaultValues (const MultiType &arg1) |
| Defines the default value for the first parameter. More...
|
|
void | setDefaultValues (const MultiType &arg1, const MultiType &arg2) |
| Defines the default value for the first two parameters. More...
|
|
void | setDefaultValues (const MultiType &arg1, const MultiType &arg2, const MultiType &arg3) |
| Defines the default value for the first three parameters. More...
|
|
void | setDefaultValues (const MultiType &arg1, const MultiType &arg2, const MultiType &arg3, const MultiType &arg4) |
| Defines the default value for the first four parameters. More...
|
|
void | setDefaultValues (const MultiType &arg1, const MultiType &arg2, const MultiType &arg3, const MultiType &arg4, const MultiType &arg5) |
| Defines the default value for the first five parameters. More...
|
|
void | setFunctor (const FunctorPtr &functor) |
| Changes the functor. More...
|
|
void | setName (const std::string &name) |
| Changes the name of the executor. More...
|
|
template<class T>
class orxonox::ExecutorMember< T >
A child class of Executor, used for easier handling of non-static member-functions.
Overloads some functions that call the underlying FunctorMember and additionally pass an object-pointer that is needed for non-static member-functions.