33 lines
883 B
C++
33 lines
883 B
C++
|
// $Id$
|
||
|
//
|
||
|
// Cassowary Incremental Constraint Solver
|
||
|
// Original Smalltalk Implementation by Alan Borning
|
||
|
// This C++ Implementation by Greg J. Badros, <gjb@cs.washington.edu>
|
||
|
// http://www.cs.washington.edu/homes/gjb
|
||
|
// (C) 1998, 1999 Greg J. Badros and Alan Borning
|
||
|
// See ../LICENSE for legal details regarding this software
|
||
|
//
|
||
|
// ClConstraint.cc
|
||
|
|
||
|
#include <cassowary/ClConstraint.h>
|
||
|
|
||
|
#ifdef HAVE_CONFIG_H
|
||
|
#include <config.h>
|
||
|
#define CONFIG_H_INCLUDED
|
||
|
#endif
|
||
|
|
||
|
#ifndef CL_NO_IO
|
||
|
#include <cassowary/ClTableau.h> // for VarSet printing
|
||
|
|
||
|
ostream &
|
||
|
ClConstraint::PrintOn(ostream &xo) const
|
||
|
{
|
||
|
// Note that the trailing "= 0)" or ">= 0)" is missing, as derived classes will
|
||
|
// print the right thing after calling this function
|
||
|
xo << strength() << " w{" << weight() << "} ta{"
|
||
|
<< _times_added << "} RO" << _readOnlyVars << " " << "(" << Expression();
|
||
|
return xo;
|
||
|
}
|
||
|
|
||
|
#endif
|