1 #ifndef __DIADES__SDMDL__VALUE__HH 2 #define __DIADES__SDMDL__VALUE__HH 6 #include<unordered_map> 28 static std::string
typeName() {
return "Diades::Sdmdl::Value"; }
128 {
return this == &val; }
151 require(Exception,&_owner == &val.
_owner,
"operator<: not the same owner");
201 static std::string
typeName() {
return "Diades::Sdmdl::ValueFactory"; }
266 return this == &factory;
277 const Value & newValue(
const std::string &
label);
286 const Value & getValue(
const std::string & label)
const;
296 return _nullValue[0];
static std::string typeName()
std::vector< ConstReference > ValueVector
bool operator==(const ValueFactory &factory) const
friend ostream & operator<<(ostream &os, const Value &val)
bool operator<(const Value &val) const
std::unordered_map< std::string, Value::Pointer > _dictionary
Diades::Utils::Exception< ValueFactory > Exception
Value(const std::string &label, unsigned id, ValueFactory &owner)
std::reference_wrapper< Value const > ConstReference
#define require(Exception, expr, message)
Namespace of the Diades project.
bool operator!=(const Value &val) const
const std::string & label() const
bool operator==(const Value &val) const
const ValueFactory & owner() const
Diades::Utils::Exception< Value > Exception
static std::string typeName()
Value(ValueFactory &owner)
const Value & nullValue() const
std::reference_wrapper< Value > Reference