Allows to export code of a function call. More...
#include <export_function_call.hpp>
Allows to export code of a function call.
The class ExportFunctionCall allows to export code of a function call.
Definition at line 57 of file export_function_call.hpp.
BEGIN_NAMESPACE_ACADO ExportFunctionCall::ExportFunctionCall | ( | const std::string & | _name = "acadoFcn" , |
const ExportArgument & | _argument1 = emptyConstExportArgument , |
||
const ExportArgument & | _argument2 = emptyConstExportArgument , |
||
const ExportArgument & | _argument3 = emptyConstExportArgument , |
||
const ExportArgument & | _argument4 = emptyConstExportArgument , |
||
const ExportArgument & | _argument5 = emptyConstExportArgument , |
||
const ExportArgument & | _argument6 = emptyConstExportArgument , |
||
const ExportArgument & | _argument7 = emptyConstExportArgument , |
||
const ExportArgument & | _argument8 = emptyConstExportArgument , |
||
const ExportArgument & | _argument9 = emptyConstExportArgument |
||
) |
Default constructor which optionally takes the name of the function to be called as well as possible calling arguments.
[in] | _name | Name of the function to be called. |
[in] | _argument1 | Calling argument no. 1. |
[in] | _argument2 | Calling argument no. 2. |
[in] | _argument3 | Calling argument no. 3. |
[in] | _argument4 | Calling argument no. 4. |
[in] | _argument5 | Calling argument no. 5. |
[in] | _argument6 | Calling argument no. 6. |
[in] | _argument7 | Calling argument no. 7. |
[in] | _argument8 | Calling argument no. 8. |
[in] | _argument9 | Calling argument no. 9. |
Definition at line 44 of file export_function_call.cpp.
ExportFunctionCall::ExportFunctionCall | ( | const ExportFunction & | _f, |
const ExportArgument & | _argument1 = emptyConstExportArgument , |
||
const ExportArgument & | _argument2 = emptyConstExportArgument , |
||
const ExportArgument & | _argument3 = emptyConstExportArgument , |
||
const ExportArgument & | _argument4 = emptyConstExportArgument , |
||
const ExportArgument & | _argument5 = emptyConstExportArgument , |
||
const ExportArgument & | _argument6 = emptyConstExportArgument , |
||
const ExportArgument & | _argument7 = emptyConstExportArgument , |
||
const ExportArgument & | _argument8 = emptyConstExportArgument , |
||
const ExportArgument & | _argument9 = emptyConstExportArgument |
||
) |
Constructor which optionally takes the function to be called as well as possible calling arguments.
[in] | _f | Function to be called. |
[in] | _argument1 | Calling argument no. 1. |
[in] | _argument2 | Calling argument no. 2. |
[in] | _argument3 | Calling argument no. 3. |
[in] | _argument4 | Calling argument no. 4. |
[in] | _argument5 | Calling argument no. 5. |
[in] | _argument6 | Calling argument no. 6. |
[in] | _argument7 | Calling argument no. 7. |
[in] | _argument8 | Calling argument no. 8. |
[in] | _argument9 | Calling argument no. 9. |
Definition at line 63 of file export_function_call.cpp.
ExportFunctionCall::ExportFunctionCall | ( | const ExportFunctionCall & | arg | ) |
Copy constructor (deep copy).
[in] | arg | Right-hand side object. |
Definition at line 82 of file export_function_call.cpp.
ExportFunctionCall::~ExportFunctionCall | ( | ) | [virtual] |
Destructor.
Definition at line 90 of file export_function_call.cpp.
returnValue ExportFunctionCall::clear | ( | ) | [protected] |
Frees internal dynamic memory to yield an empty function call.
Definition at line 202 of file export_function_call.cpp.
ExportStatement * ExportFunctionCall::clone | ( | ) | const [virtual] |
Clone constructor (deep copy).
Implements ExportStatement.
Definition at line 110 of file export_function_call.cpp.
returnValue ExportFunctionCall::exportCode | ( | std::ostream & | stream, |
const std::string & | _realString = "real_t" , |
||
const std::string & | _intString = "int" , |
||
int | _precision = 16 |
||
) | const [virtual] |
Exports source code of the function call into given file. Its appearance can can be adjusted by various options.
[in] | stream | Name of file to be used to export function call. |
[in] | _realString | std::string to be used to declare real variables. |
[in] | _intString | std::string to be used to declare integer variables. |
[in] | _precision | Number of digits to be used for exporting real values. |
Implements ExportStatement.
Definition at line 180 of file export_function_call.cpp.
returnValue ExportFunctionCall::init | ( | const std::string & | _name = "defaultFunctionName" , |
const ExportArgument & | _argument1 = emptyConstExportArgument , |
||
const ExportArgument & | _argument2 = emptyConstExportArgument , |
||
const ExportArgument & | _argument3 = emptyConstExportArgument , |
||
const ExportArgument & | _argument4 = emptyConstExportArgument , |
||
const ExportArgument & | _argument5 = emptyConstExportArgument , |
||
const ExportArgument & | _argument6 = emptyConstExportArgument , |
||
const ExportArgument & | _argument7 = emptyConstExportArgument , |
||
const ExportArgument & | _argument8 = emptyConstExportArgument , |
||
const ExportArgument & | _argument9 = emptyConstExportArgument |
||
) |
Initializes function call with given name of the function and possible calling arguments.
[in] | _name | Name of the function to be called. |
[in] | _argument1 | Calling argument no. 1. |
[in] | _argument2 | Calling argument no. 2. |
[in] | _argument3 | Calling argument no. 3. |
[in] | _argument4 | Calling argument no. 4. |
[in] | _argument5 | Calling argument no. 5. |
[in] | _argument6 | Calling argument no. 6. |
[in] | _argument7 | Calling argument no. 7. |
[in] | _argument8 | Calling argument no. 8. |
[in] | _argument9 | Calling argument no. 9. |
Definition at line 117 of file export_function_call.cpp.
returnValue ExportFunctionCall::init | ( | const ExportFunction & | _f, |
const ExportArgument & | _argument1 = emptyConstExportArgument , |
||
const ExportArgument & | _argument2 = emptyConstExportArgument , |
||
const ExportArgument & | _argument3 = emptyConstExportArgument , |
||
const ExportArgument & | _argument4 = emptyConstExportArgument , |
||
const ExportArgument & | _argument5 = emptyConstExportArgument , |
||
const ExportArgument & | _argument6 = emptyConstExportArgument , |
||
const ExportArgument & | _argument7 = emptyConstExportArgument , |
||
const ExportArgument & | _argument8 = emptyConstExportArgument , |
||
const ExportArgument & | _argument9 = emptyConstExportArgument |
||
) |
Initializes function call with function to be called and possible calling arguments.
[in] | _f | Function to be called. |
[in] | _argument1 | Calling argument no. 1. |
[in] | _argument2 | Calling argument no. 2. |
[in] | _argument3 | Calling argument no. 3. |
[in] | _argument4 | Calling argument no. 4. |
[in] | _argument5 | Calling argument no. 5. |
[in] | _argument6 | Calling argument no. 6. |
[in] | _argument7 | Calling argument no. 7. |
[in] | _argument8 | Calling argument no. 8. |
[in] | _argument9 | Calling argument no. 9. |
Definition at line 141 of file export_function_call.cpp.
ExportFunctionCall & ExportFunctionCall::operator= | ( | const ExportFunctionCall & | arg | ) |
Assignment operator (deep copy).
[in] | arg | Right-hand side object. |
Definition at line 96 of file export_function_call.cpp.
returnValue ExportFunctionCall::setName | ( | const std::string & | _name | ) | [protected] |
Sets the name of the function to be called.
[in] | _name | New name of the function to be called. |
Definition at line 212 of file export_function_call.cpp.
List of calling arguments.
Definition at line 240 of file export_function_call.hpp.
std::string ExportFunctionCall::name [protected] |
Name of function to be called.
Definition at line 239 of file export_function_call.hpp.