Deepsolver
|
The relation between two packages with the package reference by name. More...
Public Member Functions | |
NamedPkgRel () | |
The default constructor. | |
NamedPkgRel (const std::string &pName) | |
The constructor with package name. | |
NamedPkgRel (const std::string &pName, VerDirection t, const std::string &v) | |
The constructor with full relation specification. | |
bool | valid () const |
Checks the relation is consistent. | |
bool | verRestricted () const |
Checks if there is version restriction. | |
Public Attributes | |
std::string | pkgName |
VerDirection | type |
std::string | ver |
This class contains information about a relation between two packages. Relation data includes version restriction with version subset direction using values from the list "less", "less or equals", "equals", "greater or equals", "greater". The package reference with this class is saved through its name (there can also be a reference through index in some table).
Deepsolver::NamedPkgRel::NamedPkgRel | ( | const std::string & | pName | ) | [inline] |
[in] | pName | The name of the package to create reference to |
Deepsolver::NamedPkgRel::NamedPkgRel | ( | const std::string & | pName, |
VerDirection | t, | ||
const std::string & | v | ||
) | [inline] |
[in] | pName | The name of the package to create reference to |
[in] | t | The version subset direction |
[in] | v | The version restriction value |
bool Deepsolver::NamedPkgRel::valid | ( | ) | const [inline] |
bool Deepsolver::NamedPkgRel::verRestricted | ( | ) | const [inline] |