OpenFOAM logo
The Open Source CFD Toolbox
  Programmer’s C++ Doxygen OpenCFD Solutions Contact OpenFOAM

colour Class Reference

Collaboration diagram for colour:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 61 of file colour.H.


Public Member Functions

 colour ()
 Construct null.
 colour (const word &nam, const scalar r, const scalar g, const scalar b)
 Construct from components.
 colour (Istream &)
 Construct from Istream.
 colour (const colour &)
 Construct as copy.
 ~colour ()
const word & name () const
scalar r () const
scalar g () const
scalar b () const
void operator= (const colour &)

Friends

bool operator== (const colour &, const colour &)
bool operator!= (const colour &, const colour &)
Istream & operator>> (Istream &, colour &)
Ostream & operator<< (Ostream &, const colour &)

Constructor & Destructor Documentation

colour (  )  [inline]

Construct null.

Definition at line 49 of file colourI.H.

colour ( const word &  nam,
const scalar  r,
const scalar  g,
const scalar  b 
) [inline]

Construct from components.

Definition at line 60 of file colourI.H.

colour ( Istream &   )  [inline]

Construct from Istream.

Read beginning of colour

Read end of colour

Check state of Istream

Definition at line 75 of file colourI.H.

colour ( const colour &   )  [inline]

Construct as copy.

Definition at line 93 of file colourI.H.

~colour (  )  [inline]

Definition at line 104 of file colourI.H.


Member Function Documentation

const word & name (  )  const [inline]

Definition at line 110 of file colourI.H.

scalar r (  )  const [inline]

Definition at line 115 of file colourI.H.

scalar g (  )  const [inline]

Definition at line 120 of file colourI.H.

scalar b (  )  const [inline]

Definition at line 125 of file colourI.H.

References colour::g_, colour::name_, and colour::r_.

void operator= ( const colour &   )  [inline]

Definition at line 133 of file colourI.H.


Friends And Related Function Documentation

bool operator== ( const colour &  c1,
const colour &  c2 
) [friend]

Definition at line 144 of file colourI.H.

bool operator!= ( const colour &  c1,
const colour &  c2 
) [friend]

Definition at line 156 of file colourI.H.

Istream& operator>> ( Istream &  is,
colour &  c 
) [friend]

Definition at line 164 of file colourI.H.

Ostream& operator<< ( Ostream &  os,
const colour &  c 
) [friend]

Definition at line 183 of file colourI.H.


The documentation for this class was generated from the following files: Copyright © 2000-2007 OpenCFD Ltd