Public Member Functions | Protected Member Functions | Protected Attributes
ExportDataInternal Class Reference

#include <export_data_internal.hpp>

Inheritance diagram for ExportDataInternal:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual ExportDataInternalclone () const =0
 Make a deep copy of the instance.
virtual returnValue exportDataDeclaration (std::ostream &stream, const std::string &_realString="real_t", const std::string &_intString="int", int _precision=16) const =0
 ExportDataInternal (const std::string &_name=std::string(), ExportType _type=REAL, ExportStruct _dataStruct=ACADO_LOCAL, const std::string &_prefix=std::string())
ExportStruct getDataStruct () const
std::string getDataStructString () const
virtual std::string getDoc () const
std::string getFullName () const
std::string getName () const
std::string getPrefix () const
ExportType getType () const
std::string getTypeString (const std::string &_realString="real_t", const std::string &_intString="int") const
virtual bool isGiven () const =0
returnValue setDataStruct (ExportStruct _dataStruct)
virtual returnValue setDoc (const std::string &_doc)
returnValue setName (const std::string &_name)
returnValue setPrefix (const std::string &_prefix)
returnValue setType (ExportType _type)
virtual ~ExportDataInternal ()

Protected Member Functions

returnValue setFullName (void)

Protected Attributes

ExportStruct dataStruct
std::string description
std::string fullName
std::string name
std::string prefix
ExportType type

Detailed Description

Definition at line 33 of file export_data_internal.hpp.


Constructor & Destructor Documentation

ExportDataInternal::ExportDataInternal ( const std::string &  _name = std::string(),
ExportType  _type = REAL,
ExportStruct  _dataStruct = ACADO_LOCAL,
const std::string &  _prefix = std::string() 
) [explicit]

Default constructor which optionally takes name and type string of the data object.

Parameters:
[in]_nameName of the data object.
[in]_typeData type of the data object.
[in]_dataStructGlobal data struct to which the data object belongs to (if any).
[in]_prefixOptional prefix that will be put in front of the name.

Definition at line 36 of file export_data_internal.cpp.

Destructor.

Definition at line 47 of file export_data_internal.cpp.


Member Function Documentation

virtual ExportDataInternal* ExportDataInternal::clone ( ) const [pure virtual]

Make a deep copy of the instance.

Implements CasADi::SharedObjectNode.

Implemented in ExportVariableInternal, ExportArgumentInternal, and ExportIndexNode.

virtual returnValue ExportDataInternal::exportDataDeclaration ( std::ostream &  stream,
const std::string &  _realString = "real_t",
const std::string &  _intString = "int",
int  _precision = 16 
) const [pure virtual]

Exports declaration of the index variable. Its appearance can can be adjusted by various options.

Parameters:
[in]fileName of file to be used to export function.
[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

Implemented in ExportArgumentInternal, and ExportIndexNode.

Returns the global data struct to which the data object belongs to.

Returns:
Global data struct to which the data object belongs to

Definition at line 135 of file export_data_internal.cpp.

Returns a string containing the global data struct to which the data object belongs to.

Returns:
String containing the global data struct to which the data object belongs to.

Definition at line 141 of file export_data_internal.cpp.

std::string ExportDataInternal::getDoc ( ) const [virtual]

Definition at line 247 of file export_data_internal.cpp.

std::string ExportDataInternal::getFullName ( ) const

Returns the full name of the data object including the possible prefix of the global data struct.

Returns:
Full name of the data object

Definition at line 189 of file export_data_internal.cpp.

std::string ExportDataInternal::getName ( ) const

Returns the name of the data object.

Returns:
Name of the data object

Definition at line 97 of file export_data_internal.cpp.

std::string ExportDataInternal::getPrefix ( ) const

Returns a string which contains a prefix name.

Returns:
Prefix name

Definition at line 107 of file export_data_internal.cpp.

Returns the data type of the data object.

Returns:
Data type of the data object

Definition at line 102 of file export_data_internal.cpp.

std::string ExportDataInternal::getTypeString ( const std::string &  _realString = "real_t",
const std::string &  _intString = "int" 
) const

Returns a string containing the data type of the data object.

Parameters:
[in]_realStringstd::string to be used to declare real variables.
[in]_intStringstd::string to be used to declare integer variables.
Returns:
std::string containing the data type of the data object.

Definition at line 112 of file export_data_internal.cpp.

virtual bool ExportDataInternal::isGiven ( ) const [pure virtual]

Returns whether the index is set to a given value.

Returns:
true iff index is set to a given value,
false otherwise

Implemented in ExportArgumentInternal, ExportVariableInternal, and ExportIndexNode.

Sets the global data struct to which the data object belongs to.

Parameters:
[in]_dataStructNew global data struct to which the data object belongs to.
Returns:
SUCCESSFUL_RETURN

Definition at line 85 of file export_data_internal.cpp.

returnValue ExportDataInternal::setDoc ( const std::string &  _doc) [virtual]

Definition at line 240 of file export_data_internal.cpp.

Definition at line 208 of file export_data_internal.cpp.

returnValue ExportDataInternal::setName ( const std::string &  _name)

Sets the name of the data object.

Parameters:
[in]_nameNew name of the data object.
Returns:
SUCCESSFUL_RETURN

Definition at line 51 of file export_data_internal.cpp.

returnValue ExportDataInternal::setPrefix ( const std::string &  _prefix)

Sets the prefix which is placed before the structure name.

Parameters:
[in]_prefixPrefix name.
Returns:
SUCCESSFUL_RETURN

Definition at line 75 of file export_data_internal.cpp.

Sets the data type of the data object.

Parameters:
[in]_typeNew data type of the data object.
Returns:
SUCCESSFUL_RETURN

Definition at line 65 of file export_data_internal.cpp.


Member Data Documentation

Global data struct to which the data object belongs to (if any).

Definition at line 186 of file export_data_internal.hpp.

std::string ExportDataInternal::description [protected]

Description of the variable

Definition at line 192 of file export_data_internal.hpp.

std::string ExportDataInternal::fullName [protected]

Full name of the data object including the possible prefix of the global data struct.

Definition at line 189 of file export_data_internal.hpp.

std::string ExportDataInternal::name [protected]

Name of the data object.

Definition at line 177 of file export_data_internal.hpp.

std::string ExportDataInternal::prefix [protected]

Prefix, which is added before the structure name

Definition at line 183 of file export_data_internal.hpp.

Data type of the data object.

Definition at line 180 of file export_data_internal.hpp.


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


acado
Author(s): Milan Vukov, Rien Quirynen
autogenerated on Thu Aug 27 2015 12:01:38