Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

dmn::HalfDomino Class Reference

Each part of the domino. More...

#include <domino.h>

List of all members.

Public Member Functions

 HalfDomino ()
 Constructor.

 HalfDomino (const int half)
 Constructor.

int half () const
 Half value.

bool is_valid () const
 Check if the half value is valid.

 operator int () const
 Converts the half in his value.


Friends

bool operator== (const HalfDomino &halfdomino1, const HalfDomino &halfdomino2)
 Comparision between 2 halfs.

bool operator!= (const HalfDomino &halfdomino1, const HalfDomino &halfdomino2)
 Comparision between 2 halfs.


Detailed Description

Each part of the domino.


Constructor & Destructor Documentation

dmn::HalfDomino::HalfDomino const int  half  ) 
 

Constructor.

Parameters:
half half value


Member Function Documentation

int dmn::HalfDomino::half  )  const
 

Half value.

Returns:
the half value

bool dmn::HalfDomino::is_valid  )  const
 

Check if the half value is valid.

Returns:
true if it's valid, or false if not


Friends And Related Function Documentation

bool operator!= const HalfDomino halfdomino1,
const HalfDomino halfdomino2
[friend]
 

Comparision between 2 halfs.

Parameters:
halfdomino1 first half
halfdomino2 seconde half
Returns:
true if the halfs are different, false if not

bool operator== const HalfDomino halfdomino1,
const HalfDomino halfdomino2
[friend]
 

Comparision between 2 halfs.

Parameters:
halfdomino1 first half
halfdomino2 second half
Returns:
true if the halfs are equals, false if not


The documentation for this class was generated from the following file:
Generated on Fri Dec 26 22:55:28 2003 for dmn by doxygen 1.3.4