Initial revision
[ardour.git] / libs / cassowary / cassowary / ClTypedefs.h
1 // $Id$
2 //
3 // Cassowary Incremental Constraint Solver
4 // Original Smalltalk Implementation by Alan Borning
5 // This C++ Implementation by Greg J. Badros, <gjb@cs.washington.edu>
6 // http://www.cs.washington.edu/homes/gjb
7 // (C) 1998, 1999 Greg J. Badros and Alan Borning
8 // See ../LICENSE for legal details regarding this software
9 //
10 // ClTypedefs.h
11
12 #ifndef CL_TYPEDEFS_H__
13 #define CL_TYPEDEFS_H__
14
15 #if defined(HAVE_CONFIG_H) && !defined(CONFIG_H_INCLUDED) && !defined(CONFIG_INLINE_H_INCLUDED)
16 #include <cassowary/config-inline.h>
17 #define CONFIG_INLINE_H_INCLUDED
18 #endif
19
20 #include "ClLinearExpression_fwd.h"
21 #include <set> 
22 #include <map>
23 #include <vector>
24
25 using std::set;
26 using std::map;
27 using std::vector;
28
29 class ClVariable;
30 class ClConstraint;
31 class ClEditInfo;
32
33 typedef set<ClVariable> ClVarSet;  
34 typedef map<ClVariable, ClVarSet > ClTableauColumnsMap;
35 typedef map<ClVariable, ClLinearExpression *> ClTableauRowsMap;
36
37 // For Solver
38 typedef map<const ClConstraint *, ClVarSet> ClConstraintToVarSetMap;
39 typedef map<const ClConstraint *, ClVariable> ClConstraintToVarMap;
40 typedef map<ClVariable, const ClConstraint *> ClVarToConstraintMap;
41 typedef vector<ClVariable> ClVarVector;
42
43 typedef set<const ClConstraint *> ClConstraintSet;
44
45 // For FDSolver
46 typedef map<ClVariable, ClConstraintSet> ClVarToConstraintSetMap;
47
48 #endif