#include <csense.h>
Inheritance diagram for ABA_CSENSE:
Public Types | |
enum | SENSE { Less, Equal, Greater } |
Public Member Functions | |
ABA_CSENSE (ABA_GLOBAL *glob) | |
ABA_CSENSE (ABA_GLOBAL *glob, SENSE s) | |
ABA_CSENSE (ABA_GLOBAL *glob, char s) | |
With this constructor the sense of the constraint can also be initialized with a single letter. | |
const ABA_CSENSE & | operator= (SENSE rhs) |
The default assignment operator is overloaded such that also the enumeration SENSE can be used on the right hand side. | |
SENSE | sense () const |
void | sense (SENSE s) |
This overloaded version of sense() changes the sense of the constraint. | |
void | sense (char s) |
The sense can also be changed by a character as in the constructor ABA_CSENSE(ABA_GLOBAL *glob, char s). | |
Private Attributes | |
ABA_GLOBAL * | glob_ |
SENSE | sense_ |
Friends | |
ostream & | operator<< (ostream &out, const ABA_CSENSE &rhs) |
The output operator writes the sense on an output stream in the form <=, =, or >=. |
Definition at line 50 of file csense.h.
enum ABA_CSENSE::SENSE |
ABA_CSENSE::ABA_CSENSE | ( | ABA_GLOBAL * | glob | ) |
If the default constructor is used, the sense is undefined.
glob | A pointer to the corresponding global object. |
ABA_CSENSE::ABA_CSENSE | ( | ABA_GLOBAL * | glob, | |
SENSE | s | |||
) |
This constructor initializes the sense.
glob | A pointer to the corresponding global object. | |
s | The sense. |
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.
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. |
const ABA_CSENSE & ABA_CSENSE::operator= | ( | SENSE | rhs | ) | [inline] |
ABA_CSENSE::SENSE ABA_CSENSE::sense | ( | ) | const [inline] |
void ABA_CSENSE::sense | ( | SENSE | s | ) | [inline] |
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).
s | The new sense. |
ostream& operator<< | ( | ostream & | out, | |
const ABA_CSENSE & | rhs | |||
) | [friend] |
The output operator writes the sense on an output stream in the form <=, =, or >=.
out | The output stream. | |
rhs | The sense being output. |
ABA_GLOBAL* ABA_CSENSE::glob_ [private] |
SENSE ABA_CSENSE::sense_ [private] |