#include <colorUnitHue.h>
Public Member Functions | |
Constructors | |
ColorUnitHue () throw () | |
Default Constructor. | |
ColorUnitHue (const ColorUnitHue &colcor_h_unit) throw () | |
Copy constructor. | |
ColorUnitHue (const char *value) throw (Exception::InvalidRange, ColorUnit::NotInHexFormat) | |
Constructor with Parameter char*. | |
ColorUnitHue (const String &value) throw (Exception::InvalidRange, ColorUnit::NotInHexFormat) | |
Constructor with Parameter String. | |
ColorUnitHue (const short value) throw (Exception::InvalidRange) | |
Constructor with Parameter short. | |
ColorUnitHue (const unsigned short value) throw (Exception::InvalidRange) | |
Constructor with Parameter unsigned short. | |
ColorUnitHue (const int value) throw (Exception::InvalidRange) | |
Constructor with Parameter int. | |
ColorUnitHue (const unsigned int value) throw (Exception::InvalidRange) | |
Constructor with Parameter unsigned int. | |
ColorUnitHue (const long value) throw (Exception::InvalidRange) | |
Constructor with Parameter long. | |
ColorUnitHue (const unsigned long value) throw (Exception::InvalidRange) | |
Constructor with Parameter unsigned long. | |
ColorUnitHue (const float value) throw (Exception::InvalidRange) | |
Constructor with Parameter float. | |
ColorUnitHue (const double value) throw (Exception::InvalidRange) | |
Constructor with Parameter double. | |
ColorUnitHue (const long double value) throw (Exception::InvalidRange) | |
Constructor with Parameter long double. | |
Destructors | |
virtual | ~ColorUnitHue () throw () |
Destructor. | |
virtual void | clear () throw () |
Explicit default initialization. | |
Converters | |
operator String () const throw () | |
Conversion to string. | |
operator short () const throw () | |
Conversion to short. | |
operator unsigned short () const throw () | |
Conversion to unsigned short. | |
operator int () const throw () | |
Conversion to int. | |
operator unsigned int () const throw () | |
Conversion to unsigned int. | |
operator long () const throw () | |
Conversion to long. | |
operator unsigned long () const throw () | |
Conversion to unsigned long. | |
operator float () const throw () | |
Conversion to float. | |
operator double () const throw () | |
Conversion to double. | |
operator long double () const throw () | |
Conversion to long double. | |
Assignment methods | |
void | set (const ColorUnitHue &color_unit_hue) throw () |
Assignment. | |
const ColorUnitHue & | operator= (const ColorUnitHue &color_unit_hue) throw () |
Assignment operator. | |
void | swap (ColorUnitHue &color_unit_hue) throw () |
Swapping of colorUnitHues. | |
void | set (const char *value) throw (Exception::InvalidRange, ColorUnit::NotInHexFormat) |
Changes the value to the value represented by a pointer value to a string. | |
const ColorUnitHue & | operator= (const char *value) throw (Exception::InvalidRange, ColorUnit::NotInHexFormat) |
Assignment operator with char*. | |
void | get (char *value) const throw () |
Inspection of the value. | |
void | set (const String &value) throw (Exception::InvalidRange, ColorUnit::NotInHexFormat) |
Changes the value . | |
const ColorUnitHue & | operator= (const String &value) throw (Exception::InvalidRange, ColorUnit::NotInHexFormat) |
Assignment operator with string. | |
void | get (String &value) const throw () |
Inspection of the value. | |
void | set (const short value) throw (Exception::InvalidRange) |
Changes the value . | |
const ColorUnitHue & | operator= (const short value) throw (Exception::InvalidRange) |
Assignment operator with short. | |
void | get (short &value) const throw () |
Inspection of the value. | |
void | set (const unsigned short value) throw (Exception::InvalidRange) |
Changes the value . | |
const ColorUnitHue & | operator= (const unsigned short value) throw (Exception::InvalidRange) |
Assignment operator with unsigned short. | |
void | get (unsigned short &value) const throw () |
Inspection of the value. | |
void | set (const int value) throw (Exception::InvalidRange) |
Changes the value . | |
const ColorUnitHue & | operator= (const int value) throw (Exception::InvalidRange) |
Assignment operator with int. | |
void | get (int &value) const throw () |
Inspection of the value. | |
void | set (const unsigned int value) throw (Exception::InvalidRange) |
Changes the value. | |
const ColorUnitHue & | operator= (const unsigned int value) throw (Exception::InvalidRange) |
Assignment operator with unsigned int. | |
void | get (unsigned int &value) const throw () |
Inspection of the value. | |
void | set (const long value) throw (Exception::InvalidRange) |
Changes the value. | |
const ColorUnitHue & | operator= (const long value) throw (Exception::InvalidRange) |
Assignment operator with long. | |
void | get (long &value) const throw () |
Inspection of the value. | |
void | set (const unsigned long value) throw (Exception::InvalidRange) |
Changes the value. | |
const ColorUnitHue & | operator= (const unsigned long value) throw (Exception::InvalidRange) |
Assignment operator with unsigned long. | |
void | get (unsigned long &value) const throw () |
Inspection of the value. | |
void | set (const float value) throw (Exception::InvalidRange) |
Changes the value. | |
const ColorUnitHue & | operator= (const float init) throw (Exception::InvalidRange) |
Assignment operator with float. | |
void | get (float &value) const throw () |
Inspection of the value. | |
void | set (const double value) throw (Exception::InvalidRange) |
Changes the value. | |
const ColorUnitHue & | operator= (const double value) throw (Exception::InvalidRange) |
Assignment operator with double. | |
void | get (double &value) const throw () |
Inspection of the value. | |
void | set (const long double value) throw (Exception::InvalidRange) |
Changes the value. | |
const ColorUnitHue & | operator= (const long double value) throw (Exception::InvalidRange) |
Assignment operator with long double. | |
void | get (long double &value) const throw () |
Inspection of the value. | |
Predicates | |
bool | operator== (const ColorUnitHue &color_unit_hue) const throw () |
Equality test. | |
bool | operator!= (const ColorUnitHue &color_unit_hue) const throw () |
Unequality test. | |
bool | operator< (const ColorUnitHue &color_unit_hue) const throw () |
Smaller test. | |
bool | operator<= (const ColorUnitHue &color_unit_hue) const throw () |
Smaller or equal test. | |
bool | operator> (const ColorUnitHue &color_unit_hue) const throw () |
Greater test. | |
bool | operator>= (const ColorUnitHue &color_unit_hue) const throw () |
Greater or equal test. | |
debuggers and diagnostics | |
virtual void | dump (std::ostream &s=std::cout, Size depth=0) const throw () |
Internal value dump. | |
Friends | |
Storers | |
std::istream & | operator>> (std::istream &s, ColorUnitHue &color_unit_hue) |
Friend stream input. | |
std::ostream & | operator<< (std::ostream &s, const ColorUnitHue &color_unit_hue) |
Friend stream output. |
The class handles the many possible variations a hue value can be set (e.g. integer, float, string values can be given as parameter). The integer values are of range 0-360
, the float values are of range 0-1.0 and the strings are given in hex format "000"-"168"
for the values 0-360
. ColorUnitHue provides certain conversion functions as well that will convert its value to the needed type.
|
Default Constructor.
|
|
Copy constructor.
|
|
Constructor with Parameter char*.
|
|
Constructor with Parameter String.
|
|
Constructor with Parameter short.
|
|
Constructor with Parameter unsigned short.
|
|
Constructor with Parameter int.
|
|
Constructor with Parameter unsigned int.
|
|
Constructor with Parameter long.
|
|
Constructor with Parameter unsigned long.
|
|
Constructor with Parameter float.
|
|
Constructor with Parameter double.
|
|
Constructor with Parameter long double.
|
|
Destructor.
|
|
Explicit default initialization. Sets the value to the default value (0). |
|
Internal value dump. Dumps the current value to the output ostream s with dumping depth depth.
|
|
Inspection of the value.
|
|
Inspection of the value.
|
|
Inspection of the value.
|
|
Inspection of the value.
|
|
Inspection of the value.
|
|
Inspection of the value.
|
|
Inspection of the value.
|
|
Inspection of the value.
|
|
Inspection of the value.
|
|
Inspection of the value.
|
|
Inspection of the value. Accesses the value by using a char pointer. Memory must be allocated for this parameter. The memory must be at least the size of 4 bytes.
|
|
Conversion to double.
|
|
Conversion to float.
|
|
Conversion to int.
|
|
Conversion to long.
|
|
Conversion to long double.
|
|
Conversion to short.
|
|
Conversion to string.
|
|
Conversion to unsigned int.
|
|
Conversion to unsigned long.
|
|
Conversion to unsigned short.
|
|
Unequality test.
|
|
Smaller test.
|
|
Smaller or equal test.
|
|
Assignment operator with long double. Calls set.
|
|
Assignment operator with double. Calls set.
|
|
Assignment operator with float. Calls set.
|
|
Assignment operator with unsigned long. Calls set.
|
|
Assignment operator with long. Calls set.
|
|
Assignment operator with unsigned int. Calls set.
|
|
Assignment operator with int. Calls set.
|
|
Assignment operator with unsigned short. Calls set.
|
|
Assignment operator with short. Calls set.
|
|
Assignment operator with string. Calls set.
|
|
Assignment operator with char*. Calls set.
|
|
Assignment operator.
|
|
Equality test.
|
|
Greater test.
|
|
Greater or equal test.
|
|
Changes the value.
|
|
Changes the value.
|
|
Changes the value.
|
|
Changes the value.
|
|
Changes the value.
|
|
Changes the value.
|
|
Changes the value .
|
|
Changes the value .
|
|
Changes the value .
|
|
Changes the value .
|
|
Changes the value to the value represented by a pointer value to a string.
|
|
Assignment.
|
|
Swapping of colorUnitHues.
|
|
Friend stream output.
Writes colorUnitHue data to the output stream s and store the value of this. The value will be stored in integer format of range
|
|
Friend stream input.
Reads colorUnitHue data from the input stream s and restore the value of this. The value will be needed in integer format of range
|