00001 #include <scil/row_entry.h>
00002 #include <scil/variable.h>
00003
00004 using namespace SCIL;
00005
00006 row_entry::row_entry(var v, double c)
00007 {
00008 Coeff=c;
00009 Var=v;
00010 };
00011
00012
00013 int SCIL::compare(const row_entry& t1, const row_entry& t2)
00014 {
00015 return compare(t1.Var,t2.Var);
00016 }
00017
00018
00019 ostream& SCIL::operator<<(ostream& o,const row_entry& re)
00020 {
00021 return o<<re.Coeff<<"*"<<re.Var.var_pointer();
00022 };
00023
00024
00025 istream& SCIL::operator>>(istream& i,const row_entry&)
00026 {
00027 return i;
00028 };
00029