6#include <QtCore/QPoint>
44 operator QSize()
const;
49 operator QPoint()
const;
54 operator QPointF()
const;
91 SetAt(0, size.width());
92 SetAt(1, size.height());
138 return (!
operator<(index) && !
operator==(index));
144 return (
operator<(index) ||
operator==(index));
150 return (!
operator<(index) ||
operator==(index));
162inline CIndex2d::operator QSize()
const
164 return QSize(GetX(), GetY());
168inline CIndex2d::operator QPoint()
const
170 return QPoint(GetX(), GetY());
174inline CIndex2d::operator QPointF()
const
176 return QPointF(GetX(), GetY());
Index implementation for addressing elements in 2D-space.
bool operator>=(const CIndex2d &index) const
CIndex2d & operator=(const TIndex< 2 > &index)
Assign value from a general defined 2D-index.
bool operator<=(const CIndex2d &index) const
bool operator>(const CIndex2d &index) const
bool operator<(const CIndex2d &index) const
Multidimensional index used to addressing fixed-size array.
void SetAt(int index, int value)
Set element at specified index.
int GetAt(int index) const
Get element stored at specified index.
TIndex & operator=(const TIndex &index)=default