aGrUM  0.14.2
structuralConstraintPatternRootInline.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2005 by Christophe GONZALES and Pierre-Henri WUILLEMIN *
3  * {prenom.nom}_at_lip6.fr *
4  * *
5  * This program is free software; you can redistribute it and/or modify *
6  * it under the terms of the GNU General Public License as published by *
7  * the Free Software Foundation; either version 2 of the License, or *
8  * (at your option) any later version. *
9  * *
10  * This program is distributed in the hope that it will be useful, *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13  * GNU General Public License for more details. *
14  * *
15  * You should have received a copy of the GNU General Public License *
16  * along with this program; if not, write to the *
17  * Free Software Foundation, Inc., *
18  * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19  ***************************************************************************/
20 
21 // this file should be included at the end of the StructuralConstraints inline
22 // files (see StructuralConstraintDiGraph to see how it should be included).
23 // This concerns only StructuralConstraints that do not derive from other
24 // StructuralConstraints, i.e., that do not derive from public virtual
25 // StructuralConstraintSetStatic<...>. Such a class is
26 // StructuralConstraintDiGraph.
27 // If your class derives from anoter constraint, include file
28 // StructuralConstraintPatternInline.h instead.
29 
30 #ifdef GUM_CONSTRAINT_CLASS_NAME
31 
33 INLINE void GUM_CONSTRAINT_CLASS_NAME::setGraph(const DiGraph& graph) {
34  setGraphAlone(graph);
35 }
36 
38 INLINE void GUM_CONSTRAINT_CLASS_NAME::modifyGraph(const ArcAddition& change) {
39  modifyGraphAlone(change);
40 }
41 
43 INLINE void GUM_CONSTRAINT_CLASS_NAME::modifyGraph(const ArcDeletion& change) {
44  modifyGraphAlone(change);
45 }
46 
48 INLINE void GUM_CONSTRAINT_CLASS_NAME::modifyGraph(const ArcReversal& change) {
49  modifyGraphAlone(change);
50 }
51 
53 INLINE void GUM_CONSTRAINT_CLASS_NAME::modifyGraph(const GraphChange& change) {
54  modifyGraphAlone(change);
55 }
56 
58 INLINE bool GUM_CONSTRAINT_CLASS_NAME::checkArcAddition(NodeId x, NodeId y) const {
59  return checkArcAdditionAlone(x, y);
60 }
61 
63 INLINE bool GUM_CONSTRAINT_CLASS_NAME::checkArcDeletion(NodeId x, NodeId y) const {
64  return checkArcDeletionAlone(x, y);
65 }
66 
68 INLINE bool GUM_CONSTRAINT_CLASS_NAME::checkArcReversal(NodeId x, NodeId y) const {
69  return checkArcReversalAlone(x, y);
70 }
71 
73 INLINE bool
74  GUM_CONSTRAINT_CLASS_NAME::checkModification(const ArcAddition& change) const {
75  return checkModificationAlone(change);
76 }
77 
79 INLINE bool
80  GUM_CONSTRAINT_CLASS_NAME::checkModification(const ArcDeletion& change) const {
81  return checkModificationAlone(change);
82 }
83 
85 INLINE bool
86  GUM_CONSTRAINT_CLASS_NAME::checkModification(const ArcReversal& change) const {
87  return checkModificationAlone(change);
88 }
89 
91 INLINE bool
92  GUM_CONSTRAINT_CLASS_NAME::checkModification(const GraphChange& change) const {
93  return checkModificationAlone(change);
94 }
95 
97 INLINE bool
98  GUM_CONSTRAINT_CLASS_NAME::isAlwaysInvalid(const GraphChange& change) const {
99  return isAlwaysInvalidAlone(change);
100 }
101 
102 #endif /* GUM_CONSTRAINT_CLASS_NAME */
Size NodeId
Type for node ids.
Definition: graphElements.h:97