34 const std::string& _realString,
35 const std::string& _intString,
39 if (isGiven() ==
true)
41 else if (isBinary() ==
true)
44 stream << _intString <<
" " << getFullName() <<
";" << endl;
64 s << getFullName() <<
" * " << factor;
75 s <<
"(" << left.get() <<
")";
97 s <<
"(" << right.get() <<
")";
116 return left.getGivenValue() + right.getGivenValue();
119 return left.getGivenValue() - right.getGivenValue();
122 return left.getGivenValue() * right.getGivenValue();
125 return left.getGivenValue() / right.getGivenValue();
128 return left.getGivenValue() % right.getGivenValue();
const std::string get() const
Returns a string containing the value of the index.
virtual bool isGiven() const
Allows to pass back messages to the calling function.
#define CLOSE_NAMESPACE_ACADO
#define BEGIN_NAMESPACE_ACADO
const int getGivenValue() const
virtual returnValue exportDataDeclaration(std::ostream &stream, const std::string &_realString="real_t", const std::string &_intString="int", int _precision=16) const
#define ACADOERRORTEXT(retval, text)