00001 #ifndef SCIL_COLUMN_ENTRY_H
00002 #define SCIL_COLUMN_ENTRY_H
00003
00004 #include <iostream>
00005 #include <scil/cons.h>
00006 #include <list>
00007
00008 namespace SCIL {
00009
00010 class column_entry
00011 {
00012
00013 public:
00014
00016 typedef std::list<column_entry>::iterator list_iterator;
00017
00019 typedef std::list<column_entry>::const_iterator list_constiterator;
00020
00021 double coeff;
00022
00023 cons Cons;
00024
00025 column_entry(cons v, double c);
00026
00028 column_entry() { };
00029 friend std::ostream& operator<<(std::ostream& o,const column_entry&);
00030 friend std::istream& operator>>(std::istream& i,const column_entry&);
00031
00033 friend bool operator< ( const column_entry&, const column_entry& );
00034
00035 };
00036
00037 bool operator< ( const column_entry& ce1, const column_entry& ce2 );
00038
00039 };
00040
00041 #endif