cplexlpcompare
Compares two LP files created in cplex format and dumps differences to files.
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
Public Member Functions | Static Public Member Functions | Public Attributes | Friends | List of all members
lpcompare::Bound Class Reference

Represents a bound of a variable. More...

#include <Bound.h>

Public Member Functions

 Bound ()
 
bool operator== (const Bound &other) const
 Compares two Bound instances for equality. More...
 
bool operator< (const Bound &other) const
 Compares two Bound instances. More...
 
bool operator!= (const Bound &other) const
 Compares two Bound instances for inequality. More...
 
Boundoperator= (const Bound &element)
 

Static Public Member Functions

static BoundParse (std::string line)
 Parses a line of the LP file representing a Bound. More...
 
static void dump (const Bound &cons, std::ostream &out)
 Dumps a Bound instance to an ostream in a text format. More...
 

Public Attributes

BoundOp UB_Op
 
BoundOp LB_Op
 
float LB
 
float UB
 
std::string VarName
 

Friends

std::ostream & operator<< (std::ostream &output, const Bound &bound)
 

Detailed Description

Represents a bound of a variable.

Definition at line 53 of file Bound.h.

Constructor & Destructor Documentation

lpcompare::Bound::Bound ( )
inline

Definition at line 63 of file Bound.h.

Member Function Documentation

void lpcompare::Bound::dump ( const Bound bound,
std::ostream &  out 
)
static

Dumps a Bound instance to an ostream in a text format.

Parameters
boundBound to dump.
out

Definition at line 234 of file Bound.cpp.

Here is the call graph for this function:

bool lpcompare::Bound::operator!= ( const Bound other) const

Compares two Bound instances for inequality.

Parameters
otherOther instance to compare self to.
Returns
true if Bound instances are not equivalent.

Definition at line 158 of file Bound.cpp.

bool lpcompare::Bound::operator< ( const Bound other) const

Compares two Bound instances.

Parameters
otherOther instance to compare self to.
Returns
true if self is less than other.

Definition at line 130 of file Bound.cpp.

Bound& lpcompare::Bound::operator= ( const Bound element)
inline

Definition at line 71 of file Bound.h.

bool lpcompare::Bound::operator== ( const Bound other) const

Compares two Bound instances for equality.

Parameters
otherOther instance to compare self to.
Returns
true if Bound instances are equivalent.

Definition at line 116 of file Bound.cpp.

Bound * lpcompare::Bound::Parse ( std::string  line)
static

Parses a line of the LP file representing a Bound.

Parameters
lineSingle line of an LP file.
Returns
A Bound instance representing line.

Definition at line 168 of file Bound.cpp.

Here is the call graph for this function:

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  output,
const Bound bound 
)
friend

Definition at line 81 of file Bound.h.

Member Data Documentation

float lpcompare::Bound::LB

Definition at line 58 of file Bound.h.

BoundOp lpcompare::Bound::LB_Op

Definition at line 57 of file Bound.h.

float lpcompare::Bound::UB

Definition at line 59 of file Bound.h.

BoundOp lpcompare::Bound::UB_Op

Definition at line 56 of file Bound.h.

std::string lpcompare::Bound::VarName

Definition at line 61 of file Bound.h.


The documentation for this class was generated from the following files: