A list of column indexes in a item model. More...
#include <ColumnList.h>
Public Member Functions | |
ColumnList () noexcept=default | |
Construct a empty list. | |
ColumnList (std::initializer_list< int > list) | |
Construct a list of columns. More... | |
int | greatestColumn () const |
Get the greatest column. More... | |
![]() | |
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. | |
Additional Inherited Members | |
![]() | |
typedef std::vector< int >::iterator | iterator |
STL iterator. | |
typedef std::vector< int >::const_iterator | const_iterator |
STL const iterator. | |
A list of column indexes in a item model.
Definition at line 32 of file ColumnList.h.
|
inlineexplicit |
Construct a list of columns.
Definition at line 45 of file ColumnList.h.
|
inline |
Get the greatest column.
Returns -1 if this list is empty.
Definition at line 58 of file ColumnList.h.