Main Page   Class Hierarchy   Compound List   File List   Contact   Download   Symbolic Constraints   Examples  

row_entry.h

00001 #ifndef SCIL_ROW_ENTRY_H
00002 #define SCIL_ROW_ENTRY_H
00003 
00004 #include <iostream>
00005 #include <scil/variable.h>
00006 #include <list>
00007 
00008 namespace SCIL {
00010 class row_entry
00011 {
00012  public:
00014   typedef std::list<row_entry>::iterator list_iterator;
00015 
00017   typedef std::list<row_entry>::const_iterator list_constiterator;
00018 
00020   double coeff;
00021 
00023   var Var;
00024 
00026   row_entry(var v, double c);
00027   
00029   row_entry() { };
00030 
00032   friend std::ostream& operator<<(std::ostream& o,const row_entry&);
00033 
00035   friend std::istream& operator>>(std::istream& i,const row_entry&);
00036 
00038   friend bool operator< ( const row_entry&, const row_entry& );
00039   
00040 };
00041 
00042 bool operator< ( const row_entry& re1, const row_entry& re2 );
00043 
00044 };
00045 #endif
Generated on Mon Mar 28 22:03:49 2011 for SCIL by  doxygen 1.6.3