mirror of
git://git.savannah.nongnu.org/eliot.git
synced 2025-01-13 20:03:23 +01:00
Rack: add operator==()
This commit is contained in:
parent
05150c4e86
commit
0cdc2b7ab4
2 changed files with 10 additions and 0 deletions
|
@ -79,3 +79,11 @@ wstring Rack::toString() const
|
|||
return rs;
|
||||
}
|
||||
|
||||
|
||||
bool Rack::operator==(const Rack &iOther) const
|
||||
{
|
||||
return m_tiles == iOther.m_tiles
|
||||
&& m_ntiles == iOther.m_ntiles;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -52,6 +52,8 @@ public:
|
|||
|
||||
wstring toString() const;
|
||||
|
||||
bool operator==(const Rack &iOther) const;
|
||||
|
||||
private:
|
||||
/// Vector indexed by tile codes, containing the number of tiles
|
||||
vector<unsigned int> m_tiles;
|
||||
|
|
Loading…
Reference in a new issue