Elemental::color_value_base Class Reference

A base class for qualified values which have representative colors. More...

#include <value.hh>

Inheritance diagram for Elemental::color_value_base:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual color get_color () const =0 throw ()
 Returns a color representing the value.

Protected Member Functions

 color_value_base (Qualifier qualifier) throw ()

Detailed Description

A base class for qualified values which have representative colors.


Constructor & Destructor Documentation

Elemental::color_value_base::color_value_base ( Qualifier  qualifier  )  throw () [protected]
Parameters:
qualifier The qualification of the initial value.

Member Function Documentation

virtual color Elemental::color_value_base::get_color (  )  const throw () [pure virtual]

Returns a color representing the value.

Derived classes must implement this function, returning a color that corresponds to the defined value. A special color should be returned if has_value() is false.

Returns:
A color structure.

Implemented in Elemental::Series, Elemental::Block, Elemental::Phase, Elemental::LatticeType, and Elemental::ColorValue.


The documentation for this class was generated from the following file:

Generated on Mon Nov 23 13:43:36 2009 for libelemental by  doxygen 1.6.1