| 1 | // Copyright (C) 2005-2009, Pierre Bonami and others. All Rights Reserved.cxx . . $ `<file>/Cgl/src/CglLandP/CglLandPTabRow.hpp`/ |
| 2 | // Author: Pierre Bonami |
| 3 | // LIF |
| 4 | // CNRS, Aix-Marseille Universites |
| 5 | // Date: 02/23/08 |
| 6 | // |
| 7 | // $Id$ |
| 8 | // |
| 9 | // This code is licensed under the terms of the Eclipse Public License (EPL). |
| 10 | //--------------------------------------------------------------------------- |
| 11 | |
| 12 | #ifndef CglLandPTabRow_H |
| 13 | #define CglLandPTabRow_Hcxx . . $ `Cgl/src/CglLandP/CglLandPTabRow.hpp:13:9`! |
| 14 | |
| 15 | #include "CoinIndexedVector.hpp" |
| 16 | #include <iostream> |
| 17 | |
| 18 | namespace LAPcxx . . $ LAP/ |
| 19 | { |
| 20 | class CglLandPSimplexcxx . . $ LAP/CglLandPSimplex#; |
| 21 | struct TabRowcxx . . $ LAP/TabRow#: public CoinIndexedVectorcxx . . $ CoinIndexedVector# |
| 22 | { |
| 23 | /** Row number.*/ |
| 24 | int numcxx . . $ LAP/TabRow#num.; |
| 25 | /** Row right-hand-side.*/ |
| 26 | double rhscxx . . $ LAP/TabRow#rhs.; |
| 27 | /** Row of what?*/ |
| 28 | const CglLandPSimplexcxx . . $ LAP/CglLandPSimplex# * si_cxx . . $ LAP/TabRow#si_.; |
| 29 | |
| 30 | /** Flag to say if row is modularized.*/ |
| 31 | bool modularized_cxx . . $ LAP/TabRow#modularized_.; |
| 32 | |
| 33 | TabRowcxx . . $ LAP/TabRow#TabRow(49f6e7a06ebc5aa8).(): |
| 34 | CoinIndexedVectorcxx . . $ CoinIndexedVector#(), si_cxx . . $ LAP/TabRow#si_.(NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!), modularized_cxx . . $ LAP/TabRow#modularized_.(false) {} |
| 35 | |
| 36 | TabRowcxx . . $ LAP/TabRow#TabRow(9892340f1bcb9ad5).(const CglLandPSimplexcxx . . $ LAP/CglLandPSimplex# *si): |
| 37 | CoinIndexedVectorcxx . . $ CoinIndexedVector#CoinIndexedVector(49f6e7a06ebc5aa8).(), numcxx . . $ LAP/TabRow#num.(-1), rhscxx . . $ LAP/TabRow#rhs.(0), si_cxx . . $ LAP/TabRow#si_.(si), modularized_cxx . . $ LAP/TabRow#modularized_.(false) {} |
| 38 | |
| 39 | TabRowcxx . . $ LAP/TabRow#TabRow(4636bcc5761194f6).(const TabRowcxx . . $ LAP/TabRow# & source):CoinIndexedVectorcxx . . $ CoinIndexedVector#(source), |
| 40 | numcxx . . $ LAP/TabRow#num.(source.numcxx . . $ LAP/TabRow#num.), rhscxx . . $ LAP/TabRow#rhs.(source.rhscxx . . $ LAP/TabRow#rhs.), si_cxx . . $ LAP/TabRow#si_.(source.si_cxx . . $ LAP/TabRow#si_.) |
| 41 | { |
| 42 | } |
| 43 | |
| 44 | TabRowcxx . . $ LAP/TabRow#& operatorcxx . . $ LAP/TabRow#`operator=`(2032868070c591b8).=(const TabRowcxx . . $ LAP/TabRow# & r) |
| 45 | { |
| 46 | if (this != &r) |
| 47 | { |
| 48 | CoinIndexedVectorcxx . . $ CoinIndexedVector#::operator=(r); |
| 49 | numcxx . . $ LAP/TabRow#num. = r.numcxx . . $ LAP/TabRow#num.; |
| 50 | rhscxx . . $ LAP/TabRow#rhs. = r.rhscxx . . $ LAP/TabRow#rhs.; |
| 51 | si_cxx . . $ LAP/TabRow#si_. = r.si_cxx . . $ LAP/TabRow#si_.; |
| 52 | } |
| 53 | return *this; |
| 54 | } |
| 55 | |
| 56 | bool operatorcxx . . $ LAP/TabRow#`operator==`(a38e03829fee1378).==(const TabRowcxx . . $ LAP/TabRow# &r) const; |
| 57 | ~cxx . . $ LAP/TabRow#`~TabRow`(ced63f7c635d850d).TabRowcxx . . $ LAP/TabRow#() |
| 58 | { |
| 59 | } |
| 60 | |
| 61 | void modularizecxx . . $ LAP/TabRow#modularize(187920844032f818).(const bool * integerVar); |
| 62 | |
| 63 | void printcxx . . $ LAP/TabRow#print(99370f87bad8e743).(stdcxx . . $ std/::ostreamcxx . . $ std/ostream# & os, int width = 9, const int * nonBasics = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, |
| 64 | int m = 0); |
| 65 | inline |
| 66 | const double& operatorcxx . . $ LAP/TabRow#`operator[]`(2150d2fa0e2e3730).[](const int &index) const |
| 67 | { |
| 68 | return denseVectorcxx . . $ CoinIndexedVector#denseVector(a4716f499a5a0bc6).()[index]; |
| 69 | } |
| 70 | |
| 71 | inline |
| 72 | double& operatorcxx . . $ LAP/TabRow#`operator[]`(2bbbb22a7c71d5c9).[](const int &index) |
| 73 | { |
| 74 | return denseVectorcxx . . $ CoinIndexedVector#denseVector(a4716f499a5a0bc6).()[index]; |
| 75 | } |
| 76 | }; |
| 77 | }/* Ends LAP Namespace.*/ |
| 78 | |
| 79 | #endif |
| 80 |