29 #ifndef DOXYGEN_SHOULD_SKIP_THIS 76 std::stringstream stream;
78 stream <<
"list of associations:" << std::endl;
80 stream <<
"list of variable names:" << std::endl;
88 for (
auto iter = source.__nodes2vars.begin();
89 iter != source.__nodes2vars.end();
91 __nodes2vars.insert(iter.first(), iter.second()->clone());
100 stream << v.toString();
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
void __copy(const VariableNodeMap &source)
effectively do the copy (for copy constructor or operator=)
void clear()
Removes all the associations from the gum::Bijection.
Bijection< NodeId, const DiscreteVariable *> __nodes2vars
Bijection between the node's NodeIds and the variables.
VariableNodeMap()
Default constructor.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
std::ostream & operator<<(std::ostream &output, const BayesNet< GUM_SCALAR > &bn)
Prints map's DAG in output using the Graphviz-dot format.
void clear()
removes all the associations
VariableNodeMap & operator=(const VariableNodeMap &source)
Copy operator.
const std::string toString() const
friendly displays the content of the VariableNodeMap
Bijection< std::string, NodeId > __names2nodes
HashTable for easely find an id from a name.
~VariableNodeMap()
Destructor.