Multi diag tools
|
LanguageCodeList holds a list of LanguageCode. More...
#include <LanguageCodeList.h>
Public Types | |
using | value_type = std::vector< LanguageCode >::value_type |
Value type. | |
using | const_iterator = std::vector< LanguageCode >::const_iterator |
STL const iterator. | |
Public Member Functions | |
LanguageCodeList ()=default | |
Construct a empty list of language codes. | |
LanguageCodeList (const LanguageCodeList &other)=default | |
Copy construct a language code list from other. | |
LanguageCodeList & | operator= (const LanguageCodeList &other)=default |
Copy assign other language code list to this. | |
LanguageCodeList (LanguageCodeList &&other)=default | |
Move construct a language code list from other. | |
LanguageCodeList & | operator= (LanguageCodeList &&other)=default |
Move assign other language code list to this. | |
void | addLanguageCode (const LanguageCode &languageCode) |
Add a language code to this list. More... | |
int | count () const noexcept |
Get count of language codes in this list. | |
bool | isEmpty () const noexcept |
Check if this list is empty. | |
const LanguageCode & | at (int index) const |
Access laguage code at index. More... | |
bool | containsLanguageCode (const LanguageCode &languageCode) const noexcept |
Check if this list contains languageCode. | |
QStringList | toStringList () const |
Get a string list representation of this list. | |
const_iterator | cbegin () const |
Get a STL const iterator to the beginning of this list. | |
const_iterator | cend () const |
Get a STL iterator past the end of this list. | |
const_iterator | begin () const |
Get a STL const iterator to the beginning of this list. | |
const_iterator | end () const |
Get a STL iterator past the end of this list. | |
LanguageCodeList holds a list of LanguageCode.
Definition at line 35 of file LanguageCodeList.h.
void Mdt::Translation::LanguageCodeList::addLanguageCode | ( | const LanguageCode & | languageCode | ) |
Add a language code to this list.
If languageCode allready exists in this list, it will not be added again.
Definition at line 27 of file LanguageCodeList.cpp.
|
inline |
Access laguage code at index.
Definition at line 92 of file LanguageCodeList.h.