This class represents a single record of a GAMSEquation. More...
#include <gamsequationrecord.h>
Public Member Functions | |
GAMSEquationRecord () | |
GAMSEquationRecord (const GAMSSymbolRecord &record) | |
GAMSEquationRecord & | operator= (const GAMSEquationRecord &other) |
double | level () |
void | setLevel (const double val) |
double | marginal () |
void | setMarginal (const double val) |
double | upper () |
void | setUpper (const double val) |
double | lower () |
void | setLower (const double val) |
double | scale () |
void | setScale (const double val) |
Public Member Functions inherited from gams::GAMSSymbolRecord | |
GAMSSymbolRecord () | |
GAMSSymbolRecord (const GAMSSymbolRecord &record) | |
virtual | ~GAMSSymbolRecord () |
Destructor. | |
GAMSSymbolRecord & | operator= (const GAMSSymbolRecord &other) |
bool | operator!= (const GAMSSymbolRecord &other) const |
bool | operator== (const GAMSSymbolRecord &other) const |
bool | isValid () const |
bool | moveNext () |
bool | movePrevious () |
std::vector< std::string > | keys () |
Retrieve keys of GAMSSymbolRecord. | |
std::string | key (int index) |
std::string | operator[] (int i) |
LogId | logID () |
GAMSEnum::SymbolType | type () const |
Get the GAMSSymbol type. | |
Detailed Description
This class represents a single record of a GAMSEquation.
Definition at line 36 of file gamsequationrecord.h.
Constructor & Destructor Documentation
◆ GAMSEquationRecord() [1/2]
gams::GAMSEquationRecord::GAMSEquationRecord | ( | ) |
The default constructor allows to create an uninitialized GAMSEquationRecord to be used later in the code. The method isValid() shows if the instance is initialized.
◆ GAMSEquationRecord() [2/2]
gams::GAMSEquationRecord::GAMSEquationRecord | ( | const GAMSSymbolRecord & | record | ) |
Copy constructor.
- Parameters
-
record Another GAMSSymbolRecord used as data source.
Member Function Documentation
◆ level()
double gams::GAMSEquationRecord::level | ( | ) |
Retrieve the the level of this GAMSEquationRecord.
- Returns
- Returns the level.
◆ lower()
double gams::GAMSEquationRecord::lower | ( | ) |
Retrieve the lower bound of this GAMSEquationRecord.
- Returns
- Returns the lower bound.
◆ marginal()
double gams::GAMSEquationRecord::marginal | ( | ) |
Retrieve the marginal of this GAMSEquationRecord.
- Returns
- Returns the marginal.
◆ operator=()
GAMSEquationRecord & gams::GAMSEquationRecord::operator= | ( | const GAMSEquationRecord & | other | ) |
Assigns a GAMSEquationRecord.
- Parameters
-
other Another GAMSEquationRecord used as data source.
- Returns
- Returns the assigned GAMSEquationRecord (*this).
◆ scale()
double gams::GAMSEquationRecord::scale | ( | ) |
Retrieve the scale factor of this GAMSEquationRecord.
- Returns
- Returns the scale.
◆ setLevel()
void gams::GAMSEquationRecord::setLevel | ( | const double | val | ) |
Set the level of this GAMSEquationRecord.
- Parameters
-
val Level.
◆ setLower()
void gams::GAMSEquationRecord::setLower | ( | const double | val | ) |
Set the lower bound of this GAMSEquationRecord.
- Parameters
-
val Lower bound.
◆ setMarginal()
void gams::GAMSEquationRecord::setMarginal | ( | const double | val | ) |
Set the marginal of this GAMSEquationRecord.
- Parameters
-
val Marginal.
◆ setScale()
void gams::GAMSEquationRecord::setScale | ( | const double | val | ) |
Set the scale factor of this GAMSEquationRecord.
- Parameters
-
val Scale.
◆ setUpper()
void gams::GAMSEquationRecord::setUpper | ( | const double | val | ) |
Set the upper bound of this GAMSEquationRecord.
- Parameters
-
val Upper bound.
◆ upper()
double gams::GAMSEquationRecord::upper | ( | ) |
Retrieve the upper bound of this GAMSEquationRecord.
- Returns
- Returns the upper bound.