![]() |
Carousel
|
This class provides methods to obtain component dependencies solving result. More...
#include <DependenciesSolvingResult.h>
Public Member Functions | |
| DependenciesSolvingResult (const QList< IComponent * > &ordered=QList< IComponent * >()) | |
| DependenciesSolvingResult (QStringList &ordered, QStringList &orphans, QStringList &missing, const QList< IComponent * > &components, bool hasCyclic=false) | |
| DependenciesSolvingResult (const DependenciesSolvingResult &other) | |
| bool | hasCyclicDependencies () const |
| QStringList | missing () const |
| const DependenciesSolvingResult & | operator= (const DependenciesSolvingResult &other) |
| QList< IComponent * > | ordered () const |
| QList< IComponent * > | orphans () const |
This class provides methods to obtain component dependencies solving result.
It contains a list of the ordered componetns - they were resolved succesfully; the list of the orphans - components those parents were not added to the solver; the list of the missing components. It also contains flag specified whether cyclic dependencis between components were found or not.
The instance of the DependenciesSolvingResult class is read-only value object.
|
explicit |
Initializes a new instance of the DependenciesSolvingResult class with ordered components if any. Otherwise - empty instance.
| DependenciesSolvingResult::DependenciesSolvingResult | ( | QStringList & | ordered, |
| QStringList & | orphans, | ||
| QStringList & | missing, | ||
| const QList< IComponent * > & | components, | ||
| bool | hasCyclic = false |
||
| ) |
Initializes a new instance of the DependenciesSolvingResult class with ordered, orphan, missing component names and the list of components which take part in the dependency solving.
| DependenciesSolvingResult::DependenciesSolvingResult | ( | const DependenciesSolvingResult & | other | ) |
Initializes a new instance of the DependenciesSolvingResult class using already existed instance.
| const DependenciesSolvingResult& DependenciesSolvingResult::operator= | ( | const DependenciesSolvingResult & | other | ) |
Initializes an existing or creates and initializes a new instance of the DependenciesSolvingResult class using already existed instance.
| bool DependenciesSolvingResult::hasCyclicDependencies | ( | ) | const |
Returns true if at least one cyclic dependency has been found during resolving. Otherwise, returns false.
false by default.
| QStringList DependenciesSolvingResult::missing | ( | ) | const |
Returns list of missing component names. Those parent components were required during resolving, but they were not added to the solver.
| QList<IComponent *> DependenciesSolvingResult::ordered | ( | ) | const |
Returns list of resolved components. The order of components depends of the resolving operation.
| QList<IComponent *> DependenciesSolvingResult::orphans | ( | ) | const |
Returns list of orphan components. They parents were missing during resolving.
1.8.5