48#ifndef DOXYGEN_SHOULD_SKIP_THIS
99 std::stringstream stream;
101 stream <<
"list of associations:" << std::endl;
103 stream <<
"list of variable names:" << std::endl;
111 for (
auto iter = source._nodes2vars_.begin(); iter != source._nodes2vars_.end(); ++iter)
112 _nodes2vars_.insert(iter.first(), iter.second()->clone());
121 stream << v.toString();
Container used to map discrete variables with nodes.
VariableNodeMap & operator=(const VariableNodeMap &source)
Copy operator.
void _copy_(const VariableNodeMap &source)
effectively do the copy (for copy constructor or operator=)
~VariableNodeMap()
Destructor.
Bijection< std::string, NodeId > _names2nodes_
HashTable for easely find an id from a name.
void clear()
removes all the associations
Bijection< NodeId, const DiscreteVariable * > _nodes2vars_
Bijection between the node's NodeIds and the variables.
std::string toString() const
friendly displays the content of the VariableNodeMap
VariableNodeMap()
Default constructor.
gum is the global namespace for all aGrUM entities
std::ostream & operator<<(std::ostream &stream, const AVLTree< Val, Cmp > &tree)
display the content of a tree
Header of class VariableNodeMap.
Inlined implementation of VariableNodeMap.