Public Member Functions | Protected Attributes

Allows to export code containing variable declarations. More...

#include <export_data_declaration.hpp>

Inheritance diagram for ExportDataDeclaration:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual ExportStatementclone () const
virtual returnValue exportCode (std::ostream &stream, const std::string &_realString="real_t", const std::string &_intString="int", int _precision=16) const
 ExportDataDeclaration ()
 ExportDataDeclaration (const ExportVariable &_data)
 ExportDataDeclaration (const ExportIndex &_data)
 ExportDataDeclaration (const ExportDataDeclaration &arg)
ExportDataDeclarationoperator= (const ExportDataDeclaration &arg)
virtual ~ExportDataDeclaration ()

Protected Attributes

ExportData data

Detailed Description

Allows to export code containing variable declarations.

The class ExportDataDeclaration allows to export code containing variable declarations of different data types.

Author:
Hans Joachim Ferreau, Boris Houska

Definition at line 60 of file export_data_declaration.hpp.


Constructor & Destructor Documentation

Default constructor.

Definition at line 44 of file export_data_declaration.cpp.

Constructor taking the variable to be declared.

Parameters:
[in]_dataVariable to be declared.

Definition at line 48 of file export_data_declaration.cpp.

Constructor taking the index variable to be declared.

Parameters:
[in]_dataIndex Variable to be declared.

Definition at line 55 of file export_data_declaration.cpp.

Copy constructor (deep copy).

Parameters:
[in]argRight-hand side object.

Definition at line 62 of file export_data_declaration.cpp.

Destructor.

Definition at line 69 of file export_data_declaration.cpp.


Member Function Documentation

Clone constructor (deep copy).

Returns:
Pointer to cloned object.

Implements ExportStatement.

Definition at line 86 of file export_data_declaration.cpp.

returnValue ExportDataDeclaration::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 statement into given file. Its appearance can can be adjusted by various options.

Parameters:
[in]fileName of file to be used to export statement.
[in]_realStringstd::string to be used to declare real variables.
[in]_intStringstd::string to be used to declare integer variables.
[in]_precisionNumber of digits to be used for exporting real values.
Returns:
SUCCESSFUL_RETURN

Implements ExportStatement.

Definition at line 94 of file export_data_declaration.cpp.

ExportDataDeclaration & ExportDataDeclaration::operator= ( const ExportDataDeclaration arg)

Assignment operator (deep copy).

Parameters:
[in]argRight-hand side object.

Definition at line 73 of file export_data_declaration.cpp.


Member Data Documentation

Variable to be declared.

Definition at line 136 of file export_data_declaration.hpp.


The documentation for this class was generated from the following files:


acado
Author(s): Milan Vukov, Rien Quirynen
autogenerated on Sat Jun 8 2019 19:40:24