|
Multi diag tools
|
A list of row indexes in a item model. More...
#include <RowList.h>
Inheritance diagram for Mdt::ItemModel::RowList:
Collaboration diagram for Mdt::ItemModel::RowList:Public Member Functions | |
| RowList () noexcept=default | |
| Construct a empty list. | |
| RowList (std::initializer_list< int > list) | |
| Construct a list of rows. More... | |
| int | greatestRow () const |
| Get the greatest row. More... | |
Public Member Functions inherited from Mdt::ItemModel::RowColumnListBase | |
| RowColumnListBase () noexcept=default | |
| Construct a empty list. | |
| RowColumnListBase (std::initializer_list< int > list) | |
| Construct a list of elements. More... | |
| int | size () const |
| Get size of the list. | |
| bool | isEmpty () const |
| Check if this list is empty. | |
| int | at (int index) const |
| Get element at index. More... | |
| bool | contains (int e) const |
| Check if this list contains a element. | |
| void | append (int e) |
| Append a element to the end of this list. More... | |
| void | push_back (int e) |
| Append a element to the end of this list. More... | |
| int | greatest () const |
| Get the greatest element. More... | |
| void | clear () |
| Clear. | |
| iterator | begin () |
| Get iterator to the beginning of the list. | |
| iterator | end () |
| Get iterator to the end of the list. | |
| const_iterator | begin () const |
| Get const iterator to the beginning of the list. | |
| const_iterator | end () const |
| Get const iterator to the end of the list. | |
| const_iterator | cbegin () const |
| Get const iterator to the beginning of the list. | |
| const_iterator | cend () const |
| Get const iterator to the end of the list. | |
Static Public Member Functions | |
| static RowList | fromModelIndexList (const QModelIndexList &modelIndexList) |
| Get a list of rows from a list of QModelIndex. | |
Additional Inherited Members | |
Public Types inherited from Mdt::ItemModel::RowColumnListBase | |
| typedef std::vector< int >::iterator | iterator |
| STL iterator. | |
| typedef std::vector< int >::const_iterator | const_iterator |
| STL const iterator. | |
|
inlineexplicit |
|
inline |
1.8.11