![]() |
Sayonara Player
|
A set structure. Inherited from std::set with some useful methods. For integer and String this set is ordered. More...
#include <Set.h>
Public Member Functions | |
Set (const T &singleElement) | |
Constructs a set with a single element. More... | |
QList< T > | toList () const |
converts the set to a list. The order is random More... | |
bool | isEmpty () const |
T | first () const |
get copy of first element More... | |
bool | contains (const T &value) const |
check, if set contains a specific value More... | |
void | remove (const T &value) |
removes every item that matches value More... | |
Util::Set< T > & | operator<< (const T &t) |
template<template< typename > class A> | |
Util::Set< T > & | operator<< (const A< T > &container) |
int | count () const |
A set structure. Inherited from std::set with some useful methods. For integer and String this set is ordered.
Constructs a set with a single element.
singleElement | the first element |
|
inline |
check, if set contains a specific value
value |
|
inline |
get copy of first element
|
inline |
|
inline |
removes every item that matches value
value |