Templates -- Meow  1.1.4
A C++ template contains kinds of interesting classes and functions
meow::RGB< T > Class Template Referenceabstract

#include "RGB.h"

Public Member Functions

virtual ~RGB ()
 
virtual T rMax () const =0
 
virtual T rMin () const =0
 
virtual T gMax () const =0
 
virtual T gMin () const =0
 
virtual T bMax () const =0
 
virtual T bMin () const =0
 
r () const
 
g () const
 
b () const
 
rgb (size_t i) const
 
bgr (size_t i) const
 
r (T const &val)
 
g (T const &val)
 
b (T const &val)
 
rgb (size_t i, T const &val)
 
bgr (size_t i, T const &val)
 

Protected Member Functions

 RGB ()
 
 RGB (T const &r, T const &g, T const &b)
 
 RGB (T const *rgb)
 

Protected Attributes

rgb_ [3]
 

Detailed Description

template<class T>
class meow::RGB< T >

Definition at line 5 of file RGB.h.

Constructor & Destructor Documentation

template<class T >
meow::RGB< T >::RGB ( )
inlineprotected

Definition at line 5 of file RGB.hpp.

template<class T>
meow::RGB< T >::RGB ( T const &  r,
T const &  g,
T const &  b 
)
inlineprotected

Definition at line 6 of file RGB.hpp.

template<class T>
meow::RGB< T >::RGB ( T const *  rgb)
inlineprotected

Definition at line 9 of file RGB.hpp.

template<class T>
virtual meow::RGB< T >::~RGB ( )
inlinevirtual

Definition at line 12 of file RGB.h.

Member Function Documentation

template<class T >
T meow::RGB< T >::b ( ) const
inline

Definition at line 16 of file RGB.hpp.

template<class T>
T meow::RGB< T >::b ( T const &  val)
inline

Definition at line 24 of file RGB.hpp.

template<class T >
T meow::RGB< T >::bgr ( size_t  i) const
inline

Definition at line 20 of file RGB.hpp.

template<class T>
T meow::RGB< T >::bgr ( size_t  i,
T const &  val 
)
inline

Definition at line 29 of file RGB.hpp.

template<class T>
virtual T meow::RGB< T >::bMax ( ) const
pure virtual

Implemented in meow::RGBi, and meow::RGBf.

template<class T>
virtual T meow::RGB< T >::bMin ( ) const
pure virtual

Implemented in meow::RGBi, and meow::RGBf.

template<class T >
T meow::RGB< T >::g ( ) const
inline

Definition at line 15 of file RGB.hpp.

template<class T>
T meow::RGB< T >::g ( T const &  val)
inline

Definition at line 23 of file RGB.hpp.

template<class T>
virtual T meow::RGB< T >::gMax ( ) const
pure virtual

Implemented in meow::RGBi, and meow::RGBf.

template<class T>
virtual T meow::RGB< T >::gMin ( ) const
pure virtual

Implemented in meow::RGBi, and meow::RGBf.

template<class T >
T meow::RGB< T >::r ( ) const
inline

Definition at line 14 of file RGB.hpp.

template<class T>
T meow::RGB< T >::r ( T const &  val)
inline

Definition at line 22 of file RGB.hpp.

template<class T >
T meow::RGB< T >::rgb ( size_t  i) const
inline

Definition at line 17 of file RGB.hpp.

template<class T>
T meow::RGB< T >::rgb ( size_t  i,
T const &  val 
)
inline

Definition at line 25 of file RGB.hpp.

template<class T>
virtual T meow::RGB< T >::rMax ( ) const
pure virtual

Implemented in meow::RGBi, and meow::RGBf.

template<class T>
virtual T meow::RGB< T >::rMin ( ) const
pure virtual

Implemented in meow::RGBi, and meow::RGBf.

Member Data Documentation

template<class T>
T meow::RGB< T >::rgb_[3]
protected

Definition at line 7 of file RGB.h.


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