Example #1
0
Position::Position(const Position& other)
    : m_row(other.GetRow())
    , m_column(other.GetColumn())
{}
Example #2
0
bool Position::operator!=(const Position& other) const
{
    return GetRow() != other.GetRow() || GetColumn() != other.GetColumn();
}
Example #3
0
bool Position::operator<(const Position& other) const
{
    return GetRow() < other.GetRow() || (GetRow() == other.GetRow() && GetColumn() < other.GetColumn());
}
Example #4
0
bool Position::operator==(const Position& other) const
{
    return GetRow() == other.GetRow() && GetColumn() == other.GetColumn();
}