Qt 6.x
The Qt SDK
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
 Returns the meta type for keys in the container.
 
QMetaType mappedMetaType () const
 Returns the meta type for mapped values in the container.
 
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 operator== (const QMetaAssociation &a, const QMetaAssociation &b)
 
bool operator!= (const QMetaAssociation &a, const QMetaAssociation &b)
 

Additional Inherited Members

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

Detailed Description

Definition at line 1004 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 1008 of file qmetacontainer.h.

Member Function Documentation

◆ canContainsKey()

bool QMetaAssociation::canContainsKey ( ) const
inline

Definition at line 1043 of file qmetacontainer.h.

References d.

◆ canCreateConstIteratorAtKey()

bool QMetaAssociation::canCreateConstIteratorAtKey ( ) const
inline

Definition at line 1160 of file qmetacontainer.h.

References d.

◆ canCreateIteratorAtKey()

bool QMetaAssociation::canCreateIteratorAtKey ( ) const
inline

Definition at line 1146 of file qmetacontainer.h.

References d.

◆ canGetKeyAtConstIterator()

bool QMetaAssociation::canGetKeyAtConstIterator ( ) const
inline

Definition at line 1094 of file qmetacontainer.h.

References d.

◆ canGetKeyAtIterator()

bool QMetaAssociation::canGetKeyAtIterator ( ) const
inline

Definition at line 1081 of file qmetacontainer.h.

References d.

◆ canGetMappedAtConstIterator()

bool QMetaAssociation::canGetMappedAtConstIterator ( ) const
inline

Definition at line 1120 of file qmetacontainer.h.

References d.

◆ canGetMappedAtIterator()

bool QMetaAssociation::canGetMappedAtIterator ( ) const
inline

Definition at line 1107 of file qmetacontainer.h.

References d.

◆ canGetMappedAtKey()

bool QMetaAssociation::canGetMappedAtKey ( ) const
inline

Definition at line 1057 of file qmetacontainer.h.

References d.

◆ canInsertKey()

bool QMetaAssociation::canInsertKey ( ) const
inline

Definition at line 1019 of file qmetacontainer.h.

References d.

◆ canRemoveKey()

bool QMetaAssociation::canRemoveKey ( ) const
inline

Definition at line 1031 of file qmetacontainer.h.

References d.

◆ canSetMappedAtIterator()

bool QMetaAssociation::canSetMappedAtIterator ( ) const
inline

Definition at line 1133 of file qmetacontainer.h.

References d.

◆ canSetMappedAtKey()

bool QMetaAssociation::canSetMappedAtKey ( ) const
inline

Definition at line 1069 of file qmetacontainer.h.

References d.

◆ containsKey()

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

Definition at line 1049 of file qmetacontainer.h.

References d.

Referenced by QAssociativeIterable::containsKey().

+ Here is the caller graph for this function:

◆ createConstIteratorAtKey()

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

Definition at line 1167 of file qmetacontainer.h.

References d.

Referenced by QAssociativeIterable::find().

+ Here is the caller graph for this function:

◆ createIteratorAtKey()

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

Definition at line 1153 of file qmetacontainer.h.

References d.

Referenced by QAssociativeIterable::mutableFind().

+ Here is the caller graph for this function:

◆ fromContainer()

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

Definition at line 1011 of file qmetacontainer.h.

◆ iface()

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

Definition at line 1183 of file qmetacontainer.h.

References d.

Referenced by keyMetaType(), and mappedMetaType().

+ Here is the caller graph for this function:

◆ insertKey()

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

Definition at line 1025 of file qmetacontainer.h.

References d.

Referenced by QAssociativeIterable::insertKey().

+ Here is the caller graph for this function:

◆ keyAtConstIterator()

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

Definition at line 1101 of file qmetacontainer.h.

References d.

◆ keyAtIterator()

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

Definition at line 1088 of file qmetacontainer.h.

References d.

◆ keyMetaType()

QMetaType QMetaAssociation::keyMetaType ( ) const

Returns the meta type for keys in the container.

Definition at line 814 of file qmetacontainer.cpp.

References iface(), and QtMetaContainerPrivate::QMetaAssociationInterface::keyMetaType.

Referenced by QAssociativeIterable::containsKey(), QAssociativeIterable::find(), QAssociativeIterable::insertKey(), QAssociativeIterable::mutableFind(), QAssociativeIterable::removeKey(), QAssociativeIterable::setValue(), and QAssociativeIterable::value().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ mappedAtConstIterator()

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

Definition at line 1127 of file qmetacontainer.h.

References d.

◆ mappedAtIterator()

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

Definition at line 1114 of file qmetacontainer.h.

References d.

◆ mappedAtKey()

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

Definition at line 1063 of file qmetacontainer.h.

References d.

Referenced by QAssociativeIterable::value().

+ Here is the caller graph for this function:

◆ mappedMetaType()

QMetaType QMetaAssociation::mappedMetaType ( ) const

Returns the meta type for mapped values in the container.

Definition at line 824 of file qmetacontainer.cpp.

References iface(), and QtMetaContainerPrivate::QMetaAssociationInterface::mappedMetaType.

Referenced by QAssociativeIterable::setValue(), and QAssociativeIterable::value().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ removeKey()

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

Definition at line 1037 of file qmetacontainer.h.

References d.

Referenced by QAssociativeIterable::removeKey().

+ Here is the caller graph for this function:

◆ setMappedAtIterator()

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

Definition at line 1140 of file qmetacontainer.h.

References d.

◆ setMappedAtKey()

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

Definition at line 1075 of file qmetacontainer.h.

References d.

Referenced by QAssociativeIterable::setValue().

+ Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ operator!=

bool operator!= ( const QMetaAssociation a,
const QMetaAssociation b 
)
friend

Definition at line 1178 of file qmetacontainer.h.

◆ operator==

bool operator== ( const QMetaAssociation a,
const QMetaAssociation b 
)
friend

Definition at line 1174 of file qmetacontainer.h.


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