52 loopVariable( _loopVariable ),
53 startValue( _startValue ),
54 finalValue( _finalValue ),
55 increment( _increment ),
56 doLoopUnrolling( _doLoopUnrolling )
100 bool _doLoopUnrolling
118 const std::string& _realString,
119 const std::string& _intString,
128 const std::string& _realString,
129 const std::string& _intString,
172 stream <<
")" << endl <<
"{" << endl;
203 StatementPtrArray::const_iterator it =
statements.begin();
205 (*it)->allocate( allocator );
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
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.
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)
StatementPtrArray statements
const std::string get() const
int getGivenValue() const
#define BEGIN_NAMESPACE_ACADO
returnValue init(const ExportIndex &_loopVariable, const ExportIndex &_startValue, const ExportIndex &_finalValue, const ExportIndex &_increment, bool _doLoopUnrolling)
ExportForLoop & keepLoop()
ExportStatementBlock & operator=(const ExportStatementBlock &rhs)
std::shared_ptr< MemoryAllocator > MemoryAllocatorPtr
Allows to export code for a block of statements.
#define ACADOERRORTEXT(retval, text)