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 | Public Attributes | List of all members
lpcompare::Term Class Reference

Represents a term composed of a coefficient and a variable. More...

#include <Term.h>

Public Member Functions

bool operator== (const Term &other) const
 Compares two Term instances for equality. More...
 
bool operator!= (const Term &other) const
 Compares two Term instances for equality. More...
 
bool operator< (const Term &other) const
 Compares two Term instances. More...
 

Public Attributes

double coeff
 
std::string varName
 

Detailed Description

Represents a term composed of a coefficient and a variable.

Definition at line 39 of file Term.h.

Member Function Documentation

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

Compares two Term instances for equality.

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

Definition at line 52 of file Term.cpp.

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

Compares two Term instances.

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

Definition at line 62 of file Term.cpp.

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

Compares two Term instances for equality.

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

Definition at line 41 of file Term.cpp.

Member Data Documentation

double lpcompare::Term::coeff

Definition at line 41 of file Term.h.

std::string lpcompare::Term::varName

Definition at line 42 of file Term.h.


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