54 const std::string& _prefix )
73 const std::string& _realString ,
74 const std::string& _intString,
78 return (*this)->exportDataDeclaration(stream, _realString, _intString, _precision);
239 std::stringstream ret;
240 ret << _arg1.
get() <<
" = " << _arg2.
get() <<
";\n";
248 return (*this)->get();
254 return (*this)->getGivenValue();
260 return (*this)->isGiven();
265 return (*this)->isBinary();
270 return (*this)->isVariable();
286 tmpName = (*this)->getName();
void assignNode(SharedObjectNode *node)
Assign the node to a node class pointer (or null)
Allows to pass back messages to the calling function.
friend ExportIndex operator*(const ExportIndex &_arg1, const ExportIndex &_arg2)
string toString(T const &value)
#define CLOSE_NAMESPACE_ACADO
friend ExportIndex operator+(const ExportIndex &_arg1, const ExportIndex &_arg2)
Defines a scalar-valued index variable to be used for exporting code.
std::string getPrefix() const
const ExportIndex emptyConstExportIndex(int(0))
Defines a matrix-valued variable that can be passed as argument to exported functions.
virtual returnValue setDoc(const std::string &_doc)
virtual std::string getDoc() const
ExportIndexNode * operator->()
virtual returnValue exportDataDeclaration(std::ostream &stream, const std::string &_realString="real_t", const std::string &_intString="int", int _precision=16) const
friend ExportIndex operator-(const ExportIndex &_arg1, const ExportIndex &_arg2)
friend std::string operator==(const ExportIndex &_arg1, const ExportIndex &_arg2)
const int getOffset() const
std::string getFullName() const
const int getFactor() const
friend ExportIndex operator%(const ExportIndex &_arg1, const ExportIndex &_arg2)
const std::string get() const
int getGivenValue() const
ExportDataInternal * operator->()
#define BEGIN_NAMESPACE_ACADO
friend ExportIndex operator/(const ExportIndex &_arg1, const ExportIndex &_arg2)
const int getGivenValue() const
std::string getName() const