Public Types | Public Member Functions | Private Attributes

mln::value::hsl_< H, S, L > Class Template Reference

#include <hsl.hh>

Inheritance diagram for mln::value::hsl_< H, S, L >:
Inheritance graph

List of all members.

Public Types

typedef Object< void > category
typedef hsl_< H, S, L > exact_t
typedef H h_type
typedef L l_type
typedef S s_type

Public Member Functions

 hsl_ ()
 Constructor without argument.
 hsl_ (const literal::zero_t &)
 hsl_ (const H &hue, const S &sat, const L &lum)
 Constructor from component values.
const H & hue () const
 Read-only access to the hue component.
H & hue ()
 Read-write access to the hue component.
L & lum ()
const L & lum () const
S & sat ()
const S & sat () const

Private Attributes

hue_
lum_
sat_

Detailed Description

template<typename H, typename S, typename L>
class mln::value::hsl_< H, S, L >

Definition at line 157 of file hsl.hh.


Member Typedef Documentation

typedef Object<void> mln::Object< hsl_< H, S, L > >::category [inherited]

Definition at line 174 of file object.hh.

typedef hsl_< H, S, L > mln::Object< hsl_< H, S, L > >::exact_t [inherited]

Definition at line 173 of file object.hh.

template<typename H, typename S, typename L>
typedef H mln::value::hsl_< H, S, L >::h_type

Definition at line 161 of file hsl.hh.

template<typename H, typename S, typename L>
typedef L mln::value::hsl_< H, S, L >::l_type

Definition at line 163 of file hsl.hh.

template<typename H, typename S, typename L>
typedef S mln::value::hsl_< H, S, L >::s_type

Definition at line 162 of file hsl.hh.


Constructor & Destructor Documentation

template<typename H, typename S, typename L>
mln::value::hsl_< H, S, L >::hsl_ (  )  [inline]

Constructor without argument.

Definition at line 166 of file hsl.hh.

template<typename H, typename S, typename L>
mln::value::hsl_< H, S, L >::hsl_ ( const literal::zero_t  )  [inline]

Definition at line 170 of file hsl.hh.

template<typename H, typename S, typename L>
mln::value::hsl_< H, S, L >::hsl_ ( const H &  hue,
const S &  sat,
const L &  lum 
) [inline]

Constructor from component values.

Definition at line 178 of file hsl.hh.


Member Function Documentation

template<typename H , typename S , typename L >
const H & mln::value::hsl_< H, S, L >::hue (  )  const

Read-only access to the hue component.

Definition at line 283 of file hsl.hh.

References mln::value::hsl_< H, S, L >::hue_.

Referenced by mln::value::operator*(), mln::value::operator+(), mln::value::operator-(), mln::value::operator/(), and mln::value::operator==().

template<typename H , typename S , typename L >
H & mln::value::hsl_< H, S, L >::hue (  ) 

Read-write access to the hue component.

Definition at line 304 of file hsl.hh.

References mln::value::hsl_< H, S, L >::hue_.

template<typename H , typename S , typename L >
L & mln::value::hsl_< H, S, L >::lum (  ) 

Definition at line 318 of file hsl.hh.

References mln::value::hsl_< H, S, L >::lum_.

template<typename H , typename S , typename L >
const L & mln::value::hsl_< H, S, L >::lum (  )  const
template<typename H , typename S , typename L >
const S & mln::value::hsl_< H, S, L >::sat (  )  const
template<typename H , typename S , typename L >
S & mln::value::hsl_< H, S, L >::sat (  ) 

Definition at line 311 of file hsl.hh.

References mln::value::hsl_< H, S, L >::sat_.


Member Data Documentation

template<typename H, typename S, typename L>
H mln::value::hsl_< H, S, L >::hue_ [private]

Definition at line 197 of file hsl.hh.

Referenced by mln::value::hsl_< H, S, L >::hue().

template<typename H, typename S, typename L>
L mln::value::hsl_< H, S, L >::lum_ [private]

Definition at line 199 of file hsl.hh.

Referenced by mln::value::hsl_< H, S, L >::lum().

template<typename H, typename S, typename L>
S mln::value::hsl_< H, S, L >::sat_ [private]

Definition at line 198 of file hsl.hh.

Referenced by mln::value::hsl_< H, S, L >::sat().