41 std::string msg =
"The following property does not exists: ";
58 const std::string& byDefault)
const {
61 }
catch (
NotFound&) {
return byDefault; }
66 const std::string& value) {
77 for (
const auto node:
nodes()) {
78 dSize += std::log10(
variable(node).domainSize());
88 for (
const auto node:
nodes())
Copyright 2005-2020 Pierre-Henri WUILLEMIN () et Christophe GONZALES () info_at_agrum_dot_org.
Instantiation completeInstantiation() const
Get an instantiation over all the variables of the model.
HashTable< std::string, std::string > * __propertiesMap
The properties of this Directed Graphical Model. Initialized using a lazy instantiation.
const std::string & propertyWithDefault(const std::string &name, const std::string &byDefault) const
Return the value of the property name of this GraphicalModel.
virtual const NodeGraphPart & nodes() const =0
Returns a constant reference to the VariableNodeMap of this Graphical Model.
virtual Size size() const =0
Returns the number of variables in this Directed Graphical Model.
void setProperty(const std::string &name, const std::string &value)
Add or change a property of this GraphicalModel.
virtual bool empty() const
Retursn true if this Directed Graphical Model is empty.
Copyright 2005-2020 Pierre-Henri WUILLEMIN () et Christophe GONZALES () info_at_agrum_dot_org.
double log10DomainSize() const
Class for assigning/browsing values to tuples of discrete variables.
virtual const DiscreteVariable & variable(NodeId id) const =0
Returns a constant reference over a variable given it's node id.
value_type & insert(const Key &key, const Val &val)
Adds a new element (actually a copy of this element) into the hash table.
Copyright 2005-2020 Pierre-Henri WUILLEMIN () et Christophe GONZALES () info_at_agrum_dot_org.
const std::string & property(const std::string &name) const
Return the value of the property name of this GraphicalModel.
HashTable< std::string, std::string > & __properties() const
Return the properties of this Directed Graphical Model and initialize the hash table is necessary...
#define GUM_ERROR(type, msg)