aGrUM  0.16.0
structuralConstraintPatternRootInline.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 StructuralConstraintDiGraph 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 // StructuralConstraintDiGraph.
29 // If your class derives from anoter constraint, include file
30 // StructuralConstraintPatternInline.h instead.
31 
32 #ifdef GUM_CONSTRAINT_CLASS_NAME
33 
35 INLINE void GUM_CONSTRAINT_CLASS_NAME::setGraph(const DiGraph& graph) {
36  setGraphAlone(graph);
37 }
38 
40 INLINE void GUM_CONSTRAINT_CLASS_NAME::modifyGraph(const ArcAddition& change) {
41  modifyGraphAlone(change);
42 }
43 
45 INLINE void GUM_CONSTRAINT_CLASS_NAME::modifyGraph(const ArcDeletion& change) {
46  modifyGraphAlone(change);
47 }
48 
50 INLINE void GUM_CONSTRAINT_CLASS_NAME::modifyGraph(const ArcReversal& change) {
51  modifyGraphAlone(change);
52 }
53 
55 INLINE void GUM_CONSTRAINT_CLASS_NAME::modifyGraph(const GraphChange& change) {
56  modifyGraphAlone(change);
57 }
58 
60 INLINE bool GUM_CONSTRAINT_CLASS_NAME::checkArcAddition(NodeId x, NodeId y) const {
61  return checkArcAdditionAlone(x, y);
62 }
63 
65 INLINE bool GUM_CONSTRAINT_CLASS_NAME::checkArcDeletion(NodeId x, NodeId y) const {
66  return checkArcDeletionAlone(x, y);
67 }
68 
70 INLINE bool GUM_CONSTRAINT_CLASS_NAME::checkArcReversal(NodeId x, NodeId y) const {
71  return checkArcReversalAlone(x, y);
72 }
73 
75 INLINE bool
76  GUM_CONSTRAINT_CLASS_NAME::checkModification(const ArcAddition& change) const {
77  return checkModificationAlone(change);
78 }
79 
81 INLINE bool
82  GUM_CONSTRAINT_CLASS_NAME::checkModification(const ArcDeletion& change) const {
83  return checkModificationAlone(change);
84 }
85 
87 INLINE bool
88  GUM_CONSTRAINT_CLASS_NAME::checkModification(const ArcReversal& change) const {
89  return checkModificationAlone(change);
90 }
91 
93 INLINE bool
94  GUM_CONSTRAINT_CLASS_NAME::checkModification(const GraphChange& change) const {
95  return checkModificationAlone(change);
96 }
97 
99 INLINE bool
100  GUM_CONSTRAINT_CLASS_NAME::isAlwaysInvalid(const GraphChange& change) const {
101  return isAlwaysInvalidAlone(change);
102 }
103 
104 #endif /* GUM_CONSTRAINT_CLASS_NAME */
Size NodeId
Type for node ids.
Definition: graphElements.h:98