46 Set(
const T& singleElement) :
49 this->insert(singleElement);
59 for(
auto it = this->cbegin(); it != this->cend(); it++)
72 return (this->size() == 0);
81 return *(this->begin());
91 auto it = this->find(value);
92 return (it != this->end());
101 auto it = this->find(value);
102 if(it != this->end())
114 template<
template<
typename>
class A>
117 for(
const T& t: container)
127 return static_cast<int>(this->size());
Definition EngineUtils.h:33
A set structure. Inherited from std::set with some useful methods. For integer and String this set is...
Definition SetFwd.h:27
Set(const T &singleElement)
Constructs a set with a single element.
Definition Set.h:46
bool contains(const T &value) const
check, if set contains a specific value
Definition Set.h:89
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
T first() const
get copy of first element
Definition Set.h:79
void remove(const T &value)
removes every item that matches value
Definition Set.h:99
Helper functions.
Definition MetaTypeRegistry.h:25