6.14 ABA_VARTYPE Class Reference

Variables can be of three different types: Continuous, Integer or Binary. We distinguish Integer and Binary variables since some operations are performed differently (e.g., branching).

#include <vartype.h>

Inheritance diagram for ABA_VARTYPE::


PIC


Public Types

Public Member Functions

Private Attributes

Friends

6.14.1 Detailed Description

Variables can be of three different types: Continuous, Integer or Binary. We distinguish Integer and Binary variables since some operations are performed differently (e.g., branching).

Definition at line 45 of file vartype.h.

6.14.2 Member Enumeration Documentation

6.14.2.1 enum ABA_VARTYPE::TYPE

The enumeration with the different variable types.

Parameters:

Continuous
A continuous variable.
Integer
A general integer variable.
Binary
A variable having value 0 or 1.

Enumerator:

Continuous
Integer
Binary

Definition at line 54 of file vartype.h.

6.14.3 Constructor & Destructor Documentation

6.14.3.1 ABA_VARTYPE::ABA_VARTYPE () [inline]

The default constructor lets the type of the variable uninitialized.

Definition at line 126 of file vartype.h.

6.14.3.2 ABA_VARTYPE::ABA_VARTYPE (TYPE t) [inline]

This constructor initializes the variable type.

Parameters:

t
The variable type.

Definition at line 130 of file vartype.h.

6.14.4 Member Function Documentation

6.14.4.1 ABA_VARTYPE::TYPE ABA_VARTYPE::type () const [inline]

Returns:

The type of the variable.

Definition at line 135 of file vartype.h.

6.14.4.2 void ABA_VARTYPE::type (TYPE t) [inline]

This version of the function type() sets the variable type.

Parameters:

t
The new type of the variable.

Definition at line 140 of file vartype.h.

6.14.4.3 bool ABA_VARTYPE::discrete () const [inline]

Returns:

true If the type of the variable is Integer or Binary,

false otherwise.

Definition at line 145 of file vartype.h.

6.14.4.4 bool ABA_VARTYPE::binary () const [inline]

Returns:

true If the type of the variable Binary,

false otherwise.

Definition at line 151 of file vartype.h.

6.14.4.5 bool ABA_VARTYPE::integer () const

Returns:

true If the type of the variable is Integer,

false otherwise.

6.14.5 Friends And Related Function Documentation

6.14.5.1 ostream& operator<< (ostream & out, const ABA_VARTYPE & rhs) [friend]

The output operator writes the variable type to an output stream in the format { Continuous}, { Integer}, or { Binary}.

Returns:

A reference to the output stream.

Parameters:

out
The output stream.
rhs
The variable type being output.

6.14.6 Member Data Documentation

6.14.6.1 TYPE ABA_VARTYPE::type_ [private]

The type of the variable.

Definition at line 122 of file vartype.h.

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