Classes | Functions

mln::value::qt Namespace Reference

Classes

struct  rgb32
 Color class for red-green-blue where every component is n-bit encoded. More...

Functions

rgb32::interop operator+ (const rgb32 &lhs, const rgb32 &rhs)
 Addition.
rgb32::interop operator+ (const rgb32 &lhs, const rgb32::interop &rhs)
rgb32::interop operator+ (const rgb32::interop &lhs, const rgb32 &rhs)
std::ostream & operator<< (std::ostream &ostr, const rgb32 &c)
 Print an rgb32 c into the output stream ostr.
std::istream & operator>> (std::istream &istr, rgb32 &c)

rgb32::interop operator- (const rgb32 &lhs, const rgb32 &rhs)
 Subtraction.
rgb32::interop operator- (const rgb32::interop &lhs, const rgb32 &rhs)
rgb32::interop operator- (const rgb32 &lhs, const rgb32::interop &rhs)

template<typename S >
rgb32::interop operator* (const rgb32 &lhs, const mln::value::scalar_< S > &s)
 Product.
template<typename S >
rgb32::interop operator* (const mln::value::scalar_< S > &s, const rgb32 &lhs)

template<typename S >
rgb32::interop operator/ (const rgb32 &lhs, const mln::value::scalar_< S > &s)
 Division.

Function Documentation

template<typename S >
rgb32::interop mln::value::qt::operator* ( const rgb32 &  lhs,
const mln::value::scalar_< S > &  s 
) [inline]
template<typename S >
rgb32::interop mln::value::qt::operator* ( const mln::value::scalar_< S > &  s,
const rgb32 &  lhs 
) [inline]
rgb32::interop mln::value::qt::operator+ ( const rgb32 &  lhs,
const rgb32::interop &  rhs 
) [inline]
rgb32::interop mln::value::qt::operator+ ( const rgb32::interop &  lhs,
const rgb32 &  rhs 
) [inline]
rgb32::interop mln::value::qt::operator+ ( const rgb32 &  lhs,
const rgb32 &  rhs 
) [inline]

Addition.

{

Definition at line 660 of file rgb32.hh.

References mln::value::internal::value_like_< V, C, N, E >::to_interop().

rgb32::interop mln::value::qt::operator- ( const rgb32::interop &  lhs,
const rgb32 &  rhs 
) [inline]
rgb32::interop mln::value::qt::operator- ( const rgb32 &  lhs,
const rgb32::interop &  rhs 
) [inline]
rgb32::interop mln::value::qt::operator- ( const rgb32 &  lhs,
const rgb32 &  rhs 
) [inline]

Subtraction.

Definition at line 687 of file rgb32.hh.

References mln::value::internal::value_like_< V, C, N, E >::to_interop().

template<typename S >
rgb32::interop mln::value::qt::operator/ ( const rgb32 &  lhs,
const mln::value::scalar_< S > &  s 
) [inline]
std::ostream & mln::value::qt::operator<< ( std::ostream &  ostr,
const rgb32 &  c 
) [inline]

Print an rgb32 c into the output stream ostr.

Parameters:
[in,out] ostr An output stream.
[in] c An rgb32.
Returns:
The modified output stream ostr.

Definition at line 740 of file rgb32.hh.

References mln::value::qt::rgb32::blue(), mln::debug::format(), mln::value::qt::rgb32::green(), and mln::value::qt::rgb32::red().

std::istream & mln::value::qt::operator>> ( std::istream &  istr,
rgb32 &  c 
) [inline]