![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qmetaassociation.h>
Public Types | |
| using | Iterator = QTaggedIterator<AssociativeIterator, void> |
| using | RandomAccessIterator = QTaggedIterator<AssociativeIterator, std::random_access_iterator_tag> |
| using | BidirectionalIterator = QTaggedIterator<AssociativeIterator, std::bidirectional_iterator_tag> |
| using | ForwardIterator = QTaggedIterator<AssociativeIterator, std::forward_iterator_tag> |
| using | InputIterator = QTaggedIterator<AssociativeIterator, std::input_iterator_tag> |
| using | ConstIterator = QTaggedIterator<AssociativeConstIterator, void> |
| using | RandomAccessConstIterator = QTaggedIterator<AssociativeConstIterator, std::random_access_iterator_tag> |
| using | BidirectionalConstIterator = QTaggedIterator<AssociativeConstIterator, std::bidirectional_iterator_tag> |
| using | ForwardConstIterator = QTaggedIterator<AssociativeConstIterator, std::forward_iterator_tag> |
| using | InputConstIterator = QTaggedIterator<AssociativeConstIterator, std::input_iterator_tag> |
| using | iterator = Iterator |
| using | const_iterator = ConstIterator |
Public Member Functions | |
| template<class T> | |
| Association (const T *p) | |
| template<class T> | |
| Association (T *p) | |
| Association () | |
| template<typename Pointer> | |
| Association (const QMetaAssociation &metaAssociation, Pointer iterable) | |
| Association (const QMetaAssociation &metaAssociation, QMetaType metaType, void *iterable) | |
| Association (const QMetaAssociation &metaAssociation, QMetaType metaType, const void *iterable) | |
| Association (QIterable< QMetaAssociation > &&other) | |
| Association & | operator= (QIterable< QMetaAssociation > &&other) |
| ConstIterator | begin () const |
| ConstIterator | end () const |
| ConstIterator | constBegin () const |
| ConstIterator | constEnd () const |
| Iterator | mutableBegin () |
| Iterator | mutableEnd () |
| ConstIterator | find (const QVariant &key) const |
| Retrieves a ConstIterator pointing to the element at the given key, or the end of the container if that key does not exist. | |
| ConstIterator | constFind (const QVariant &key) const |
| Iterator | mutableFind (const QVariant &key) |
| Retrieves an iterator pointing to the element at the given key, or the end of the container if that key does not exist. | |
| bool | containsKey (const QVariant &key) const |
Returns true if the container has an entry with the given key, or false otherwise. | |
| void | insertKey (const QVariant &key) |
| Inserts a new entry with the given key, or resets the mapped value of any existing entry with the given key to the default constructed mapped value. | |
| void | removeKey (const QVariant &key) |
| Removes the entry with the given key from the container. | |
| QVariant | value (const QVariant &key) const |
| Retrieves the mapped value at the given key, or a QVariant of a default-constructed instance of the mapped type, if the key does not exist. | |
| void | setValue (const QVariant &key, const QVariant &mapped) |
| Sets the mapped value associated with key to mapped, if possible. | |
| Public Member Functions inherited from QIterable< QMetaAssociation > | |
| QIterable (const QMetaAssociation &metaContainer, const T *p) | |
| bool | canInputIterate () const |
| Returns whether the container has an input iterator. | |
| bool | canForwardIterate () const |
| Returns whether it is possible to iterate over the container in forward direction. | |
| bool | canReverseIterate () const |
| Returns whether it is possible to iterate over the container in reverse. | |
| bool | canRandomAccessIterate () const |
| Returns whether it is possible to efficiently skip over multiple values using and iterator. | |
| const void * | constIterable () const |
| void * | mutableIterable () |
| QConstIterator< QMetaAssociation > | constBegin () const |
| Returns a QConstIterator for the beginning of the container. | |
| QConstIterator< QMetaAssociation > | constEnd () const |
| Returns a Qterable::QConstIterator for the end of the container. | |
| QIterator< QMetaAssociation > | mutableBegin () |
| Returns a QIterator for the beginning of the container. | |
| QIterator< QMetaAssociation > | mutableEnd () |
| Returns a QMetaSequence::Iterable::iterator for the end of the container. | |
| qsizetype | size () const |
| Returns the number of values in the container. | |
| void | clear () |
| Clears the container. | |
| QMetaAssociation | metaContainer () const |
Additional Inherited Members | |
| Protected Attributes inherited from QIterable< QMetaAssociation > | |
| uint | m_revision |
| QtPrivate::QConstPreservingPointer< void, quint16 > | m_iterable |
| QMetaAssociation | m_metaContainer |
Definition at line 127 of file qmetaassociation.h.
| using QtMetaContainerPrivate::Association::BidirectionalConstIterator = QTaggedIterator<AssociativeConstIterator, std::bidirectional_iterator_tag> |
Definition at line 138 of file qmetaassociation.h.
| using QtMetaContainerPrivate::Association::BidirectionalIterator = QTaggedIterator<AssociativeIterator, std::bidirectional_iterator_tag> |
Definition at line 132 of file qmetaassociation.h.
Definition at line 143 of file qmetaassociation.h.
| using QtMetaContainerPrivate::Association::ConstIterator = QTaggedIterator<AssociativeConstIterator, void> |
Definition at line 136 of file qmetaassociation.h.
| using QtMetaContainerPrivate::Association::ForwardConstIterator = QTaggedIterator<AssociativeConstIterator, std::forward_iterator_tag> |
Definition at line 139 of file qmetaassociation.h.
| using QtMetaContainerPrivate::Association::ForwardIterator = QTaggedIterator<AssociativeIterator, std::forward_iterator_tag> |
Definition at line 133 of file qmetaassociation.h.
| using QtMetaContainerPrivate::Association::InputConstIterator = QTaggedIterator<AssociativeConstIterator, std::input_iterator_tag> |
Definition at line 140 of file qmetaassociation.h.
| using QtMetaContainerPrivate::Association::InputIterator = QTaggedIterator<AssociativeIterator, std::input_iterator_tag> |
Definition at line 134 of file qmetaassociation.h.
| using QtMetaContainerPrivate::Association::Iterator = QTaggedIterator<AssociativeIterator, void> |
Definition at line 130 of file qmetaassociation.h.
Definition at line 142 of file qmetaassociation.h.
| using QtMetaContainerPrivate::Association::RandomAccessConstIterator = QTaggedIterator<AssociativeConstIterator, std::random_access_iterator_tag> |
Definition at line 137 of file qmetaassociation.h.
| using QtMetaContainerPrivate::Association::RandomAccessIterator = QTaggedIterator<AssociativeIterator, std::random_access_iterator_tag> |
Definition at line 131 of file qmetaassociation.h.
|
inline |
Definition at line 146 of file qmetaassociation.h.
|
inline |
Definition at line 149 of file qmetaassociation.h.
|
inline |
Definition at line 151 of file qmetaassociation.h.
|
inline |
Definition at line 154 of file qmetaassociation.h.
|
inline |
Definition at line 159 of file qmetaassociation.h.
|
inline |
Definition at line 164 of file qmetaassociation.h.
References Association().
Referenced by Association().
|
inline |
Definition at line 169 of file qmetaassociation.h.
References Association().
Referenced by Association().
|
inline |
Definition at line 179 of file qmetaassociation.h.
|
inline |
Definition at line 182 of file qmetaassociation.h.
|
inline |
Definition at line 183 of file qmetaassociation.h.
|
inline |
Definition at line 199 of file qmetaassociation.h.
|
inline |
Returns true if the container has an entry with the given key, or false otherwise.
If the key isn't convertible to the expected type, false is returned.
Definition at line 210 of file qmetaassociation.h.
|
inline |
Definition at line 180 of file qmetaassociation.h.
|
inline |
Retrieves a ConstIterator pointing to the element at the given key, or the end of the container if that key does not exist.
If the key isn't convertible to the expected type, the end of the container is returned.
Definition at line 188 of file qmetaassociation.h.
Inserts a new entry with the given key, or resets the mapped value of any existing entry with the given key to the default constructed mapped value.
The key is coerced to the expected type: If it isn't convertible, a default value is inserted.
Definition at line 219 of file qmetaassociation.h.
|
inline |
Definition at line 185 of file qmetaassociation.h.
|
inline |
Definition at line 186 of file qmetaassociation.h.
Retrieves an iterator pointing to the element at the given key, or the end of the container if that key does not exist.
If the key isn't convertible to the expected type, the end of the container is returned.
Definition at line 201 of file qmetaassociation.h.
|
inline |
Definition at line 173 of file qmetaassociation.h.
Removes the entry with the given key from the container.
The key is coerced to the expected type: If it isn't convertible, the default value is removed.
Definition at line 226 of file qmetaassociation.h.
|
inline |
Sets the mapped value associated with key to mapped, if possible.
Inserts a new entry if none exists yet, for the given key. If the key is not convertible to the key type, the value for the default-constructed key type is overwritten.
Definition at line 242 of file qmetaassociation.h.
Retrieves the mapped value at the given key, or a QVariant of a default-constructed instance of the mapped type, if the key does not exist.
If the key is not convertible to the key type, the mapped value associated with the default-constructed key is returned.
Definition at line 233 of file qmetaassociation.h.