aGrUM  0.14.2
structuralConstraintPattern4UndiGraphRootInline.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 StructuralConstraintUndiGraph 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 // StructuralConstraintUndiGraph.
27 // If your class derives from anoter constraint, include file
28 // StructuralConstraintPattern4UndiGraphInline.h instead.
29 
30 #ifdef GUM_CONSTRAINT_CLASS_NAME
31 
33 INLINE void GUM_CONSTRAINT_CLASS_NAME::setGraph(const UndiGraph& graph) {
34  setGraphAlone(graph);
35 }
36 
38 INLINE void GUM_CONSTRAINT_CLASS_NAME::modifyGraph(const EdgeAddition& change) {
39  modifyGraphAlone(change);
40 }
41 
43 INLINE void GUM_CONSTRAINT_CLASS_NAME::modifyGraph(const EdgeDeletion& change) {
44  modifyGraphAlone(change);
45 }
46 
48 INLINE void GUM_CONSTRAINT_CLASS_NAME::modifyGraph(const GraphChange& change) {
49  modifyGraphAlone(change);
50 }
51 
53 INLINE bool GUM_CONSTRAINT_CLASS_NAME::checkEdgeAddition(NodeId x,
54  NodeId y) const {
55  return checkEdgeAdditionAlone(x, y);
56 }
57 
59 INLINE bool GUM_CONSTRAINT_CLASS_NAME::checkEdgeDeletion(NodeId x,
60  NodeId y) const {
61  return checkEdgeDeletionAlone(x, y);
62 }
63 
65 INLINE bool
66  GUM_CONSTRAINT_CLASS_NAME::checkModification(const EdgeAddition& change) const {
67  return checkModificationAlone(change);
68 }
69 
71 INLINE bool
72  GUM_CONSTRAINT_CLASS_NAME::checkModification(const EdgeDeletion& change) const {
73  return checkModificationAlone(change);
74 }
75 
77 INLINE bool
78  GUM_CONSTRAINT_CLASS_NAME::checkModification(const GraphChange& change) const {
79  return checkModificationAlone(change);
80 }
81 
83 INLINE bool
84  GUM_CONSTRAINT_CLASS_NAME::isAlwaysInvalid(const GraphChange& change) const {
85  return isAlwaysInvalidAlone(change);
86 }
87 
88 #endif /* GUM_CONSTRAINT_CLASS_NAME */
Size NodeId
Type for node ids.
Definition: graphElements.h:97