| [Boolean] [Up] [String] | Data Types |
| User Feedback |
class DLLEXPORT Double
{
public:
Double();
Double(int x);
Double(double x);
Double(Double& x);
~Double();
Double& operator=(int x);
Double& operator=(double x);
Double& operator=(Double& x);
operator int() const;
operator double() const;
};
The following public methods are intended for use by application programs:
Double()
: default constructor
Double(Double&)
: copy constructor
Double(int)
: constructor from int
Double(double)
: constructor from double
~Double()
: destructor
Double& operator=(Double&)
: assignment operator
Double& operator=(double)
: assignment operator from double
operator double()
: cast to double
operator int()
: cast to int
The class Double
is a proxy for the internal toolbox double type. It takes care of
chores like memory release and exception catching. When a toolbox function returns a string, 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 Double
class.
| [Boolean] [Up] [String] | |
| User Feedback | |
| Copyright (c) 1998-2008 by SDC Information Systems |