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

dmn::Domino Class Reference

Domino. More...

#include <domino.h>

Collaboration diagram for dmn::Domino:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Domino ()
 Constructor.

 Domino (const HalfDomino &half1, const HalfDomino &half2)
 Constructor.

HalfDomino half1 () const
 First half value.

HalfDomino half2 () const
 Second half value.

bool is_double () const
 Check if the two halfs are the same.

bool has_half (const HalfDomino &half) const
 Check if the domino has the half.

void reverse ()
 Reverse the half values.


Friends

bool operator== (const Domino &domino1, const Domino &domino2)
 Comparision between 2 dominoes.

bool operator!= (const Domino &domino1, const Domino &domino2)
 Comparision between 2 dominoes.


Detailed Description

Domino.


Constructor & Destructor Documentation

dmn::Domino::Domino const HalfDomino half1,
const HalfDomino half2
 

Constructor.

Parameters:
half1 first half value
half2 second half value


Member Function Documentation

HalfDomino dmn::Domino::half1  )  const
 

First half value.

Returns:
the half value

HalfDomino dmn::Domino::half2  )  const
 

Second half value.

Returns:
the half value

bool dmn::Domino::has_half const HalfDomino half  )  const
 

Check if the domino has the half.

Returns:
true if the domino has the half, else false

bool dmn::Domino::is_double  )  const
 

Check if the two halfs are the same.

Returns:
true if the first half and the second one are the same, or false if not

void dmn::Domino::reverse  ) 
 

Reverse the half values.

half1 = half2, half2 = half1


Friends And Related Function Documentation

bool operator!= const Domino domino1,
const Domino domino2
[friend]
 

Comparision between 2 dominoes.

Parameters:
domino1 first domino
domino2 second domino
Returns:
true if the dominoes are different, false if not

bool operator== const Domino domino1,
const Domino domino2
[friend]
 

Comparision between 2 dominoes.

Parameters:
domino1 first domino
domino2 second domino
Returns:
true if the dominoes are equals, false if not


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