aGrUM  0.16.0
structuralConstraintDiGraph.cpp
Go to the documentation of this file.
1 
31 
33 #ifdef GUM_NO_INLINE
35 #endif /* GUM_NO_INLINE */
36 
37 namespace gum {
38 
39  namespace learning {
40 
43  GUM_CONSTRUCTOR(StructuralConstraintDiGraph);
44  }
45 
48  setGraph(nb_nodes);
49  GUM_CONSTRUCTOR(StructuralConstraintDiGraph);
50  }
51 
54  const DiGraph& graph) {
55  setGraph(graph);
56  GUM_CONSTRUCTOR(StructuralConstraintDiGraph);
57  }
58 
61  const StructuralConstraintDiGraph& from) :
63  GUM_CONS_CPY(StructuralConstraintDiGraph);
64  }
65 
69  _DiGraph__graph(std::move(from._DiGraph__graph)) {
70  GUM_CONS_MOV(StructuralConstraintDiGraph);
71  }
72 
75  GUM_DESTRUCTOR(StructuralConstraintDiGraph);
76  }
77 
81  if (this != &from) { _DiGraph__graph = from._DiGraph__graph; }
82  return *this;
83  }
84 
88  if (this != &from) { _DiGraph__graph = std::move(from._DiGraph__graph); }
89  return *this;
90  }
91 
92  } /* namespace learning */
93 
94 } /* namespace gum */
void setGraph(Size nb_nodes)
sets a new empty graph from which we will perform checkings
STL namespace.
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.
Definition: agrum.h:25
StructuralConstraintDiGraph & operator=(const StructuralConstraintDiGraph &from)
copy operator
DiGraph _DiGraph__graph
the DiGraph on which we perform checks
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Base class for all oriented graphs.
Definition: diGraph.h:111
std::size_t Size
In aGrUM, hashed values are unsigned long int.
Definition: types.h:48
The base class for structural constraints used by learning algorithms that learn a directed graph str...