35 #ifndef ACADO_TOOLKIT_EXPORT_STATEMENT_BLOCK_HPP 36 #define ACADO_TOOLKIT_EXPORT_STATEMENT_BLOCK_HPP 230 const std::string& _comment
252 const std::string& _realString =
"real_t",
253 const std::string& _intString =
"int",
268 const std::string& _realString =
"real_t",
269 const std::string& _intString =
"int",
307 #endif // ACADO_TOOLKIT_EXPORT_STATEMENT_BLOCK_HPP Allows to export code containing variable declarations.
Allows to export code of an ACADO function.
Allows to pass back messages to the calling function.
Allows to export code containing function (forward) declarations.
returnValue addComment(const std::string &_comment)
BEGIN_NAMESPACE_ACADO typedef unsigned int uint
std::vector< StatementPtr > StatementPtrArray
#define CLOSE_NAMESPACE_ACADO
virtual returnValue exportCode(std::ostream &stream, const std::string &_realString="real_t", const std::string &_intString="int", int _precision=16) const
Defines a scalar-valued index variable to be used for exporting code.
Defines a matrix-valued variable that can be passed as argument to exported functions.
virtual ~ExportStatementBlock()
virtual ExportStatement * clone() const
Base class for all kind of statements to be exported by the code generation tool. ...
Allows to export code of an arbitrary function.
returnValue addStatement(const ExportStatement &_statement)
void rhs(const real_t *x, real_t *f)
StatementPtrArray statements
returnValue addLinebreak(uint num=1)
static const ExportArgument emptyConstExportArgument
returnValue addDeclaration(const ExportVariable &_data, ExportStruct _dataStruct=ACADO_ANY)
friend ExportStatementBlock & operator<<(ExportStatementBlock &_block, const ExportStatement &_statement)
uint getNumStatements() const
#define BEGIN_NAMESPACE_ACADO
returnValue addFunction(const ExportFunction &_function)
virtual returnValue exportDataDeclaration(std::ostream &stream, const std::string &_realString="real_t", const std::string &_intString="int", int _precision=16) const
ExportStatementBlock & operator=(const ExportStatementBlock &rhs)
Allows to export code for a block of statements.
Defines a matrix-valued variable to be used for exporting code.
returnValue addFunctionCall(const std::string &_fName, 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)