|
QObject * | getItem (int index) |
|
void | insertItem (int index, QObject *obj) |
|
QObject * | item (int index) |
|
bool | releaseItem (QObject *obj) |
|
iterator | begin () |
| Returns an STL-style iterator pointing to the first item in the hash. More...
|
|
const_iterator | begin () const |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
|
|
int | capacity () const |
| Returns the number of buckets in the QHash's internal hash table. More...
|
|
void | clear () |
| Removes all items from the hash. More...
|
|
const_iterator | constBegin () const |
| Returns a const STL-style iterator pointing to the first item in the hash. More...
|
|
const_iterator | constEnd () const |
| Returns a const STL-style iterator pointing to the imaginary item after the last item in the hash. More...
|
|
const_iterator | constFind (const int &key) const |
| Returns an iterator pointing to the item with the key in the hash. More...
|
|
bool | contains (const int &key) const |
| Returns true if the hash contains an item with the key; otherwise returns false. More...
|
|
int | count (const int &key) const |
| Returns the number of items associated with the key. More...
|
|
int | count () const |
| Same as size(). More...
|
|
void | detach () |
| Detaches this hash from any other hashes with which it may share data. More...
|
|
bool | empty () const |
| This function is provided for STL compatibility. More...
|
|
iterator | end () |
| Returns an STL-style iterator pointing to the imaginary item after the last item in the hash. More...
|
|
const_iterator | end () const |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
|
|
iterator | erase (iterator it) |
| Removes the (key, value) pair associated with the iterator pos from the hash, and returns an iterator to the next item in the hash. More...
|
|
iterator | find (const int &key) |
| Returns an iterator pointing to the item with the key in the hash. More...
|
|
const_iterator | find (const int &key) const |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
|
|
iterator | insert (const int &key, const ObjectRef &value) |
| Inserts a new item with the key and a value of value. More...
|
|
iterator | insertMulti (const int &key, const ObjectRef &value) |
| Inserts a new item with the key and a value of value. More...
|
|
bool | isDetached () const |
| Returns true if the hash's internal data isn't shared with any other hash object; otherwise returns false. More...
|
|
bool | isEmpty () const |
| Returns true if the hash contains no items; otherwise returns false. More...
|
|
bool | isSharedWith (const QHash< int, ObjectRef > &other) const |
|
const int | key (const ObjectRef &value) const |
| Returns the first key mapped to value. More...
|
|
const int | key (const ObjectRef &value, const int &defaultKey) const |
| Returns the first key mapped to value, or defaultKey if the hash contains no item mapped to value. More...
|
|
QList< int > | keys () const |
| Returns a list containing all the keys in the hash, in an arbitrary order. More...
|
|
QList< int > | keys (const ObjectRef &value) const |
| Returns a list containing all the keys associated with value value, in an arbitrary order. More...
|
|
bool | operator!= (const QHash< int, ObjectRef > &other) const |
| Returns true if other is not equal to this hash; otherwise returns false. More...
|
|
QHash< int, ObjectRef > & | operator= (const QHash< int, ObjectRef > &other) |
| Assigns other to this hash and returns a reference to this hash. More...
|
|
bool | operator== (const QHash< int, ObjectRef > &other) const |
| Returns true if other is equal to this hash; otherwise returns false. More...
|
|
ObjectRef & | operator[] (const int &key) |
| Returns the value associated with the key as a modifiable reference. More...
|
|
const ObjectRef | operator[] (const int &key) const |
| Same as value(). More...
|
|
| QHash () |
| Constructs an empty hash. More...
|
|
| QHash (const QHash< int, ObjectRef > &other) |
| Constructs a copy of other. More...
|
|
int | remove (const int &key) |
| Removes all the items that have the key from the hash. More...
|
|
void | reserve (int size) |
| Ensures that the QHash's internal hash table consists of at least size buckets. More...
|
|
void | setSharable (bool sharable) |
|
int | size () const |
| Returns the number of items in the hash. More...
|
|
void | squeeze () |
| Reduces the size of the QHash's internal hash table to save memory. More...
|
|
void | swap (QHash< int, ObjectRef > &other) |
| Swaps hash other with this hash. More...
|
|
ObjectRef | take (const int &key) |
| Removes the item with the key from the hash and returns the value associated with it. More...
|
|
QList< int > | uniqueKeys () const |
| Returns a list containing all the keys in the map. More...
|
|
QHash< int, ObjectRef > & | unite (const QHash< int, ObjectRef > &other) |
| Inserts all the items in the other hash into this hash. More...
|
|
const ObjectRef | value (const int &key) const |
| Returns the value associated with the key. More...
|
|
const ObjectRef | value (const int &key, const ObjectRef &defaultValue) const |
| If the hash contains no item with the given key, the function returns defaultValue. More...
|
|
QList< ObjectRef > | values () const |
| Returns a list containing all the values in the hash, in an arbitrary order. More...
|
|
QList< ObjectRef > | values (const int &key) const |
| Returns a list of all the values associated with the key, from the most recently inserted to the least recently inserted. More...
|
|
| ~QHash () |
| Destroys the hash. More...
|
|