LeechCraft  %{LEECHCRAFT_VERSION}
Modular cross-platform feature rich live environment.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
LeechCraft::Util::ModelIterator Class Reference

#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())
 
ModelIteratoroperator++ ()
 
ModelIterator operator++ (int)
 
ModelIteratoroperator-- ()
 
ModelIterator operator-- (int)
 
ModelIteratoroperator+= (int)
 
ModelIteratoroperator-= (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
 

Detailed Description

Definition at line 39 of file modeliterator.h.

Member Enumeration Documentation

Enumerator
Rows 
Cols 

Definition at line 47 of file modeliterator.h.

Constructor & Destructor Documentation

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.

Member Function Documentation

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.


The documentation for this class was generated from the following files: