Qt 6.x
The Qt SDK
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 = typedef std::vector<std::vector<Node*> >

Definition at line 59 of file inlinecomponentutils_p.h.

◆ NodeList

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

Definition at line 58 of file inlinecomponentutils_p.h.

Function Documentation

◆ containedInSameType()

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

Definition at line 61 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 67 of file inlinecomponentutils_p.h.

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

+ Here is the call graph for this function:

◆ topoSort()

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

Definition at line 136 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 115 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: