bool binary() const
Returns true if the type of the variable is Binary, false otherwise.
friend ostream & operator<<(ostream &out, const VarType &rhs)
Output operator for variable types.
bool discrete() const
Returns true if the type of the variable is Integer or Binary, false otherwise.
Base class of all other classes of ABACUS.
void type(TYPE t)
Sets the variable type to t.
A variable having value 0 or 1.
VarType(TYPE t)
Creates a variable type t.
TYPE type_
The type of the variable.
VarType()
The default constructor: Lets the type of the variable uninitialized.
A general integer variable.
TYPE type() const
Returns the type of the variable.
TYPE
The enumeration with the different variable types.
bool integer() const
Returns true if the type of the variable is Integer, false otherwise.