Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008 #ifndef CglLandPTabRow_H
00009 #define CglLandPTabRow_H
00010
00011 #include "CoinIndexedVector.hpp"
00012 #include <iostream>
00013
00014 namespace LAP{
00015 class CglLandPSimplex;
00016 struct TabRow: public CoinIndexedVector {
00018 int num;
00020 double rhs;
00022 const CglLandPSimplex * si_;
00023
00024
00025 TabRow(const CglLandPSimplex *si):
00026 CoinIndexedVector(), num(-1), rhs(0), si_(si) {}
00027 TabRow(const TabRow & source):CoinIndexedVector(source),
00028 num(source.num), rhs(source.rhs) {
00029 }
00030 ~TabRow() {
00031 }
00032
00033 void print(std::ostream & os, int width = 9, const int * nonBasics = NULL,
00034 int m = 0);
00035 inline
00036 const double& operator[](const int &index) const {
00037 return denseVector()[index];
00038 }
00039
00040 inline
00041 double& operator[](const int &index) {
00042 return denseVector()[index];
00043 }
00044 };
00045 }
00046
00047 #endif
00048