[Interval] [Up] [Double] Data Types

Boolean
Toolbox boolean datatype

Synopsis

class Boolean
{
public:
    Boolean();
    Boolean(int x);
    Boolean(double x);
    Boolean(Boolean& x);
    ~Boolean();
    Boolean& operator=(int x);
    Boolean& operator=(double x);
    Boolean& operator=(Boolean& x);
    operator int() const;
    operator double() const;
};

Description

Class Methods

The following public methods are intended for use by application programs:

Technical Notes

The class Boolean is a proxy for the internal toolbox boolean type. It takes care of chores like memory release and exception catching. When a toolbox function returns a boolean, an object of this class is created to be returned to the caller. The object constructor catches any error ocurred in the function implementation and, in case of error, throws a morphException .

See the code of the demonstrations for examples of use of the Boolean class.

[Interval] [Up] [Double]