35 #ifndef ACADO_TOOLKIT_EXPORT_FOR_LOOP_HPP 36 #define ACADO_TOOLKIT_EXPORT_FOR_LOOP_HPP 76 bool _doLoopUnrolling =
false 115 bool _doLoopUnrolling
130 const std::string& _realString =
"real_t",
131 const std::string& _intString =
"int",
146 const std::string& _realString =
"real_t",
147 const std::string& _intString =
"int",
200 #endif // ACADO_TOOLKIT_EXPORT_FOR_LOOP_HPP
ExportForLoop & allocate(MemoryAllocatorPtr allocator)
Allows to pass back messages to the calling function.
virtual returnValue exportDataDeclaration(std::ostream &stream, const std::string &_realString="real_t", const std::string &_intString="int", int _precision=16) const
virtual ExportStatement * clone() const
Allows to export code of a for-loop.
#define CLOSE_NAMESPACE_ACADO
Defines a scalar-valued index variable to be used for exporting code.
const ExportIndex emptyConstExportIndex(int(0))
virtual returnValue exportCode(std::ostream &stream, const std::string &_realString="real_t", const std::string &_intString="int", int _precision=16) const
returnValue sanityCheck(void) const
ExportForLoop(const ExportIndex &_loopVariable=emptyConstExportIndex, const ExportIndex &_startValue=emptyConstExportIndex, const ExportIndex &_finalValue=emptyConstExportIndex, const ExportIndex &_increment=constExportIndexValueOne, bool _doLoopUnrolling=false)
ExportForLoop & unrollLoop()
Base class for all kind of statements to be exported by the code generation tool. ...
ExportForLoop & operator=(const ExportForLoop &arg)
const ExportIndex constExportIndexValueOne(int(1))
#define BEGIN_NAMESPACE_ACADO
returnValue init(const ExportIndex &_loopVariable, const ExportIndex &_startValue, const ExportIndex &_finalValue, const ExportIndex &_increment, bool _doLoopUnrolling)
ExportForLoop & keepLoop()
std::shared_ptr< MemoryAllocator > MemoryAllocatorPtr
Allows to export code for a block of statements.