Deepsolver
Public Member Functions | Public Attributes
Deepsolver::NamedPkgRel Class Reference

The relation between two packages with the package reference by name. More...

List of all members.

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

Detailed Description

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).

See also:
IdPkgRel

Constructor & Destructor Documentation

Deepsolver::NamedPkgRel::NamedPkgRel ( const std::string &  pName) [inline]
Parameters:
[in]pNameThe name of the package to create reference to
Deepsolver::NamedPkgRel::NamedPkgRel ( const std::string &  pName,
VerDirection  t,
const std::string &  v 
) [inline]
Parameters:
[in]pNameThe name of the package to create reference to
[in]tThe version subset direction
[in]vThe version restriction value

Member Function Documentation

bool Deepsolver::NamedPkgRel::valid ( ) const [inline]
Returns:
Non-zero if there are no consistency breaks or zero otherwise
bool Deepsolver::NamedPkgRel::verRestricted ( ) const [inline]
Returns:
Non-zero if the version is restricted with this relation