Merging from trunk
[ardour.git] / libs / cassowary / ClConstraint.cc
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 // ClConstraint.cc
11
12 #include <cassowary/ClConstraint.h>
13
14 #ifdef HAVE_CONFIG_H
15 #include <config.h>
16 #define CONFIG_H_INCLUDED
17 #endif
18
19 #ifndef CL_NO_IO
20 #include <cassowary/ClTableau.h> // for VarSet printing
21
22 ostream &
23 ClConstraint::PrintOn(ostream &xo) const 
24 {
25   // Note that the trailing "= 0)" or ">= 0)" is missing, as derived classes will
26   // print the right thing after calling this function
27   xo << strength() << " w{" << weight() << "} ta{" 
28      << _times_added << "} RO" << _readOnlyVars << " " << "(" << Expression();
29   return xo;
30 }
31
32 #endif