|
Multi diag tools
|
List of columns in a item model that represents a foreign key. More...
#include <ForeignKey.h>
Public Types | |
| typedef ColumnList::const_iterator | const_iterator |
| STL const iterator. | |
Public Member Functions | |
| ForeignKey ()=default | |
| Construct a null foreign key. | |
| ForeignKey (std::initializer_list< int > list) | |
| Construct a foreign key. More... | |
| int | columnCount () const |
| Get count of columns. | |
| bool | isNull () const noexcept |
| Check if this foreign key is null. | |
| int | greatestColumn () const |
| Get the greates column. More... | |
| bool | containsColumn (int column) const |
| Check if this foreign key contains a column. | |
| void | clear () |
| Clear. | |
| const_iterator | begin () const |
| Get const iterator to the first column. | |
| const_iterator | end () const |
| Get const iterator to the last. | |
| const_iterator | cbegin () const |
| Get const iterator to the first column. | |
| const_iterator | cend () const |
| Get const iterator to the last. | |
| ColumnList | toColumnList () const |
| Get columns list. | |
Static Public Member Functions | |
| static ForeignKey | fromColumnList (const ColumnList &columnList) |
| Get a foreign key from a column list. | |
List of columns in a item model that represents a foreign key.
Definition at line 32 of file ForeignKey.h.
|
inlineexplicit |
Construct a foreign key.
Definition at line 49 of file ForeignKey.h.
|
inline |
Get the greates column.
Returns -1 if this list is empty.
Definition at line 72 of file ForeignKey.h.
1.8.11