11 #include <QModelIndex> 32 QAbstractItemModel *
const Model_;
33 const QModelIndex Parent_;
65 ModelIterator (QAbstractItemModel *model,
int row,
int col = 0,
66 Direction dir = Direction::Rows,
const QModelIndex& parent = {});
73 ModelIterator& operator++ ();
80 ModelIterator operator++ (
int);
87 ModelIterator& operator-- ();
94 ModelIterator operator-- (
int);
101 ModelIterator& operator+= (
int count);
109 ModelIterator& operator-= (
int count);
123 int operator- (
const ModelIterator& other)
const;
172 int& GetIncrementable ();
173 int GetIncrementable ()
const;
180 struct iterator_traits<
LC::Util::ModelIterator>
constexpr detail::AggregateType< detail::AggregateFunction::Count, Ptr > count
Direction
The direction of traversal.
bool operator!=(const ModelIterator &left, const ModelIterator &right)
random_access_iterator_tag iterator_category
auto operator*(const AF &af, const AV &av) -> decltype(GSL(af, av))
bool operator==(const ModelIterator &left, const ModelIterator &right)
Provides an iterator-based API to a Qt model.