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. More...

#include <csense.h>

Inheritance diagram for ABA_CSENSE:

ABA_ABACUSROOT List of all members.

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_CSENSEoperator= (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_GLOBALglob_
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 >=.

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.


Member Enumeration Documentation

enum ABA_CSENSE::SENSE

Parameters:
Less $\le$
Equal $=$
Greater $\ge$
Enumerator:
Less 
Equal 
Greater 

Definition at line 57 of file csense.h.


Constructor & Destructor Documentation

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.

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.

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.


Member Function Documentation

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.

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

Returns:
The sense of the constraint.

Definition at line 152 of file csense.h.

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.

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.


Friends And Related Function Documentation

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.


Member Data Documentation

ABA_GLOBAL* ABA_CSENSE::glob_ [private]

Definition at line 138 of file csense.h.

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:
Generated on Tue Aug 14 18:09:56 2007 for ABACUS by  doxygen 1.5.1