dependencysorter.h
204 // The stack of elements being analyzed (this is used to prevent restarting from scratch every cycle)
This file contains the common type defitions used on the whole framework.
A structure containing an element and the list of its dependencies.
Definition: dependencysorter.h:68
DependencySorter(const DependencySorter< ElementType > &other)
Copy constructor.
Definition: dependencysorter.h:111
const QMap< ElementType, QSet< ElementType > > elements() const
Returns the list of elements and their dependencies.
Definition: dependencysorter.h:146
ElementAndDepenciesList sortWithDependencies() const
Returns the sorted list of elements with dependencies.
Definition: dependencysorter.h:256
A class to return data sorted by dependency.
Definition: dependencysorter.h:53
ElementAndDepencies(ElementType e, QList< ElementType > d)
Constructor.
Definition: dependencysorter.h:76
DependencySorter & operator=(const DependencySorter< ElementType > &other)
Copy operator.
Definition: dependencysorter.h:122
void add(ElementType e, QList< ElementType > d)
Adds an element with a list of dependencies.
Definition: dependencysorter.h:168
void add(ElementType e, ElementType d)
Adds an element with a single dependency.
Definition: dependencysorter.h:157
QList< ElementAndDepencies > ElementAndDepenciesList
The type for the list of elements and dependencies.
Definition: dependencysorter.h:96
The exception thrown when DependencySorter finds a circular dependency.
Definition: utilitiesexceptions.h:609
QList< ElementType > sort() const
Returns the sorted list of elements.
Definition: dependencysorter.h:189
void add(ElementType e, QSet< ElementType > d)
Adds an element with a list of dependencies.
Definition: dependencysorter.h:179