color_range Class Reference

#include <color_range.hpp>

List of all members.

Public Member Functions

 color_range (Uint32 mid, Uint32 max=0x00FFFFFF, Uint32 min=0x00000000, Uint32 rep=0x00808080)
 color_range (const std::vector< Uint32 > &v)
 color_range ()
Uint32 mid () const
Uint32 max () const
Uint32 min () const
Uint32 rep () const
bool operator< (const color_range &b) const
bool operator== (const color_range &b) const
int index () const

Private Attributes

Uint32 mid_
Uint32 max_
Uint32 min_
Uint32 rep_


Detailed Description

Definition at line 37 of file color_range.hpp.


Constructor & Destructor Documentation

color_range::color_range ( Uint32  mid,
Uint32  max = 0x00FFFFFF,
Uint32  min = 0x00000000,
Uint32  rep = 0x00808080 
) [inline]

Definition at line 40 of file color_range.hpp.

color_range::color_range ( const std::vector< Uint32 > &  v  )  [inline]

Definition at line 41 of file color_range.hpp.

color_range::color_range (  )  [inline]

Definition at line 48 of file color_range.hpp.


Member Function Documentation

Uint32 color_range::mid (  )  const [inline]

Definition at line 49 of file color_range.hpp.

References mid_.

Referenced by operator<(), operator==(), and recolor_range().

Uint32 color_range::max (  )  const [inline]

Definition at line 50 of file color_range.hpp.

References max_.

Referenced by operator<(), operator==(), and recolor_range().

Uint32 color_range::min (  )  const [inline]

Definition at line 51 of file color_range.hpp.

References min_.

Referenced by operator<(), operator==(), and recolor_range().

Uint32 color_range::rep (  )  const [inline]

Definition at line 53 of file color_range.hpp.

References rep_.

Referenced by operator<(), and operator==().

bool color_range::operator< ( const color_range b  )  const [inline]

Definition at line 54 of file color_range.hpp.

References max(), max_, mid(), mid_, min(), min_, rep(), and rep_.

bool color_range::operator== ( const color_range b  )  const [inline]

Definition at line 61 of file color_range.hpp.

References max(), max_, mid(), mid_, min(), min_, rep(), and rep_.

int color_range::index (  )  const


Member Data Documentation

Uint32 color_range::mid_ [private]

Definition at line 67 of file color_range.hpp.

Referenced by mid(), operator<(), and operator==().

Uint32 color_range::max_ [private]

Definition at line 67 of file color_range.hpp.

Referenced by max(), operator<(), and operator==().

Uint32 color_range::min_ [private]

Definition at line 67 of file color_range.hpp.

Referenced by min(), operator<(), and operator==().

Uint32 color_range::rep_ [private]

Definition at line 67 of file color_range.hpp.

Referenced by operator<(), operator==(), and rep().


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

Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs