56 return _index == rhs._index;
61 return _index != rhs._index;
80 : _indexPoint(indexPoint)
85 : _indexPoint(std::make_pair(row,column))
90 : _indexPoint(std::make_pair(std::move(rhs._indexPoint.first),
91 std::move(rhs._indexPoint.second)))
97 if (
this == &rhs)
return *
this;
98 _indexPoint.first = std::move(rhs._indexPoint.first);
99 _indexPoint.second = std::move(rhs._indexPoint.second);
105 return _indexPoint == rhs._indexPoint;
125 return _indexPoint.first;
130 return _indexPoint.first;
135 return _indexPoint.second;
140 return _indexPoint.second;
bool operator==(const Index &rhs) const
Equality operator. Two Index objects are equal if and only if the two underlying unsigned integer are...
indexPoint_type get() const
Explicit function to access the underlying pair of unsigned integer representing this IndexPoint obje...
bool operator==(const IndexPoint &rhs) const
Equality operator. Two IndexPoint objects are equal if and only if the two underlying pairs of unsign...
IndexPoint & operator=(IndexPoint &&rhs)
Move assignment operator. Assign IndexPoint rhs to this.
const Index & columnID() const
Function to access the second component of the underlying pair of unsigned integers representing this...
const Index & y() const
Function to access the first component of the underlying pair of unsigned integers representing this ...
const Index & x() const
Function to access the second component of the underlying pair of unsigned integers representing this...
const Index & rowID() const
Function to access the first component of the underlying pair of unsigned integers representing this ...
bool operator!=(const Index &rhs) const
Inequality operator. Two Index objects are not equal if and only if the two underlying unsigned integ...
IndexPoint()
Creates an IndexPoint with the values {0,0}.
index_type get() const
Explicit function to access the underlying unsigned integer representing this Index object...
Index()
Creates an Index with the value 0.
This class defines an two-dimensional IndexPoint, i.e. a pair of unsigned integers representing a val...
This class defines an Index, i.e. an unsigned integer representing a value in a one-dimensional index...
bool operator!=(const IndexPoint &rhs) const
Inequality operator. Two IndexPoint objects are not equal if and only if the two underlying pairs of ...
std::pair< Index, Index > indexPoint_type
Actual type used to store the pair of unsigned integers representing the IndexPoint.
size_t index_type
Actual type used to store the unsigned integer representing the Index.