6.13 ABA_CSENSE Class Reference

we implement the sense of optimization as a class since we require it both in the classes ABA_CONSTRAINT and ABA_ROW.

#include <csense.h>

Inheritance diagram for ABA_CSENSE::


PIC


Public Types

Public Member Functions

Private Attributes

Friends

6.13.1 Detailed Description

we implement the sense of optimization as a class since we require it both in the classes ABA_CONSTRAINT and ABA_ROW.

Definition at line 50 of file csense.h.

6.13.2 Member Enumeration Documentation

6.13.2.1 enum ABA_CSENSE::SENSE

Parameters:

Less
Equal
=
Greater

Enumerator:

Less
Equal
Greater

Definition at line 57 of file csense.h.

6.13.3 Constructor & Destructor Documentation

6.13.3.1 ABA_CSENSE::ABA_CSENSE (ABA_GLOBAL * glob)

If the default constructor is used, the sense is undefined.

Parameters:

glob
A pointer to the corresponding global object.

6.13.3.2 ABA_CSENSE::ABA_CSENSE (ABA_GLOBAL * glob, SENSE s)

This constructor initializes the sense.

Parameters:

glob
A pointer to the corresponding global object.
s
The sense.

6.13.3.3 ABA_CSENSE::ABA_CSENSE (ABA_GLOBAL * glob, char s)

With this constructor the sense of the constraint can also be initialized with a single letter.

Parameters:

glob
A pointer to the corresponding global object.
s
A character representing the sense: { E} or { e} stand for Equal, { G} and { g} stand for Greater, and { L} or { l} stand for Less.

6.13.4 Member Function Documentation

6.13.4.1 const ABA_CSENSE & ABA_CSENSE::operator= (SENSE rhs) [inline]

The default assignment operator is overloaded such that also the enumeration SENSE can be used on the right hand side.

Returns:

A reference to the sense.

Parameters:

rhs
The new sense.

Definition at line 146 of file csense.h.

6.13.4.2 ABA_CSENSE::SENSE ABA_CSENSE::sense () const [inline]

Returns:

The sense of the constraint.

Definition at line 152 of file csense.h.

6.13.4.3 void ABA_CSENSE::sense (SENSE s) [inline]

This overloaded version of sense() changes the sense of the constraint.

Parameters:

s
The new sense.

Definition at line 157 of file csense.h.

6.13.4.4 void ABA_CSENSE::sense (char s)

The sense can also be changed by a character as in the constructor ABA_CSENSE(ABA_GLOBAL *glob, char s).

Parameters:

s
The new sense.

6.13.5 Friends And Related Function Documentation

6.13.5.1 ostream& operator<< (ostream & out, const ABA_CSENSE & rhs) [friend]

The output operator writes the sense on an output stream in the form <=, =, or >=.

Returns:

The output stream.

Parameters:

out
The output stream.
rhs
The sense being output.

6.13.6 Member Data Documentation

6.13.6.1 ABA_GLOBAL*ABA_CSENSE::glob_ [private]

Definition at line 138 of file csense.h.

6.13.6.2 SENSE ABA_CSENSE::sense_ [private]

Stores the sense of a constraint.

Definition at line 142 of file csense.h.

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