#include <dependency.h>
Public Member Functions | |
| Dependency () | |
| Default Constructor. | |
| Dependency (DependencyStage passedStage) | |
| Constructor to set the stage. | |
| Dependency (PMString dependency, DependencyStage passedStage) | |
| Create the dependency using the traditional portage string. | |
| bool | operator== (Dependency param) |
| The equality operator. | |
| bool | operator!= (Dependency param) |
| The non equality operator. | |
| void | AddDependency (PMString dependency) |
| Populate the packages with the dependencies detailed in dependency. | |
| void | ClearDependencies () |
| Clear all DependentPackage's. | |
| bool | SatisfyDependency (PackageVersion version) |
| Check if the version satisfies the dependency. | |
| bool | SatisfyDependency (PMString packageString) |
| Check if the package string satisfies the dependency. | |
Public Attributes | |
| std::vector< DependentPackage > | packages |
| Only contains multiple packages for ||. | |
| DependencyStage | stage |
| The stage the dependency has to be installed by. | |
|
|
Default constructor - does nothing. |
|
|
Constructor that sets the stage.
|
|
||||||||||||
|
Constructor that sets the packages up and sets the stage.
|
|
|
Adds a dependency, creates as many DependentPackages as needed, i.e. for || depends. Doesn't clear the vector of DependentPackages, so you can keep calling AddDependency() to add more.
|
|
|
Empty packages. |
|
|
Non Equality operator.
|
|
|
Equality operator.
|
|
|
Returns true if packageString satisfies the dependency.
|
|
|
Returns true if version satisfies the dependency.
|
1.4.1