aGrUM  0.16.0
structuralConstraintSliceOrder.cpp
Go to the documentation of this file.
1 
41 
43 #ifdef GUM_NO_INLINE
45 #endif /* GUM_NO_INLINE */
46 
47 namespace gum {
48 
49  namespace learning {
50 
53  GUM_CONSTRUCTOR(StructuralConstraintSliceOrder);
54  }
55 
58  const NodeProperty< NodeId >& order) {
59  for (auto iter = order.cbegin(); iter != order.cend(); ++iter) {
60  _DiGraph__graph.addNodeWithId(iter.key());
61  }
62  _SliceOrder__order = order;
63 
64  GUM_CONSTRUCTOR(StructuralConstraintSliceOrder);
65  }
66 
69  const DiGraph& graph, const NodeProperty< NodeId >& order) :
71  _SliceOrder__order(order) {
72  GUM_CONSTRUCTOR(StructuralConstraintSliceOrder);
73  }
74 
77  const StructuralConstraintSliceOrder& from) :
80  GUM_CONS_CPY(StructuralConstraintSliceOrder);
81  }
82 
86  StructuralConstraintDiGraph(std::move(from)),
88  GUM_CONS_MOV(StructuralConstraintSliceOrder);
89  }
90 
93  GUM_DESTRUCTOR(StructuralConstraintSliceOrder);
94  }
95 
99  if (this != &from) {
102  }
103  return *this;
104  }
105 
109  if (this != &from) {
111  _SliceOrder__order = std::move(from._SliceOrder__order);
112  }
113  return *this;
114  }
115 
116  } /* namespace learning */
117 
118 } /* namespace gum */
STL namespace.
StructuralConstraintSliceOrder & operator=(const StructuralConstraintSliceOrder &from)
copy operator
NodeProperty< NodeId > _SliceOrder__order
slices to which belong the nodes
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
The class for generic Hash Tables.
Definition: hashTable.h:679
const const_iterator & cend() const noexcept
Returns the unsafe const_iterator pointing to the end of the hashtable.
Base class for all oriented graphs.
Definition: diGraph.h:111
const_iterator cbegin() const
Returns an unsafe const_iterator pointing to the beginning of the hashtable.
The base class for structural constraints used by learning algorithms that learn a directed graph str...
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
the structural constraint imposing a partial order over nodes