ACADO Toolkit
1.2.0beta
Toolkit for Automatic Control and Dynamic Optimization
|
Interface generator for the qpDUNES QP solver. More...
#include <export_qpdunes_interface.hpp>
Public Types | |
typedef std::tr1::shared_ptr < ExportStatement > | StatementPtr |
Shared pointer to a statement. | |
typedef std::vector< StatementPtr > | StatementPtrArray |
A vector of shared pointer statements. | |
typedef std::tr1::shared_ptr < MemoryAllocator > | MemoryAllocatorPtr |
Shared pointer to a memory allocator. | |
Public Member Functions | |
ExportQpDunesInterface (const String &_fileName, const String &_commonHeaderName="", const String &_realString="real_t", const String &_intString="int", int _precision=16, const String &_commentString=emptyConstString) | |
Default constructor. | |
virtual | ~ExportQpDunesInterface () |
Destructor. | |
returnValue | configure (const unsigned _maxIter, const unsigned _printLevel, const std::string &_HH, const std::string &_g, const std::string &_CC, const std::string &_c, const std::string &_DD, const std::string &_lb0, const std::string &_ub0, const std::string &_lb, const std::string &_ub, const std::string &_lbA, const std::string &_ubA, const std::string &_primal, const std::string &_lambda, const std::string &_mu, const std::vector< unsigned > &conDim) |
Configure the template. | |
virtual returnValue | configure () |
Configure the template. | |
virtual returnValue | exportCode () const |
Exports the file containing the auto-generated code. | |
virtual returnValue | exportCode (FILE *file, const String &_realString="real_t", const String &_intString="int", int _precision=16) const |
Exports source code of the statement block into given file. | |
virtual ExportStatement * | clone () const |
Clone constructor (deep copy). | |
returnValue | addStatement (const ExportStatement &_statement) |
Adds a statement to the statement block. | |
returnValue | addStatement (const String &_statementString) |
Adds a string statement to the statement block. | |
returnValue | addFunction (const ExportFunction &_function) |
Adds a function to the statement block. | |
returnValue | addFunctionCall (const 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) |
Adds a function call to the statement block. | |
returnValue | addFunctionCall (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) |
Adds a function call to the statement block. | |
returnValue | addDeclaration (const ExportVariable &_data, ExportStruct _dataStruct=ACADO_ANY) |
Adds a variable declaration to the statement block. | |
returnValue | addDeclaration (const ExportIndex &_data, ExportStruct _dataStruct=ACADO_ANY) |
Adds an index declaration to the statement block. | |
returnValue | addDeclaration (const ExportFunction &_f) |
Adds a function forward declaration to the statement block. | |
returnValue | addDeclaration (const ExportAcadoFunction &_f) |
Adds a forward declaration of an ODE function to the statement block. | |
returnValue | addLinebreak (uint num=1) |
Adds a line break to the statement block. | |
returnValue | addComment (const String &_comment) |
Adds a comment to the statement block. | |
returnValue | addComment (uint _nBlanks, const String &_comment) |
Adds a comment preceded by a given number of blanks to the statement block. | |
uint | getNumStatements () const |
Returns number of statement within statement block. | |
virtual returnValue | exportDataDeclaration (FILE *file, const String &_realString="real_t", const String &_intString="int", int _precision=16) const |
Exports data declaration of the statement block into given file. | |
returnValue | clear () |
Removes all statements to yield an empty statement block. | |
virtual ExportStatement & | acquire (ExportIndex &) |
Acquire an index. | |
virtual ExportStatement & | release (const ExportIndex &) |
Release an index. | |
virtual ExportStatement & | allocate (MemoryAllocatorPtr) |
Set a memory allocator. | |
Protected Member Functions | |
returnValue | fillTemplate () |
Fill in the template. | |
returnValue | copy (const ExportFile &arg) |
Copies all class members from given object. | |
FILE * | openFile () const |
Opens given file and prepares it for exporting code. | |
Protected Attributes | |
String | templateName |
Name of the template file. | |
std::map< std::string, std::string > | dictionary |
Dictionary used to fill in the template file. | |
std::string | folders |
List of folders where templates are stored. | |
String | fileName |
Name of exported file. | |
String | commonHeaderName |
Name of common header file. | |
String | realString |
String to be used to declare real variables. | |
String | intString |
String to be used to declare integer variables. | |
int | precision |
Number of digits to be used for exporting real values. | |
String | commentString |
String to be used for exporting comments. | |
StatementPtrArray | statements |
Array containing all statements of the statement block. | |
Friends | |
class | ExportQpOasesInterface |
class | ExportSimulinkInterface |
class | ExportAuxiliaryFunctions |
ExportStatementBlock & | operator<< (ExportStatementBlock &_block, const ExportStatement &_statement) |
Add a statement. | |
ExportStatementBlock & | operator<< (ExportStatementBlock &_block, const String &_statement) |
Add a string. | |
ExportStatementBlock & | operator<< (ExportStatementBlock &_block, const std::string &_statement) |
Add an STL string. |
typedef std::tr1::shared_ptr< MemoryAllocator > ExportStatement::MemoryAllocatorPtr [inherited] |
typedef std::tr1::shared_ptr< ExportStatement > ExportStatement::StatementPtr [inherited] |
typedef std::vector< StatementPtr > ExportStatement::StatementPtrArray [inherited] |
BEGIN_NAMESPACE_ACADO ExportQpDunesInterface::ExportQpDunesInterface | ( | const String & | _fileName, |
const String & | _commonHeaderName = "" , |
||
const String & | _realString = "real_t" , |
||
const String & | _intString = "int" , |
||
int | _precision = 16 , |
||
const String & | _commentString = emptyConstString |
||
) |
[in] | _fileName | Name of exported file. |
[in] | _commonHeaderName | Name of common header file to be included. |
[in] | _realString | String to be used to declare real variables. |
[in] | _intString | String to be used to declare integer variables. |
[in] | _precision | Number of digits to be used for exporting real values. |
[in] | _commentString | String to be used for exporting comments. |
virtual ExportQpDunesInterface::~ExportQpDunesInterface | ( | ) | [inline, virtual] |
virtual ExportStatement& ExportStatement::acquire | ( | ExportIndex & | ) | [inline, virtual, inherited] |
Reimplemented in ExportFunction.
returnValue ExportStatementBlock::addComment | ( | const String & | _comment | ) | [inherited] |
[in] | _comment | Comment to be added. |
References ExportStatementBlock::addStatement().
Referenced by SIMexport::exportAcadoHeader(), SIMexport::exportEvaluation(), SIMexport::exportTest(), ForwardIRKExport::getCode(), AdjointIRKExport::getCode(), ExplicitRungeKuttaExport::getCode(), DiscreteTimeExport::getCode(), ImplicitRungeKuttaExport::getCode(), ExportGaussNewtonCN2::setupCondensing(), ExportGaussNewtonQpDunes::setupConstraintsEvaluation(), ExportGaussNewtonCondensed::setupConstraintsEvaluation(), and ExportNLPSolver::setupSimulation().
returnValue ExportStatementBlock::addComment | ( | uint | _nBlanks, |
const String & | _comment | ||
) | [inherited] |
[in] | _nBlanks | Number of blanks. |
[in] | _comment | Comment to be added. |
References ExportStatementBlock::addStatement(), and uint.
returnValue ExportStatementBlock::addDeclaration | ( | const ExportVariable & | _data, |
ExportStruct | _dataStruct = ACADO_ANY |
||
) | [inherited] |
[in] | _data | Variable declaration to be added. |
References ACADO_ANY, ExportStatementBlock::addStatement(), ExportData::getDataStruct(), ExportVariable::getDim(), and SUCCESSFUL_RETURN.
Referenced by SIMexport::exportAcadoHeader(), ExportGaussNewtonCN2::getCode(), ExportGaussNewtonCondensed::getCode(), ExportGaussNewtonQpDunes::getCode(), ExportGaussNewtonForces::getCode(), ExportGaussElim::getCode(), ForwardIRKExport::getCode(), AdjointIRKExport::getCode(), DiscreteTimeExport::getCode(), ImplicitRungeKuttaExport::getCode(), ExportGaussNewtonCN2::getDataDeclarations(), ExportGaussNewtonCondensed::getDataDeclarations(), ExportGaussNewtonQpDunes::getDataDeclarations(), ExportGaussNewtonForces::getDataDeclarations(), ExportGaussElim::getDataDeclarations(), ForwardIRKExport::getDataDeclarations(), AdjointIRKExport::getDataDeclarations(), ExportNLPSolver::getDataDeclarations(), ExplicitRungeKuttaExport::getDataDeclarations(), DiscreteTimeExport::getDataDeclarations(), ImplicitRungeKuttaExport::getDataDeclarations(), ExportGaussNewtonCN2::getFunctionDeclarations(), ExportGaussNewtonCondensed::getFunctionDeclarations(), ExportGaussNewtonQpDunes::getFunctionDeclarations(), ExportGaussNewtonForces::getFunctionDeclarations(), ExportGaussElim::getFunctionDeclarations(), ExportHouseholderQR::getFunctionDeclarations(), ForwardIRKExport::getFunctionDeclarations(), AdjointIRKExport::getFunctionDeclarations(), ExplicitRungeKuttaExport::getFunctionDeclarations(), DiscreteTimeExport::getFunctionDeclarations(), ImplicitRungeKuttaExport::getFunctionDeclarations(), DiagonallyImplicitRKExport::prepareInputSystem(), AdjointIRKExport::prepareInputSystem(), ForwardIRKExport::prepareInputSystem(), ImplicitRungeKuttaExport::prepareInputSystem(), ImplicitRungeKuttaExport::prepareOutputEvaluation(), ForwardIRKExport::prepareOutputSystem(), AdjointIRKExport::prepareOutputSystem(), DiagonallyImplicitRKExport::prepareOutputSystem(), and ImplicitRungeKuttaExport::prepareOutputSystem().
returnValue ExportStatementBlock::addDeclaration | ( | const ExportIndex & | _data, |
ExportStruct | _dataStruct = ACADO_ANY |
||
) | [inherited] |
[in] | _data | Index declaration to be added. |
References ACADO_ANY, ExportStatementBlock::addStatement(), ExportData::getDataStruct(), and SUCCESSFUL_RETURN.
returnValue ExportStatementBlock::addDeclaration | ( | const ExportFunction & | _f | ) | [inherited] |
[in] | _f | function forward declaration to be added. |
References ExportStatementBlock::addStatement().
returnValue ExportStatementBlock::addDeclaration | ( | const ExportAcadoFunction & | _f | ) | [inherited] |
[in] | _f | ODE function whose forward declaration is to be added. |
References ExportStatementBlock::addStatement().
returnValue ExportStatementBlock::addFunction | ( | const ExportFunction & | _function | ) | [inherited] |
[in] | _function | Function to be added. |
References ExportStatementBlock::addStatement().
Referenced by ExportGaussNewtonCN2::getCode(), ExportGaussNewtonCondensed::getCode(), ExportGaussNewtonQpDunes::getCode(), ExportGaussNewtonForces::getCode(), ExportCholeskyDecomposition::getCode(), ExportGaussElim::getCode(), ExportHouseholderQR::getCode(), AdjointIRKExport::getCode(), ForwardIRKExport::getCode(), ExplicitRungeKuttaExport::getCode(), DiscreteTimeExport::getCode(), ImplicitRungeKuttaExport::getCode(), and ExportCholeskyDecomposition::getFunctionDeclarations().
returnValue ExportStatementBlock::addFunctionCall | ( | const 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 |
||
) | [inherited] |
[in] | _fName | Name of function to be called. |
References ExportStatementBlock::addStatement().
Referenced by DiagonallyImplicitRKExport::evaluateMatrix(), ImplicitRungeKuttaExport::evaluateMatrix(), DiagonallyImplicitRKExport::evaluateRhsImplicitSystem(), ImplicitRungeKuttaExport::evaluateRhsImplicitSystem(), ImplicitRungeKuttaExport::generateOutput(), ExportGaussElim::getCode(), ExportHouseholderQR::getCode(), NARXExport::prepareFullRhs(), IntegratorExport::prepareFullRhs(), ImplicitRungeKuttaExport::prepareFullRhs(), ForwardIRKExport::sensitivitiesImplicitSystem(), AdjointIRKExport::sensitivitiesImplicitSystem(), DiagonallyImplicitRKExport::sensitivitiesImplicitSystem(), ForwardIRKExport::sensitivitiesOutputs(), AdjointIRKExport::sensitivitiesOutputs(), ExportGaussNewtonQpDunes::setup(), ExportGaussNewtonForces::setup(), ExplicitRungeKuttaExport::setup(), ExportNLPSolver::setupArrivalCostCalculation(), ExportNLPSolver::setupAuxiliaryFunctions(), ExportGaussNewtonCN2::setupCondensing(), ExportGaussNewtonCondensed::setupCondensing(), ExportGaussNewtonQpDunes::setupConstraintsEvaluation(), ExportGaussNewtonCondensed::setupConstraintsEvaluation(), ExportGaussNewtonQpDunes::setupEvaluation(), ExportGaussNewtonCN2::setupEvaluation(), ExportGaussNewtonForces::setupEvaluation(), ExportGaussNewtonCondensed::setupEvaluation(), ExportGaussNewtonQpDunes::setupObjectiveEvaluation(), ExportGaussNewtonCN2::setupObjectiveEvaluation(), ExportGaussNewtonForces::setupObjectiveEvaluation(), ExportGaussNewtonCondensed::setupObjectiveEvaluation(), DiagonallyImplicitRKExport::solveImplicitSystem(), ImplicitRungeKuttaExport::solveImplicitSystem(), DiagonallyImplicitRKExport::solveInputSystem(), ImplicitRungeKuttaExport::solveInputSystem(), DiagonallyImplicitRKExport::solveOutputSystem(), and ImplicitRungeKuttaExport::solveOutputSystem().
returnValue ExportStatementBlock::addFunctionCall | ( | 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 |
||
) | [inherited] |
[in] | _f | Function to be called. |
References ExportStatementBlock::addStatement().
returnValue ExportStatementBlock::addLinebreak | ( | uint | num = 1 | ) | [inherited] |
[in] | num | Number of line breaks to be added. |
References ExportStatementBlock::addStatement(), and uint.
Referenced by SIMexport::exportAcadoHeader(), OCPexport::exportAcadoHeader(), SIMexport::exportEvaluation(), SIMexport::exportMakefile(), SIMexport::exportTest(), ExportGaussNewtonCN2::getCode(), ExportGaussNewtonCondensed::getCode(), ExportGaussNewtonQpDunes::getCode(), ExportGaussNewtonForces::getCode(), ExportGaussElim::getCode(), ExportHouseholderQR::getCode(), ForwardIRKExport::getCode(), AdjointIRKExport::getCode(), DiscreteTimeExport::getCode(), ImplicitRungeKuttaExport::getCode(), NARXExport::setup(), ExplicitRungeKuttaExport::setup(), ExportGaussElim::setup(), ExportHouseholderQR::setup(), DiscreteTimeExport::setup(), ImplicitRungeKuttaExport::setup(), ExportNLPSolver::setupArrivalCostCalculation(), ExportNLPSolver::setupAuxiliaryFunctions(), ExportGaussNewtonCN2::setupCondensing(), ExportGaussNewtonCondensed::setupCondensing(), ExportGaussNewtonQpDunes::setupConstraintsEvaluation(), ExportGaussNewtonCN2::setupConstraintsEvaluation(), ExportGaussNewtonForces::setupConstraintsEvaluation(), ExportGaussNewtonCondensed::setupConstraintsEvaluation(), ExportGaussNewtonQpDunes::setupEvaluation(), ExportGaussNewtonCN2::setupEvaluation(), ExportGaussNewtonForces::setupEvaluation(), ExportGaussNewtonCondensed::setupEvaluation(), ExportGaussNewtonQpDunes::setupObjectiveEvaluation(), ExportGaussNewtonCN2::setupObjectiveEvaluation(), ExportGaussNewtonForces::setupObjectiveEvaluation(), ExportGaussNewtonCondensed::setupObjectiveEvaluation(), and ExportNLPSolver::setupSimulation().
returnValue ExportStatementBlock::addStatement | ( | const ExportStatement & | _statement | ) | [inherited] |
[in] | _statement | Statement to be added. |
References ExportStatement::clone(), ExportStatementBlock::statements, and SUCCESSFUL_RETURN.
Referenced by ExportStatementBlock::addComment(), ExportStatementBlock::addDeclaration(), ExportStatementBlock::addFunction(), ExportStatementBlock::addFunctionCall(), ExportStatementBlock::addLinebreak(), ExportStatementBlock::addStatement(), ImplicitRungeKuttaExport::evaluateDerivedPolynomial(), DiagonallyImplicitRKExport::evaluateMatrix(), ImplicitRungeKuttaExport::evaluateMatrix(), ImplicitRungeKuttaExport::evaluatePolynomial(), DiagonallyImplicitRKExport::evaluateRhsImplicitSystem(), ImplicitRungeKuttaExport::evaluateRhsImplicitSystem(), DiagonallyImplicitRKExport::evaluateStatesImplicitSystem(), ImplicitRungeKuttaExport::evaluateStatesImplicitSystem(), ImplicitRungeKuttaExport::evaluateStatesOutputSystem(), SIMexport::exportAcadoHeader(), OCPexport::exportAcadoHeader(), SIMexport::exportEvaluation(), SIMexport::exportMakefile(), SIMexport::exportTest(), ExportTemplatedFile::fillTemplate(), ImplicitRungeKuttaExport::generateOutput(), ExportGaussNewtonCN2::getCode(), ExportGaussNewtonCondensed::getCode(), ExportGaussNewtonQpDunes::getCode(), ExportGaussNewtonForces::getCode(), ExportGaussElim::getCode(), ExportHouseholderQR::getCode(), ForwardIRKExport::getCode(), AdjointIRKExport::getCode(), ExplicitRungeKuttaExport::getCode(), DiscreteTimeExport::getCode(), ImplicitRungeKuttaExport::getCode(), operator<<(), NARXExport::prepareFullRhs(), IntegratorExport::prepareFullRhs(), ImplicitRungeKuttaExport::prepareFullRhs(), NARXExport::propagateImplicitSystem(), IntegratorExport::propagateImplicitSystem(), NARXExport::propagateInputSystem(), IntegratorExport::propagateInputSystem(), ForwardIRKExport::propagateOutputs(), AdjointIRKExport::propagateOutputs(), NARXExport::propagateOutputSystem(), IntegratorExport::propagateOutputSystem(), ForwardIRKExport::sensitivitiesImplicitSystem(), AdjointIRKExport::sensitivitiesImplicitSystem(), DiagonallyImplicitRKExport::sensitivitiesImplicitSystem(), ForwardIRKExport::sensitivitiesInputSystem(), AdjointIRKExport::sensitivitiesInputSystem(), ForwardIRKExport::sensitivitiesOutputs(), AdjointIRKExport::sensitivitiesOutputs(), DiagonallyImplicitRKExport::sensitivitiesOutputSystem(), ForwardIRKExport::sensitivitiesOutputSystem(), AdjointIRKExport::sensitivitiesOutputSystem(), ExportCholeskyDecomposition::setup(), NARXExport::setup(), ExplicitRungeKuttaExport::setup(), DiscreteTimeExport::setup(), ExportNLPSolver::setupArrivalCostCalculation(), ExportNLPSolver::setupAuxiliaryFunctions(), ExportGaussNewtonCN2::setupCondensing(), ExportGaussNewtonCondensed::setupCondensing(), ExportGaussNewtonQpDunes::setupConstraintsEvaluation(), ExportGaussNewtonCN2::setupConstraintsEvaluation(), ExportGaussNewtonForces::setupConstraintsEvaluation(), ExportGaussNewtonCondensed::setupConstraintsEvaluation(), ExportGaussNewtonQpDunes::setupEvaluation(), ExportGaussNewtonForces::setupEvaluation(), ExportGaussNewtonCN2::setupEvaluation(), ExportGaussNewtonCondensed::setupEvaluation(), ExportGaussNewtonCN2::setupMultiplicationRoutines(), ExportGaussNewtonCondensed::setupMultiplicationRoutines(), ExportGaussNewtonQpDunes::setupObjectiveEvaluation(), ExportGaussNewtonForces::setupObjectiveEvaluation(), ExportGaussNewtonCN2::setupObjectiveEvaluation(), ExportGaussNewtonCondensed::setupObjectiveEvaluation(), ExportNLPSolver::setupSimulation(), DiagonallyImplicitRKExport::solveImplicitSystem(), ImplicitRungeKuttaExport::solveImplicitSystem(), DiagonallyImplicitRKExport::solveInputSystem(), ImplicitRungeKuttaExport::solveInputSystem(), DiagonallyImplicitRKExport::solveOutputSystem(), ImplicitRungeKuttaExport::solveOutputSystem(), NARXExport::updateImplicitSystem(), IntegratorExport::updateImplicitSystem(), NARXExport::updateInputSystem(), IntegratorExport::updateInputSystem(), NARXExport::updateOutputSystem(), and IntegratorExport::updateOutputSystem().
returnValue ExportStatementBlock::addStatement | ( | const String & | _statementString | ) | [inherited] |
[in] | _statementString | String statement to be added. |
References ExportStatementBlock::addStatement().
virtual ExportStatement& ExportStatement::allocate | ( | MemoryAllocatorPtr | ) | [inline, virtual, inherited] |
Reimplemented in ExportArithmeticStatement, and ExportForLoop.
returnValue ExportStatementBlock::clear | ( | ) | [inherited] |
Reimplemented in ExportFunction, and ExportForLoop.
References SUCCESSFUL_RETURN.
Referenced by ExportStatementBlock::operator=(), and ExportStatementBlock::~ExportStatementBlock().
ExportStatement * ExportStatementBlock::clone | ( | ) | const [virtual, inherited] |
Implements ExportStatement.
Reimplemented in ExportFunction, ExportForLoop, and ExportAcadoFunction.
References ExportStatementBlock::ExportStatementBlock().
virtual returnValue ExportTemplatedFile::configure | ( | ) | [inline, virtual, inherited] |
References ExportTemplatedFile::fillTemplate().
returnValue ExportQpDunesInterface::configure | ( | const unsigned | _maxIter, |
const unsigned | _printLevel, | ||
const std::string & | _HH, | ||
const std::string & | _g, | ||
const std::string & | _CC, | ||
const std::string & | _c, | ||
const std::string & | _DD, | ||
const std::string & | _lb0, | ||
const std::string & | _ub0, | ||
const std::string & | _lb, | ||
const std::string & | _ub, | ||
const std::string & | _lbA, | ||
const std::string & | _ubA, | ||
const std::string & | _primal, | ||
const std::string & | _lambda, | ||
const std::string & | _mu, | ||
const std::vector< unsigned > & | conDim | ||
) |
References ExportTemplatedFile::dictionary, ExportTemplatedFile::fillTemplate(), and SUCCESSFUL_RETURN.
returnValue ExportFile::copy | ( | const ExportFile & | arg | ) | [protected, inherited] |
[in] | arg | Right-hand side object. |
References ExportFile::commentString, ExportFile::commonHeaderName, ExportFile::fileName, ExportFile::intString, ExportFile::precision, ExportFile::realString, and SUCCESSFUL_RETURN.
Referenced by ExportFile::ExportFile(), and ExportFile::operator=().
returnValue ExportFile::exportCode | ( | ) | const [virtual, inherited] |
References ACADOERROR, ExportFile::intString, ExportFile::openFile(), ExportFile::precision, ExportFile::realString, and RET_DOES_DIRECTORY_EXISTS.
Referenced by SIMexport::exportAcadoHeader(), OCPexport::exportAcadoHeader(), ExportAuxiliaryFunctions::exportCode(), OCPexport::exportCode(), ExportSimulinkInterface::exportCode(), ExportQpOasesInterface::exportCode(), SIMexport::exportCode(), SIMexport::exportEvaluation(), SIMexport::exportMakefile(), and SIMexport::exportTest().
returnValue ExportStatementBlock::exportCode | ( | FILE * | file, |
const String & | _realString = "real_t" , |
||
const String & | _intString = "int" , |
||
int | _precision = 16 |
||
) | const [virtual, inherited] |
Its appearance can can be adjusted by various options.
[in] | file | Name of file to be used to export statement block. |
[in] | _realString | String to be used to declare real variables. |
[in] | _intString | String to be used to declare integer variables. |
[in] | _precision | Number of digits to be used for exporting real values. |
Implements ExportStatement.
Reimplemented in ExportFunction, ExportAcadoFunction, and ExportForLoop.
References ACADOERROR, RET_UNABLE_TO_EXPORT_STATEMENT, ExportStatementBlock::statements, and SUCCESSFUL_RETURN.
returnValue ExportStatementBlock::exportDataDeclaration | ( | FILE * | file, |
const String & | _realString = "real_t" , |
||
const String & | _intString = "int" , |
||
int | _precision = 16 |
||
) | const [virtual, inherited] |
Its appearance can can be adjusted by various options.
[in] | file | Name of file to be used to export statement block. |
[in] | _realString | String to be used to declare real variables. |
[in] | _intString | String to be used to declare integer variables. |
[in] | _precision | Number of digits to be used for exporting real values. |
Reimplemented from ExportStatement.
Reimplemented in ExportFunction, ExportForLoop, and ExportAcadoFunction.
References ACADOERROR, RET_UNABLE_TO_EXPORT_STATEMENT, ExportStatementBlock::statements, and SUCCESSFUL_RETURN.
returnValue ExportTemplatedFile::fillTemplate | ( | ) | [protected, inherited] |
References ACADOERROR, ExportStatementBlock::addStatement(), ExportTemplatedFile::dictionary, ExportTemplatedFile::folders, String::getName(), LOG, LVL_ERROR, pos(), RET_DOES_DIRECTORY_EXISTS, SUCCESSFUL_RETURN, and ExportTemplatedFile::templateName.
Referenced by ExportAuxiliaryFunctions::configure(), ExportForcesInterface::configure(), ExportTemplatedFile::configure(), ExportForcesGenerator::configure(), configure(), ExportSimulinkInterface::configure(), ExportQpOasesInterface::configure(), ExportMatlabRhs::configure(), and ExportMatlabIntegrator::configure().
uint ExportStatementBlock::getNumStatements | ( | ) | const [inherited] |
References ExportStatementBlock::statements.
Referenced by SIMexport::exportAcadoHeader(), and ExportFunction::isDefined().
FILE * ExportFile::openFile | ( | ) | const [protected, inherited] |
References acadoFOpen(), acadoFPrintf(), acadoPrintAutoGenerationNotice(), BT_FALSE, BT_TRUE, ExportFile::commentString, ExportFile::commonHeaderName, ExportFile::fileName, String::getName(), and String::isEmpty().
Referenced by ExportFile::exportCode().
virtual ExportStatement& ExportStatement::release | ( | const ExportIndex & | ) | [inline, virtual, inherited] |
Reimplemented in ExportFunction.
friend class ExportAuxiliaryFunctions [friend, inherited] |
friend class ExportQpOasesInterface [friend, inherited] |
friend class ExportSimulinkInterface [friend, inherited] |
ExportStatementBlock& operator<< | ( | ExportStatementBlock & | _block, |
const ExportStatement & | _statement | ||
) | [friend, inherited] |
ExportStatementBlock& operator<< | ( | ExportStatementBlock & | _block, |
const String & | _statement | ||
) | [friend, inherited] |
ExportStatementBlock& operator<< | ( | ExportStatementBlock & | _block, |
const std::string & | _statement | ||
) | [friend, inherited] |
String ExportFile::commentString [protected, inherited] |
Referenced by ExportFile::copy(), ExportFile::ExportFile(), and ExportFile::openFile().
String ExportFile::commonHeaderName [protected, inherited] |
Referenced by ExportFile::copy(), ExportFile::ExportFile(), and ExportFile::openFile().
std::map< std::string, std::string > ExportTemplatedFile::dictionary [protected, inherited] |
Referenced by ExportAuxiliaryFunctions::configure(), ExportForcesInterface::configure(), ExportForcesGenerator::configure(), ExportSimulinkInterface::configure(), configure(), ExportQpOasesInterface::configure(), ExportMatlabIntegrator::configure(), ExportMatlabRhs::configure(), and ExportTemplatedFile::fillTemplate().
String ExportFile::fileName [protected, inherited] |
Referenced by ExportFile::copy(), ExportFile::ExportFile(), and ExportFile::openFile().
std::string ExportTemplatedFile::folders [protected, inherited] |
Referenced by ExportTemplatedFile::ExportTemplatedFile(), and ExportTemplatedFile::fillTemplate().
String ExportFile::intString [protected, inherited] |
Referenced by ExportFile::copy(), ExportFile::exportCode(), and ExportFile::ExportFile().
int ExportFile::precision [protected, inherited] |
Referenced by ExportFile::copy(), ExportFile::exportCode(), and ExportFile::ExportFile().
String ExportFile::realString [protected, inherited] |
StatementPtrArray ExportStatementBlock::statements [protected, inherited] |
Referenced by ExportStatementBlock::addStatement(), ExportForLoop::allocate(), ExportFunction::exportCode(), ExportStatementBlock::exportCode(), ExportStatementBlock::exportDataDeclaration(), ExportStatementBlock::ExportStatementBlock(), ExportStatementBlock::getNumStatements(), and ExportStatementBlock::operator=().
String ExportTemplatedFile::templateName [protected, inherited] |
Referenced by ExportTemplatedFile::ExportTemplatedFile(), and ExportTemplatedFile::fillTemplate().