Cupt
|
relation against certain binary package More...
#include <cupt/cache/relation.hpp>
Classes | |
struct | Types |
relation type More... | |
Public Member Functions | |
Relation (const string &input) | |
constructor | |
Relation (pair< string::const_iterator, string::const_iterator > input) | |
constructor | |
Relation (Relation &&) | |
Relation (const Relation &) | |
Relation & | operator= (Relation &&) |
Relation & | operator= (const Relation &) |
virtual | ~Relation () |
destructor | |
string | toString () const |
gets the string reprentation | |
bool | isSatisfiedBy (const string &otherVersionString) const |
is relation satisfied by otherVersionString | |
bool | operator== (const Relation &other) const |
operator == | |
Public Attributes | |
string | packageName |
package name | |
Types::Type | relationType |
relation type | |
string | versionString |
version string |
relation against certain binary package
cupt::cache::Relation::Relation | ( | const string & | input | ) | [explicit] |
cupt::cache::Relation::Relation | ( | pair< string::const_iterator, string::const_iterator > | input | ) | [explicit] |
constructor
Parses input and constructs Relation from it.
input | pair of begin iterator and end iterator of stringified relation |
bool cupt::cache::Relation::isSatisfiedBy | ( | const string & | otherVersionString | ) | const |
is relation satisfied by otherVersionString
This method checks relationType and versionString against otherVersionString.
otherVersionString | version string to compare |
true
if satisfied, false
if not bool cupt::cache::Relation::operator== | ( | const Relation & | other | ) | const |
operator ==
other | relation to compare with |
true
if this relation is equal to other, false
otherwise