26 #ifndef DOXYGEN_SHOULD_SKIP_THIS 73 std::stringstream stream;
75 stream <<
"list of associations:" << std::endl;
77 stream <<
"list of variable names:" << std::endl;
85 for (
auto iter = source.__nodes2vars.begin();
86 iter != source.__nodes2vars.end();
88 __nodes2vars.insert(iter.first(), iter.second()->clone());
97 stream << v.toString();
Inlined implementation of VariableNodeMap.
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.
gum is the global namespace for all aGrUM entities
Header of class VariableNodeMap.
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.