aGrUM  0.16.0
interfaceGraph.cpp
Go to the documentation of this file.
1 
31 
32 namespace gum {
33  namespace prm {
34  namespace gspan {
35 
36  std::ostream& operator<<(std::ostream& out, const LabelData& data) {
37  out << data.l;
38  return out;
39  }
40 
41  // LabelData
42 
43  LabelData::LabelData() : id(0) { GUM_CONSTRUCTOR(LabelData); }
44 
45  LabelData::LabelData(const LabelData& from) : id(from.id), l(from.l) {
46  GUM_CONS_CPY(LabelData);
47  }
48 
49  LabelData::~LabelData() { GUM_DESTRUCTOR(LabelData); }
50 
51  bool LabelData::operator==(const LabelData& from) const {
52  return (id == from.id) && (l == from.l) && (tree_width == from.tree_width);
53  }
54 
55  bool LabelData::operator!=(const LabelData& from) const {
56  return (id != from.id) && (l != from.l) && (tree_width != from.tree_width);
57  }
58 
59 
60 #ifndef GUM_NO_EXTERN_TEMPLATE_CLASS
61 # ifndef GUM_NO_EXTERN_TEMPLATE_CLASS
62 # ifndef GUM_NO_EXTERN_TEMPLATE_CLASS
63  template class NodeData< double >;
64 # endif
65 # endif
66 #endif
67 #ifndef GUM_NO_EXTERN_TEMPLATE_CLASS
68 # ifndef GUM_NO_EXTERN_TEMPLATE_CLASS
69 # ifndef GUM_NO_EXTERN_TEMPLATE_CLASS
70  template class EdgeData< double >;
71 # endif
72 # endif
73 #endif
74 #ifndef GUM_NO_EXTERN_TEMPLATE_CLASS
75 # ifndef GUM_NO_EXTERN_TEMPLATE_CLASS
76 # ifndef GUM_NO_EXTERN_TEMPLATE_CLASS
77  template class InterfaceGraph< double >;
78 # endif
79 # endif
80 #endif
81 
82  } /* namespace gspan */
83  } /* namespace prm */
84 } /* namespace gum */
std::ostream & operator<<(std::ostream &out, const DFSCode &code)
Print code in out.
Definition: DFSCode.cpp:40
Inner class to handle data about labels in this interface graph.
std::string l
The string version of this label.
bool operator==(const LabelData &from) const
Equality operator.
Inner class to handle data about edges in __graph.
This class represent the interface graph of a given gum::prm::PRMSystem<GUM_SCALAR>.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Definition: agrum.h:25
bool operator!=(const LabelData &from) const
Difference operator.
Inner class to handle data about nodes in __graph.
Idx id
An unique identifier for this label.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Size tree_width
The size in terms of tree width of the given label.