62 _argument4,_argument5,_argument6,
63 _argument7,_argument8,_argument9 );
130 const std::string& _realString,
131 const std::string& _intString,
135 bool started =
false;
136 for (
unsigned i = 0; i <
arguments.size(); ++i)
139 if (
arguments[ i ].isGiven( ) ==
true &&
146 if (i > 0 && started ==
true)
151 if (
arguments[ i ].isCalledByValue( ) == true )
152 stream <<
arguments[ i ].getTypeString(_realString, _intString) <<
" ";
154 stream <<
arguments[ i ].getTypeString(_realString, _intString) <<
"* const ";
158 stream <<
arguments[ i ].getAddressString( );
160 stream <<
arguments[ i ].getAddressString(
false );
203 if (_argument.
getDim() == 0)
returnValue doIncludeType()
returnValue doNotIncludeType()
virtual uint getDim() const
returnValue addSingleArgument(const ExportArgument &_argument)
ExportArgumentList & operator=(const ExportArgumentList &rhs)
Allows to pass back messages to the calling function.
BEGIN_NAMESPACE_ACADO typedef unsigned int uint
#define CLOSE_NAMESPACE_ACADO
Defines a matrix-valued variable that can be passed as argument to exported functions.
std::vector< ExportArgument > arguments
Allows to store a list of calling arguments of an ExportFunction.
const std::vector< ExportArgument > & get() const
virtual ~ExportArgumentList()
virtual returnValue exportCode(std::ostream &stream, const std::string &_realString="real_t", const std::string &_intString="int", int _precision=16) const
uint getNumArguments() const
bool isNull() const
Is a null pointer?
#define BEGIN_NAMESPACE_ACADO
returnValue addArgument(const ExportArgument &_argument1, 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)