| [Interval] [Up] [Double] | Data Types |
| User Feedback |
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;
};
The following public methods are intended for use by application programs:
Boolean()
: default constructor
Boolean(Boolean&)
: copy constructor
Boolean(int)
: constructor from int
Boolean(double)
: constructor from double
~Boolean()
: destructor
Boolean& operator=(Boolean&)
: assignment operator
Boolean& operator=(int)
: assignment operator from int
Boolean& operator=(double)
: assignment operator from double
operator int()
: cast to int
operator double()
: cast to double
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] | |
| User Feedback | |
| Copyright (c) 1998-2008 by SDC Information Systems |