74 const std::string
r = std::string());
97 TypedValue(
const bool& b,
bool isConst =
false);
100 TypedValue(
const std::string&
s,
bool isConst =
false);
110 bool Const(
void)
const;
114 const std::string&
GetString(
void)
const;
117 void SetConst(
bool isConst =
true,
bool bForce =
false);
162 virtual bool IsVar(
void)
const;
164 const char *
GetName(
void)
const;
170 virtual bool Const(
void)
const = 0;
181 Var(
const char*
const s,
const bool& b);
182 Var(
const char*
const s,
const Int& v);
183 Var(
const char*
const s,
const Real& v);
184 Var(
const char*
const s,
const std::string& v);
187 bool IsVar(
void)
const;
190 bool Const(
void)
const;
194 void SetVal(
const bool& b);
197 void SetVal(
const std::string& v);
TypedValue::Type GetType(void) const
TypedValue operator+(const TypedValue &v) const
TypedValue operator+(const TypedValue &v)
std::ostream & operator<<(std::ostream &out, const TypedValue &v)
const TypedValue & operator-=(const TypedValue &v)
TypedValue::Type GetType(void) const
virtual TypedValue::Type GetType(void) const =0
#define MBDYN_EXCEPT_ARGS_PASSTHRU
const TypedValue & Set(const bool &b)
virtual TypedValue GetVal(void) const =0
TypedValue & operator=(const TypedValue &var)
bool operator>(const TypedValue &v) const
#define MBDYN_EXCEPT_ARGS_DECL
bool operator!(const TypedValue &v)
TypedValue & Cast(const TypedValue &var, bool bErr=false)
const TypedValue & operator*=(const TypedValue &v)
bool operator<(const TypedValue &v) const
const char *const GetTypeName(void) const
TypedValue operator/(const TypedValue &v) const
void Cast(const TypedValue &v, bool bErr=false)
void AllocName(const char *const s)
TypedValue GetVal(void) const
ErrWrongType(const char *file, int line, const char *func, const std::string r=std::string())
ErrConstraintViolation(const char *file, int line, const char *func, const std::string r=std::string())
bool operator<=(const TypedValue &v) const
virtual ~NamedValue(void)
ErrUnknownValue(const char *file, int line, const char *func, const std::string r=std::string())
virtual bool MayChange(void) const =0
NamedValue(const char *const s)
Var(const char *const s, const TypedValue &v)
const std::string & GetString(void) const
ErrUnknownType(const char *file, int line, const char *func, const std::string r=std::string())
TypedValue operator%(const TypedValue &v) const
const TypedValue & operator+=(const TypedValue &v)
bool operator>=(const TypedValue &v) const
bool operator||(const TypedValue &v) const
bool operator!=(const TypedValue &v) const
TypedValue operator*(const TypedValue &v) const
virtual bool Const(void) const =0
bool operator&&(const TypedValue &v) const
TypedValue operator-(const TypedValue &v) const
virtual const char *const GetTypeName(void) const
void SetConst(bool isConst=true, bool bForce=false)
bool operator==(const TypedValue &v) const
#define MBDYN_EXCEPT_ARGS_DECL_NOOPT
const char * GetName(void) const
void SetVal(const bool &b)
const TypedValue & operator%=(const TypedValue &v)
virtual bool IsVar(void) const
TypedValue operator-(const TypedValue &v)
bool MayChange(void) const
void SetType(TypedValue::Type t, bool isConst=false)
const TypedValue & operator/=(const TypedValue &v)