51 Set(
const T& one_element) :
54 this->insert(one_element);
65 for(
auto it=this->begin(); it!=this->end(); it++){
78 return (this->size() == 0);
88 return *(this->begin());
98 auto it = this->find(value);
99 return (it != this->end());
106 void remove(
const T& value)
108 auto it = this->find(value);
109 if(it != this->end()){
121 return static_cast<int>(this->size());
Set()
Standard constructor.
Definition: Set.h:43
bool contains(const T &value) const
check, if set contains a specific value
Definition: Set.h:96
The MetaDataList class.
Definition: AbstractPlaylist.h:34
T first() const
get copy of first element
Definition: Set.h:86
Set namespace defines the setting: Which key and which type.
Definition: SettingKey.h:200
bool isEmpty() const
Definition: Set.h:76
QList< T > toList() const
converts the set to a list. The order is random
Definition: Set.h:62
Set(const T &one_element)
Constructs a set with a single element.
Definition: Set.h:51
A set structure. Inherited from std::set with some useful methods. For integer and String this set is...
Definition: AbstractPlaylist.h:37
Definition: org_mpris_media_player2_adaptor.h:20