Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QMetaAssociation Class Reference

#include <qmetacontainer.h>

Inheritance diagram for QMetaAssociation:
Collaboration diagram for QMetaAssociation:

Public Member Functions

 QMetaAssociation ()=default
 QMetaAssociation (const QtMetaContainerPrivate::QMetaAssociationInterface *d)
QMetaType keyMetaType () const
QMetaType mappedMetaType () const
bool canInsertKey () const
void insertKey (void *container, const void *key) const
bool canRemoveKey () const
void removeKey (void *container, const void *key) const
bool canContainsKey () const
bool containsKey (const void *container, const void *key) const
bool canGetMappedAtKey () const
void mappedAtKey (const void *container, const void *key, void *mapped) const
bool canSetMappedAtKey () const
void setMappedAtKey (void *container, const void *key, const void *mapped) const
bool canGetKeyAtIterator () const
void keyAtIterator (const void *iterator, void *key) const
bool canGetKeyAtConstIterator () const
void keyAtConstIterator (const void *iterator, void *key) const
bool canGetMappedAtIterator () const
void mappedAtIterator (const void *iterator, void *mapped) const
bool canGetMappedAtConstIterator () const
void mappedAtConstIterator (const void *iterator, void *mapped) const
bool canSetMappedAtIterator () const
void setMappedAtIterator (const void *iterator, const void *mapped) const
bool canCreateIteratorAtKey () const
voidcreateIteratorAtKey (void *container, const void *key) const
bool canCreateConstIteratorAtKey () const
voidcreateConstIteratorAtKey (const void *container, const void *key) const
const QtMetaContainerPrivate::QMetaAssociationInterfaceiface () const
Public Member Functions inherited from QMetaContainer
 QMetaContainer ()=default
 QMetaContainer (const QtMetaContainerPrivate::QMetaContainerInterface *d)
bool hasInputIterator () const
 Returns true if the underlying container provides at least an input iterator as defined by std::input_iterator_tag, otherwise returns false.
bool hasForwardIterator () const
 Returns true if the underlying container provides at least a forward iterator as defined by std::forward_iterator_tag, otherwise returns false.
bool hasBidirectionalIterator () const
 Returns true if the underlying container provides a bi-directional iterator or a random access iterator as defined by std::bidirectional_iterator_tag and std::random_access_iterator_tag, respectively.
bool hasRandomAccessIterator () const
 Returns true if the underlying container provides a random access iterator as defined by std::random_access_iterator_tag, otherwise returns false.
bool hasSize () const
 Returns true if the container can be queried for its size, false otherwise.
qsizetype size (const void *container) const
 Returns the number of values in the given container if it can be queried for its size.
bool canClear () const
 Returns true if the container can be cleared, false otherwise.
void clear (void *container) const
 Clears the given container if it can be cleared.
bool hasIterator () const
 Returns true if the underlying container offers a non-const iterator, false otherwise.
voidbegin (void *container) const
 Creates and returns a non-const iterator pointing to the beginning of container.
voidend (void *container) const
 Creates and returns a non-const iterator pointing to the end of container.
void destroyIterator (const void *iterator) const
 Destroys a non-const iterator previously created using \l begin() or \l end().
bool compareIterator (const void *i, const void *j) const
 Returns true if the non-const iterators i and j point to the same value in the container they are iterating over, otherwise returns false.
void copyIterator (void *target, const void *source) const
 Copies the non-const iterator source into the non-const iterator target.
void advanceIterator (void *iterator, qsizetype step) const
 Advances the non-const iterator by step steps.
qsizetype diffIterator (const void *i, const void *j) const
 Returns the distance between the non-const iterators i and j, the equivalent of i - j.
bool hasConstIterator () const
 Returns true if the underlying container offers a const iterator, false otherwise.
voidconstBegin (const void *container) const
 Creates and returns a const iterator pointing to the beginning of container.
voidconstEnd (const void *container) const
 Creates and returns a const iterator pointing to the end of container.
void destroyConstIterator (const void *iterator) const
 Destroys a const iterator previously created using \l constBegin() or \l constEnd().
bool compareConstIterator (const void *i, const void *j) const
 Returns true if the const iterators i and j point to the same value in the container they are iterating over, otherwise returns false.
void copyConstIterator (void *target, const void *source) const
 Copies the const iterator source into the const iterator target.
void advanceConstIterator (void *iterator, qsizetype step) const
 Advances the const iterator by step steps.
qsizetype diffConstIterator (const void *i, const void *j) const
 Returns the distance between the const iterators i and j, the equivalent of i - j.

Static Public Member Functions

template<typename T>
static constexpr QMetaAssociation fromContainer ()

Friends

bool comparesEqual (const QMetaAssociation &lhs, const QMetaAssociation &rhs) noexcept

Additional Inherited Members

Protected Attributes inherited from QMetaContainer
const QtMetaContainerPrivate::QMetaContainerInterfaced_ptr = nullptr

Detailed Description

Definition at line 1002 of file qmetacontainer.h.

Constructor & Destructor Documentation

◆ QMetaAssociation() [1/2]

QMetaAssociation::QMetaAssociation ( )
default

◆ QMetaAssociation() [2/2]

QMetaAssociation::QMetaAssociation ( const QtMetaContainerPrivate::QMetaAssociationInterface * d)
inlineexplicit

Definition at line 1006 of file qmetacontainer.h.

Member Function Documentation

◆ canContainsKey()

bool QMetaAssociation::canContainsKey ( ) const
inline

Definition at line 1041 of file qmetacontainer.h.

◆ canCreateConstIteratorAtKey()

bool QMetaAssociation::canCreateConstIteratorAtKey ( ) const
inline

Definition at line 1158 of file qmetacontainer.h.

◆ canCreateIteratorAtKey()

bool QMetaAssociation::canCreateIteratorAtKey ( ) const
inline

Definition at line 1144 of file qmetacontainer.h.

◆ canGetKeyAtConstIterator()

bool QMetaAssociation::canGetKeyAtConstIterator ( ) const
inline

Definition at line 1092 of file qmetacontainer.h.

◆ canGetKeyAtIterator()

bool QMetaAssociation::canGetKeyAtIterator ( ) const
inline

Definition at line 1079 of file qmetacontainer.h.

◆ canGetMappedAtConstIterator()

bool QMetaAssociation::canGetMappedAtConstIterator ( ) const
inline

Definition at line 1118 of file qmetacontainer.h.

◆ canGetMappedAtIterator()

bool QMetaAssociation::canGetMappedAtIterator ( ) const
inline

Definition at line 1105 of file qmetacontainer.h.

◆ canGetMappedAtKey()

bool QMetaAssociation::canGetMappedAtKey ( ) const
inline

Definition at line 1055 of file qmetacontainer.h.

◆ canInsertKey()

bool QMetaAssociation::canInsertKey ( ) const
inline

Definition at line 1017 of file qmetacontainer.h.

◆ canRemoveKey()

bool QMetaAssociation::canRemoveKey ( ) const
inline

Definition at line 1029 of file qmetacontainer.h.

◆ canSetMappedAtIterator()

bool QMetaAssociation::canSetMappedAtIterator ( ) const
inline

Definition at line 1131 of file qmetacontainer.h.

◆ canSetMappedAtKey()

bool QMetaAssociation::canSetMappedAtKey ( ) const
inline

Definition at line 1067 of file qmetacontainer.h.

◆ containsKey()

bool QMetaAssociation::containsKey ( const void * container,
const void * key ) const
inline

Definition at line 1047 of file qmetacontainer.h.

◆ createConstIteratorAtKey()

void * QMetaAssociation::createConstIteratorAtKey ( const void * container,
const void * key ) const
inline

Definition at line 1165 of file qmetacontainer.h.

◆ createIteratorAtKey()

void * QMetaAssociation::createIteratorAtKey ( void * container,
const void * key ) const
inline

Definition at line 1151 of file qmetacontainer.h.

◆ fromContainer()

template<typename T>
constexpr QMetaAssociation QMetaAssociation::fromContainer ( )
inlinestaticconstexpr

Definition at line 1009 of file qmetacontainer.h.

◆ iface()

const QtMetaContainerPrivate::QMetaAssociationInterface * QMetaAssociation::iface ( ) const
inline

Definition at line 1172 of file qmetacontainer.h.

◆ insertKey()

void QMetaAssociation::insertKey ( void * container,
const void * key ) const
inline

Definition at line 1023 of file qmetacontainer.h.

◆ keyAtConstIterator()

void QMetaAssociation::keyAtConstIterator ( const void * iterator,
void * key ) const
inline

Definition at line 1099 of file qmetacontainer.h.

◆ keyAtIterator()

void QMetaAssociation::keyAtIterator ( const void * iterator,
void * key ) const
inline

Definition at line 1086 of file qmetacontainer.h.

◆ keyMetaType()

QMetaType QMetaAssociation::keyMetaType ( ) const

Returns the meta type for keys in the container.

Definition at line 837 of file qmetacontainer.cpp.

◆ mappedAtConstIterator()

void QMetaAssociation::mappedAtConstIterator ( const void * iterator,
void * mapped ) const
inline

Definition at line 1125 of file qmetacontainer.h.

◆ mappedAtIterator()

void QMetaAssociation::mappedAtIterator ( const void * iterator,
void * mapped ) const
inline

Definition at line 1112 of file qmetacontainer.h.

◆ mappedAtKey()

void QMetaAssociation::mappedAtKey ( const void * container,
const void * key,
void * mapped ) const
inline

Definition at line 1061 of file qmetacontainer.h.

◆ mappedMetaType()

QMetaType QMetaAssociation::mappedMetaType ( ) const

Returns the meta type for mapped values in the container.

Definition at line 848 of file qmetacontainer.cpp.

◆ removeKey()

void QMetaAssociation::removeKey ( void * container,
const void * key ) const
inline

Definition at line 1035 of file qmetacontainer.h.

◆ setMappedAtIterator()

void QMetaAssociation::setMappedAtIterator ( const void * iterator,
const void * mapped ) const
inline

Definition at line 1138 of file qmetacontainer.h.

◆ setMappedAtKey()

void QMetaAssociation::setMappedAtKey ( void * container,
const void * key,
const void * mapped ) const
inline

Definition at line 1073 of file qmetacontainer.h.

◆ comparesEqual

bool comparesEqual ( const QMetaAssociation & lhs,
const QMetaAssociation & rhs )
friend

Definition at line 1175 of file qmetacontainer.h.


The documentation for this class was generated from the following files: