#include <domino.h>
Collaboration diagram for dmn::Domino:

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. | |
|
||||||||||||
|
Constructor.
|
|
|
First half value.
|
|
|
Second half value.
|
|
|
Check if the domino has the half.
|
|
|
Check if the two halfs are the same.
|
|
|
Reverse the half values. half1 = half2, half2 = half1 |
|
||||||||||||
|
Comparision between 2 dominoes.
|
|
||||||||||||
|
Comparision between 2 dominoes.
|
1.3.4