Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
icutils Namespace Reference

Classes

struct  Node
 

Typedefs

using NodeList = std::vector<Node>
 
using AdjacencyList = std::vector<std::vector<Node*>>
 

Functions

bool containedInSameType (const QQmlType &a, const QQmlType &b)
 
template<typename ObjectContainer , typename InlineComponent >
void fillAdjacencyListForInlineComponents (ObjectContainer *objectContainer, AdjacencyList &adjacencyList, NodeList &nodes, const std::vector< InlineComponent > &allICs)
 
void topoVisit (Node *node, AdjacencyList &adjacencyList, bool &hasCycle, NodeList &nodesSorted)
 
NodeList topoSort (NodeList &nodes, AdjacencyList &adjacencyList, bool &hasCycle)
 

Typedef Documentation

◆ AdjacencyList

using icutils::AdjacencyList = std::vector<std::vector<Node*>>

Definition at line 60 of file inlinecomponentutils_p.h.

◆ NodeList

using icutils::NodeList = std::vector<Node>

Definition at line 59 of file inlinecomponentutils_p.h.

Function Documentation

◆ containedInSameType()

bool icutils::containedInSameType ( const QQmlType & a,
const QQmlType & b )
inline

Definition at line 62 of file inlinecomponentutils_p.h.

References QQmlMetaType::equalBaseUrls().

Referenced by fillAdjacencyListForInlineComponents().

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

◆ fillAdjacencyListForInlineComponents()

template<typename ObjectContainer , typename InlineComponent >
void icutils::fillAdjacencyListForInlineComponents ( ObjectContainer * objectContainer,
AdjacencyList & adjacencyList,
NodeList & nodes,
const std::vector< InlineComponent > & allICs )

Definition at line 68 of file inlinecomponentutils_p.h.

References containedInSameType(), i, QV4::CompiledData::Object::IsInlineComponentRoot, QV4::CompiledData::Object::IsPartOfInlineComponent, and Q_ASSERT.

+ Here is the call graph for this function:

◆ topoSort()

NodeList icutils::topoSort ( NodeList & nodes,
AdjacencyList & adjacencyList,
bool & hasCycle )
inline

Definition at line 137 of file inlinecomponentutils_p.h.

References topoVisit().

+ Here is the call graph for this function:

◆ topoVisit()

void icutils::topoVisit ( Node * node,
AdjacencyList & adjacencyList,
bool & hasCycle,
NodeList & nodesSorted )
inline

Definition at line 116 of file inlinecomponentutils_p.h.

References icutils::Node::hasPermanentMark(), icutils::Node::hasTemporaryMark(), icutils::Node::index(), icutils::Node::setPermanentMark(), icutils::Node::setTemporaryMark(), and topoVisit().

Referenced by topoSort(), and topoVisit().

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