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
QQmlJS::ContextualTypes Struct Reference

#include <qqmljscontextualtypes_p.h>

Collaboration diagram for QQmlJS::ContextualTypes:

Public Types

enum  CompileContext { INTERNAL , QML }

Public Member Functions

 ContextualTypes (CompileContext context, const QHash< QString, ImportedScope< QQmlJSScope::ConstPtr > > &types, const QMultiHash< QQmlJSScope::ConstPtr, QString > &names, const QQmlJSScope::ConstPtr &arrayType)
CompileContext context () const
QQmlJSScope::ConstPtr arrayType () const
bool hasType (const QString &name) const
ImportedScope< QQmlJSScope::ConstPtrtype (const QString &name) const
QString name (const QQmlJSScope::ConstPtr &type) const
void setType (const QString &name, const ImportedScope< QQmlJSScope::ConstPtr > &type)
void clearType (const QString &name)
bool isNullType (const QString &name) const
void addTypes (ContextualTypes &&types)
void addTypes (const ContextualTypes &types)
const QHash< QString, ImportedScope< QQmlJSScope::ConstPtr > > & types () const
const auto & names () const
void clearTypes ()

Detailed Description

Maps type names to types and the compile context of the types. The context can be INTERNAL (for c++ and synthetic jsrootgen types) or QML (for qml types).

Definition at line 29 of file qqmljscontextualtypes_p.h.

Member Enumeration Documentation

◆ CompileContext

Enumerator
INTERNAL 
QML 

Definition at line 31 of file qqmljscontextualtypes_p.h.

Constructor & Destructor Documentation

◆ ContextualTypes()

QQmlJS::ContextualTypes::ContextualTypes ( CompileContext context,
const QHash< QString, ImportedScope< QQmlJSScope::ConstPtr > > & types,
const QMultiHash< QQmlJSScope::ConstPtr, QString > & names,
const QQmlJSScope::ConstPtr & arrayType )
inline

Definition at line 33 of file qqmljscontextualtypes_p.h.

References ContextualTypes().

Referenced by ContextualTypes().

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

Member Function Documentation

◆ addTypes() [1/2]

void QQmlJS::ContextualTypes::addTypes ( const ContextualTypes & types)
inline

Definition at line 80 of file qqmljscontextualtypes_p.h.

◆ addTypes() [2/2]

void QQmlJS::ContextualTypes::addTypes ( ContextualTypes && types)
inline

Definition at line 73 of file qqmljscontextualtypes_p.h.

◆ arrayType()

QQmlJSScope::ConstPtr QQmlJS::ContextualTypes::arrayType ( ) const
inline

Definition at line 45 of file qqmljscontextualtypes_p.h.

◆ clearType()

void QQmlJS::ContextualTypes::clearType ( const QString & name)
inline

Definition at line 58 of file qqmljscontextualtypes_p.h.

◆ clearTypes()

void QQmlJS::ContextualTypes::clearTypes ( )
inline

Definition at line 90 of file qqmljscontextualtypes_p.h.

◆ context()

CompileContext QQmlJS::ContextualTypes::context ( ) const
inline

Definition at line 44 of file qqmljscontextualtypes_p.h.

◆ hasType()

bool QQmlJS::ContextualTypes::hasType ( const QString & name) const
inline

Definition at line 47 of file qqmljscontextualtypes_p.h.

◆ isNullType()

bool QQmlJS::ContextualTypes::isNullType ( const QString & name) const
inline

Definition at line 67 of file qqmljscontextualtypes_p.h.

◆ name()

QString QQmlJS::ContextualTypes::name ( const QQmlJSScope::ConstPtr & type) const
inline

Definition at line 50 of file qqmljscontextualtypes_p.h.

◆ names()

const auto & QQmlJS::ContextualTypes::names ( ) const
inline

Definition at line 88 of file qqmljscontextualtypes_p.h.

◆ setType()

void QQmlJS::ContextualTypes::setType ( const QString & name,
const ImportedScope< QQmlJSScope::ConstPtr > & type )
inline

Definition at line 52 of file qqmljscontextualtypes_p.h.

◆ type()

ImportedScope< QQmlJSScope::ConstPtr > QQmlJS::ContextualTypes::type ( const QString & name) const
inline

Definition at line 49 of file qqmljscontextualtypes_p.h.

◆ types()

const QHash< QString, ImportedScope< QQmlJSScope::ConstPtr > > & QQmlJS::ContextualTypes::types ( ) const
inline

Definition at line 87 of file qqmljscontextualtypes_p.h.


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