![]() |
LeechCraft
%{LEECHCRAFT_VERSION}
Modular cross-platform feature rich live environment.
|
#include "modeliterator.h"
Public Types | |
| enum | Direction { Direction::Rows, Direction::Cols } |
Public Member Functions | |
| ModelIterator (QAbstractItemModel *model, int row, int col=0, Direction dir=Direction::Rows, const QModelIndex &parent=QModelIndex()) | |
| ModelIterator & | operator++ () |
| ModelIterator | operator++ (int) |
| ModelIterator & | operator-- () |
| ModelIterator | operator-- (int) |
| ModelIterator & | operator+= (int) |
| ModelIterator & | operator-= (int) |
| int | operator- (const ModelIterator &other) const |
| bool | operator== (const ModelIterator &other) const |
| bool | operator!= (const ModelIterator &other) const |
| QModelIndex | operator* () const |
| int | GetRow () const |
| int | GetCol () const |
Definition at line 39 of file modeliterator.h.
|
strong |
| Enumerator | |
|---|---|
| Rows | |
| Cols | |
Definition at line 47 of file modeliterator.h.
| LeechCraft::Util::ModelIterator::ModelIterator | ( | QAbstractItemModel * | model, |
| int | row, | ||
| int | col = 0, |
||
| ModelIterator::Direction | dir = Direction::Rows, |
||
| const QModelIndex & | parent = QModelIndex () |
||
| ) |
Definition at line 38 of file modeliterator.cpp.
| int LeechCraft::Util::ModelIterator::GetCol | ( | ) | const |
Definition at line 114 of file modeliterator.cpp.
| int LeechCraft::Util::ModelIterator::GetRow | ( | ) | const |
Definition at line 109 of file modeliterator.cpp.
| bool LeechCraft::Util::ModelIterator::operator!= | ( | const ModelIterator & | other | ) | const |
Definition at line 99 of file modeliterator.cpp.
| QModelIndex LeechCraft::Util::ModelIterator::operator* | ( | ) | const |
Definition at line 104 of file modeliterator.cpp.
| ModelIterator & LeechCraft::Util::ModelIterator::operator++ | ( | ) |
Definition at line 48 of file modeliterator.cpp.
| ModelIterator LeechCraft::Util::ModelIterator::operator++ | ( | int | ) |
Definition at line 54 of file modeliterator.cpp.
| ModelIterator & LeechCraft::Util::ModelIterator::operator+= | ( | int | diff | ) |
Definition at line 74 of file modeliterator.cpp.
| int LeechCraft::Util::ModelIterator::operator- | ( | const ModelIterator & | other | ) | const |
Definition at line 86 of file modeliterator.cpp.
| ModelIterator & LeechCraft::Util::ModelIterator::operator-- | ( | ) |
Definition at line 61 of file modeliterator.cpp.
| ModelIterator LeechCraft::Util::ModelIterator::operator-- | ( | int | ) |
Definition at line 67 of file modeliterator.cpp.
| ModelIterator & LeechCraft::Util::ModelIterator::operator-= | ( | int | diff | ) |
Definition at line 80 of file modeliterator.cpp.
| bool LeechCraft::Util::ModelIterator::operator== | ( | const ModelIterator & | other | ) | const |
Definition at line 91 of file modeliterator.cpp.