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
qdesigner_internal::MetaEnum< IntType > Class Template Reference

#include <qdesigner_utils_p.h>

Collaboration diagram for qdesigner_internal::MetaEnum< IntType >:

Public Types

enum  SerializationMode { FullyQualified , Qualified }
using KeyToValueMap = std::map<QString, IntType, std::less<>>

Public Member Functions

 MetaEnum (const QString &enumName, const QString &scope, const QString &separator)
 MetaEnum ()=default
void addKey (IntType value, const QString &name)
std::optional< QString > valueToKey (IntType value) const
std::optional< IntType > keyToValue (QStringView key) const
const QString & enumName () const
const QString & scope () const
const QString & separator () const
const QStringList & keys () const
const KeyToValueMap & keyToValueMap () const

Protected Member Functions

void appendQualifiedName (const QString &key, SerializationMode sm, QString &target) const
const KeyToValueMap & canonicalKeyToValueMap () const

Static Protected Member Functions

static bool trimValue (QStringView *value)

Detailed Description

template<class IntType>
class qdesigner_internal::MetaEnum< IntType >

Definition at line 67 of file qdesigner_utils_p.h.

Member Typedef Documentation

◆ KeyToValueMap

template<class IntType>
using qdesigner_internal::MetaEnum< IntType >::KeyToValueMap = std::map<QString, IntType, std::less<>>

Definition at line 73 of file qdesigner_utils_p.h.

Member Enumeration Documentation

◆ SerializationMode

Enumerator
FullyQualified 
Qualified 

Definition at line 70 of file qdesigner_utils_p.h.

Constructor & Destructor Documentation

◆ MetaEnum() [1/2]

template<class IntType>
qdesigner_internal::MetaEnum< IntType >::MetaEnum ( const QString & enumName,
const QString & scope,
const QString & separator )

Definition at line 111 of file qdesigner_utils_p.h.

References MetaEnum().

Referenced by MetaEnum().

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

◆ MetaEnum() [2/2]

template<class IntType>
qdesigner_internal::MetaEnum< IntType >::MetaEnum ( )
default

Member Function Documentation

◆ addKey()

template<class IntType>
void qdesigner_internal::MetaEnum< IntType >::addKey ( IntType value,
const QString & name )

Definition at line 119 of file qdesigner_utils_p.h.

◆ appendQualifiedName()

template<class IntType>
void qdesigner_internal::MetaEnum< IntType >::appendQualifiedName ( const QString & key,
SerializationMode sm,
QString & target ) const
protected

Definition at line 164 of file qdesigner_utils_p.h.

◆ canonicalKeyToValueMap()

template<class IntType>
const KeyToValueMap & qdesigner_internal::MetaEnum< IntType >::canonicalKeyToValueMap ( ) const
inlineprotected

Definition at line 93 of file qdesigner_utils_p.h.

◆ enumName()

template<class IntType>
const QString & qdesigner_internal::MetaEnum< IntType >::enumName ( ) const
inline

Definition at line 83 of file qdesigner_utils_p.h.

◆ keys()

template<class IntType>
const QStringList & qdesigner_internal::MetaEnum< IntType >::keys ( ) const
inline

Definition at line 87 of file qdesigner_utils_p.h.

◆ keyToValue()

template<class IntType>
std::optional< IntType > qdesigner_internal::MetaEnum< IntType >::keyToValue ( QStringView key) const

Definition at line 143 of file qdesigner_utils_p.h.

◆ keyToValueMap()

template<class IntType>
const KeyToValueMap & qdesigner_internal::MetaEnum< IntType >::keyToValueMap ( ) const
inline

Definition at line 88 of file qdesigner_utils_p.h.

◆ scope()

template<class IntType>
const QString & qdesigner_internal::MetaEnum< IntType >::scope ( ) const
inline

Definition at line 84 of file qdesigner_utils_p.h.

◆ separator()

template<class IntType>
const QString & qdesigner_internal::MetaEnum< IntType >::separator ( ) const
inline

Definition at line 85 of file qdesigner_utils_p.h.

◆ trimValue()

template<class IntType>
bool qdesigner_internal::MetaEnum< IntType >::trimValue ( QStringView * value)
staticprotected

Definition at line 156 of file qdesigner_utils_p.h.

◆ valueToKey()

template<class IntType>
std::optional< QString > qdesigner_internal::MetaEnum< IntType >::valueToKey ( IntType value) const

Definition at line 133 of file qdesigner_utils_p.h.


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