aGrUM  0.14.2
structuralConstraintPatternHeader.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 all the StructuralConstraints
22 // header files (see StructuralConstraintDAG to see how it should be included).
23 
24 #ifdef GUM_CONSTRAINT_CLASS_NAME
25 
26 // ##########################################################################
28 // ##########################################################################
30 
32 void setGraph(const DiGraph& graph);
33 
35 
37 void modifyGraph(const ArcAddition& change);
38 
40 
42 void modifyGraph(const ArcDeletion& change);
43 
45 
47 void modifyGraph(const ArcReversal& change);
48 
50 
52 void modifyGraph(const GraphChange& change);
53 
55 
66 bool isAlwaysInvalid(const GraphChange& change) const;
67 
69 bool checkArcAddition(NodeId x, NodeId y) const;
70 
72 bool checkArcDeletion(NodeId x, NodeId y) const;
73 
75 bool checkArcReversal(NodeId x, NodeId y) const;
76 
78 bool checkModification(const ArcAddition& change) const;
79 
81 bool checkModification(const ArcDeletion& change) const;
82 
84 bool checkModification(const ArcReversal& change) const;
85 
87 bool checkModification(const GraphChange& change) const;
88 
90 
91 #endif /* GUM_CONSTRAINT_CLASS_NAME */
Size NodeId
Type for node ids.
Definition: graphElements.h:97