aGrUM  0.16.0
structuralConstraintPattern4UndiGraphRootInline.h
Go to the documentation of this file.
1 
23 // this file should be included at the end of the StructuralConstraints inline
24 // files (see StructuralConstraintUndiGraph to see how it should be included).
25 // This concerns only StructuralConstraints that do not derive from other
26 // StructuralConstraints, i.e., that do not derive from public virtual
27 // StructuralConstraintSetStatic<...>. Such a class is
28 // StructuralConstraintUndiGraph.
29 // If your class derives from anoter constraint, include file
30 // StructuralConstraintPattern4UndiGraphInline.h instead.
31 
32 #ifdef GUM_CONSTRAINT_CLASS_NAME
33 
35 INLINE void GUM_CONSTRAINT_CLASS_NAME::setGraph(const UndiGraph& graph) {
36  setGraphAlone(graph);
37 }
38 
40 INLINE void GUM_CONSTRAINT_CLASS_NAME::modifyGraph(const EdgeAddition& change) {
41  modifyGraphAlone(change);
42 }
43 
45 INLINE void GUM_CONSTRAINT_CLASS_NAME::modifyGraph(const EdgeDeletion& change) {
46  modifyGraphAlone(change);
47 }
48 
50 INLINE void GUM_CONSTRAINT_CLASS_NAME::modifyGraph(const GraphChange& change) {
51  modifyGraphAlone(change);
52 }
53 
55 INLINE bool GUM_CONSTRAINT_CLASS_NAME::checkEdgeAddition(NodeId x,
56  NodeId y) const {
57  return checkEdgeAdditionAlone(x, y);
58 }
59 
61 INLINE bool GUM_CONSTRAINT_CLASS_NAME::checkEdgeDeletion(NodeId x,
62  NodeId y) const {
63  return checkEdgeDeletionAlone(x, y);
64 }
65 
67 INLINE bool
68  GUM_CONSTRAINT_CLASS_NAME::checkModification(const EdgeAddition& change) const {
69  return checkModificationAlone(change);
70 }
71 
73 INLINE bool
74  GUM_CONSTRAINT_CLASS_NAME::checkModification(const EdgeDeletion& change) const {
75  return checkModificationAlone(change);
76 }
77 
79 INLINE bool
80  GUM_CONSTRAINT_CLASS_NAME::checkModification(const GraphChange& change) const {
81  return checkModificationAlone(change);
82 }
83 
85 INLINE bool
86  GUM_CONSTRAINT_CLASS_NAME::isAlwaysInvalid(const GraphChange& change) const {
87  return isAlwaysInvalidAlone(change);
88 }
89 
90 #endif /* GUM_CONSTRAINT_CLASS_NAME */
Size NodeId
Type for node ids.
Definition: graphElements.h:98