![]() |
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 128 of file qmetaassociation.h.
| using QtMetaContainerPrivate::Association::BidirectionalConstIterator = QTaggedIterator<AssociativeConstIterator, std::bidirectional_iterator_tag> |
Definition at line 139 of file qmetaassociation.h.
| using QtMetaContainerPrivate::Association::BidirectionalIterator = QTaggedIterator<AssociativeIterator, std::bidirectional_iterator_tag> |
Definition at line 133 of file qmetaassociation.h.
Definition at line 144 of file qmetaassociation.h.
| using QtMetaContainerPrivate::Association::ConstIterator = QTaggedIterator<AssociativeConstIterator, void> |
Definition at line 137 of file qmetaassociation.h.
| using QtMetaContainerPrivate::Association::ForwardConstIterator = QTaggedIterator<AssociativeConstIterator, std::forward_iterator_tag> |
Definition at line 140 of file qmetaassociation.h.
| using QtMetaContainerPrivate::Association::ForwardIterator = QTaggedIterator<AssociativeIterator, std::forward_iterator_tag> |
Definition at line 134 of file qmetaassociation.h.
| using QtMetaContainerPrivate::Association::InputConstIterator = QTaggedIterator<AssociativeConstIterator, std::input_iterator_tag> |
Definition at line 141 of file qmetaassociation.h.
| using QtMetaContainerPrivate::Association::InputIterator = QTaggedIterator<AssociativeIterator, std::input_iterator_tag> |
Definition at line 135 of file qmetaassociation.h.
| using QtMetaContainerPrivate::Association::Iterator = QTaggedIterator<AssociativeIterator, void> |
Definition at line 131 of file qmetaassociation.h.
Definition at line 143 of file qmetaassociation.h.
| using QtMetaContainerPrivate::Association::RandomAccessConstIterator = QTaggedIterator<AssociativeConstIterator, std::random_access_iterator_tag> |
Definition at line 138 of file qmetaassociation.h.
| using QtMetaContainerPrivate::Association::RandomAccessIterator = QTaggedIterator<AssociativeIterator, std::random_access_iterator_tag> |
Definition at line 132 of file qmetaassociation.h.
|
inline |
Definition at line 147 of file qmetaassociation.h.
|
inline |
Definition at line 150 of file qmetaassociation.h.
|
inline |
Definition at line 152 of file qmetaassociation.h.
|
inline |
Definition at line 155 of file qmetaassociation.h.
|
inline |
Definition at line 160 of file qmetaassociation.h.
|
inline |
Definition at line 165 of file qmetaassociation.h.
References Association().
Referenced by Association().
|
inline |
Definition at line 170 of file qmetaassociation.h.
References Association().
Referenced by Association().
|
inline |
Definition at line 180 of file qmetaassociation.h.
|
inline |
Definition at line 183 of file qmetaassociation.h.
|
inline |
Definition at line 184 of file qmetaassociation.h.
|
inline |
Definition at line 200 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 211 of file qmetaassociation.h.
|
inline |
Definition at line 181 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 189 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 220 of file qmetaassociation.h.
|
inline |
Definition at line 186 of file qmetaassociation.h.
|
inline |
Definition at line 187 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 202 of file qmetaassociation.h.
|
inline |
Definition at line 174 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 227 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 243 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 234 of file qmetaassociation.h.