QSet< T > Class Template Reference
#include <qcontainerfwd.h>
template<class T>
class QSet< T >
Definition at line 62 of file qcontainerfwd.h.
Definition at line 60 of file qset.h.
60 : q_hash(other.q_hash) {}
QSet<T>& operator= |
( |
const QSet< T > & |
other | ) |
|
|
inline |
Definition at line 62 of file qset.h.
63 { q_hash = other.q_hash;
return *
this; }
Definition at line 68 of file qset.h.
68 { q_hash.
swap(other.q_hash); }
void swap(QHash< Key, T > &other)
bool operator== |
( |
const QSet< T > & |
other | ) |
const |
|
inline |
Definition at line 70 of file qset.h.
71 {
return q_hash == other.q_hash; }
bool operator!= |
( |
const QSet< T > & |
other | ) |
const |
|
inline |
Definition at line 72 of file qset.h.
73 {
return q_hash != other.q_hash; }
Definition at line 75 of file qset.h.
75 {
return q_hash.
size(); }
Q_INLINE_TEMPLATE void reserve |
( |
int |
size | ) |
|
|
inline |
bool isDetached |
( |
| ) |
const |
|
inline |
void setSharable |
( |
bool |
sharable | ) |
|
|
inline |
Definition at line 85 of file qset.h.
void setSharable(bool sharable)
bool remove |
( |
const T & |
value | ) |
|
|
inline |
Definition at line 89 of file qset.h.
int remove(const Key &key)
GLsizei const GLfloat * value
bool contains |
( |
const T & |
value | ) |
const |
|
inline |
Definition at line 91 of file qset.h.
GLsizei const GLfloat * value
bool contains(const Key &key) const
Q_INLINE_TEMPLATE bool contains |
( |
const QSet< T > & |
set | ) |
const |
Definition at line 284 of file qset.h.
287 while (i != other.constEnd()) {
bool contains(const T &value) const
Definition at line 168 of file qset.h.
const_iterator constBegin() const
Definition at line 169 of file qset.h.
169 {
return q_hash.
end(); }
Definition at line 170 of file qset.h.
170 {
return q_hash.
end(); }
Definition at line 171 of file qset.h.
const_iterator constEnd() const
Definition at line 172 of file qset.h.
173 {
return q_hash.
erase(reinterpret_cast<typename Hash::iterator &>(i)); }
iterator erase(iterator it)
Definition at line 178 of file qset.h.
178 {
return q_hash.
count(); }
int count(const Key &key) const
Definition at line 179 of file qset.h.
GLsizei const GLfloat * value
friend class const_iterator
iterator insert(const Key &key, const T &value)
Definition at line 182 of file qset.h.
iterator find(const Key &key)
GLsizei const GLfloat * value
Definition at line 183 of file qset.h.
iterator find(const Key &key)
GLsizei const GLfloat * value
Definition at line 184 of file qset.h.
iterator find(const T &value)
GLsizei const GLfloat * value
Q_INLINE_TEMPLATE QSet< T > & unite |
( |
const QSet< T > & |
other | ) |
|
Definition at line 244 of file qset.h.
248 while (i != copy.constBegin()) {
const_iterator insert(const T &value)
Q_INLINE_TEMPLATE QSet< T > & intersect |
( |
const QSet< T > & |
other | ) |
|
Definition at line 256 of file qset.h.
261 while (i != copy1.constBegin()) {
263 if (!copy2.contains(*i))
Q_INLINE_TEMPLATE QSet< T > & subtract |
( |
const QSet< T > & |
other | ) |
|
Definition at line 270 of file qset.h.
275 while (i != copy1.constBegin()) {
277 if (copy2.contains(*i))
QSet<T>& operator<< |
( |
const T & |
value | ) |
|
|
inline |
Definition at line 201 of file qset.h.
GLsizei const GLfloat * value
const_iterator insert(const T &value)
QSet<T>& operator|= |
( |
const QSet< T > & |
other | ) |
|
|
inline |
Definition at line 202 of file qset.h.
202 {
unite(other);
return *
this; }
QSet< T > & unite(const QSet< T > &other)
QSet<T>& operator|= |
( |
const T & |
value | ) |
|
|
inline |
Definition at line 203 of file qset.h.
GLsizei const GLfloat * value
const_iterator insert(const T &value)
QSet<T>& operator&= |
( |
const QSet< T > & |
other | ) |
|
|
inline |
Definition at line 204 of file qset.h.
QSet< T > & intersect(const QSet< T > &other)
QSet<T>& operator&= |
( |
const T & |
value | ) |
|
|
inline |
Definition at line 205 of file qset.h.
bool contains(const T &value) const
GLsizei const GLfloat * value
const_iterator insert(const T &value)
QSet<T>& operator+= |
( |
const QSet< T > & |
other | ) |
|
|
inline |
Definition at line 207 of file qset.h.
207 {
unite(other);
return *
this; }
QSet< T > & unite(const QSet< T > &other)
QSet<T>& operator+= |
( |
const T & |
value | ) |
|
|
inline |
Definition at line 208 of file qset.h.
GLsizei const GLfloat * value
const_iterator insert(const T &value)
QSet<T>& operator-= |
( |
const QSet< T > & |
other | ) |
|
|
inline |
Definition at line 209 of file qset.h.
QSet< T > & subtract(const QSet< T > &other)
QSet<T>& operator-= |
( |
const T & |
value | ) |
|
|
inline |
Definition at line 210 of file qset.h.
210 {
remove(
value);
return *
this; }
GLsizei const GLfloat * value
QSet<T> operator| |
( |
const QSet< T > & |
other | ) |
const |
|
inline |
Definition at line 211 of file qset.h.
212 {
QSet<T> result = *
this; result |= other;
return result; }
QSet<T> operator& |
( |
const QSet< T > & |
other | ) |
const |
|
inline |
Definition at line 213 of file qset.h.
214 {
QSet<T> result = *
this; result &= other;
return result; }
QSet<T> operator+ |
( |
const QSet< T > & |
other | ) |
const |
|
inline |
Definition at line 215 of file qset.h.
216 {
QSet<T> result = *
this; result += other;
return result; }
QSet<T> operator- |
( |
const QSet< T > & |
other | ) |
const |
|
inline |
Definition at line 217 of file qset.h.
218 {
QSet<T> result = *
this; result -= other;
return result; }
QSet<T> operator| |
( |
const QSet< T > & |
other | ) |
|
|
inline |
Definition at line 221 of file qset.h.
222 {
QSet<T> result = *
this; result |= other;
return result; }
QSet<T> operator& |
( |
const QSet< T > & |
other | ) |
|
|
inline |
Definition at line 223 of file qset.h.
224 {
QSet<T> result = *
this; result &= other;
return result; }
QSet<T> operator+ |
( |
const QSet< T > & |
other | ) |
|
|
inline |
Definition at line 225 of file qset.h.
226 {
QSet<T> result = *
this; result += other;
return result; }
QSet<T> operator- |
( |
const QSet< T > & |
other | ) |
|
|
inline |
Definition at line 227 of file qset.h.
228 {
QSet<T> result = *
this; result -= other;
return result; }
Q_OUTOFLINE_TEMPLATE QList< T > toList |
( |
| ) |
const |
Definition at line 296 of file qset.h.
const_iterator constEnd() const
const_iterator constBegin() const
Definition at line 232 of file qset.h.
QList< T > toList() const
QSet< T > fromList |
( |
const QList< T > & |
list | ) |
|
|
static |
The documentation for this class was generated from the following files: