- Main Page
- Modules
- Namespaces
- Classes
- Files
- Related Pages

- File List
- File Members

# /home/coin/SVN-release/Blis-0.91.0/Cgl/src/CglLandP/CglLandPTabRow.hpp

Go to the documentation of this file.

    00001 // Copyright (C) 2005-2008, Pierre Bonami and others.  All Rights Reserved.
    00002 // Author:   Pierre Bonami
    00003 //           LIF
    00004 //           CNRS, Aix-Marseille Universites
    00005 // Date:     02/23/08
    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 }/* Ends LAP Namespace.*/
    00046
    00047 #endif
    00048