40 Set() : std::set<T>() {}
45 Set(
const T& one_element) :
48 this->insert(one_element);
59 for(
auto it=this->cbegin(); it!=this->cend(); it++){
72 return (this->size() == 0);
82 return *(this->begin());
92 auto it = this->find(value);
93 return (it != this->end());
102 auto it = this->find(value);
103 if(it != this->end()){
115 return static_cast<int>(this->size());
void remove(const T &value)
removes every item that matches value
Definition: Set.h:100
bool contains(const T &value) const
check, if set contains a specific value
Definition: Set.h:90
T first() const
get copy of first element
Definition: Set.h:80
Set namespace defines the setting: Which key and which type.
Definition: SettingKey.h:230
bool isEmpty() const
Definition: Set.h:70
QList< T > toList() const
converts the set to a list. The order is random
Definition: Set.h:56
Set(const T &one_element)
Constructs a set with a single element.
Definition: Set.h:45
A set structure. Inherited from std::set with some useful methods. For integer and String this set is...
Definition: AbstractPlaylist.h:38
Definition: org_mpris_media_player2_adaptor.h:20