Cupt
|
relation against certain binary package More...
#include <cupt/cache/relation.hpp>
Classes | |
struct | Types |
relation type More... | |
Public Member Functions | |
Relation (pair< const char *, const char * > input) | |
constructor More... | |
Relation (Relation &&)=default | |
Relation (const Relation &)=default | |
Relation & | operator= (Relation &&)=default |
Relation & | operator= (const Relation &)=default |
virtual | ~Relation () |
destructor | |
string | toString () const |
gets the string reprentation | |
bool | isSatisfiedBy (const string &otherVersionString) const |
is relation satisfied by otherVersionString More... | |
bool | operator== (const Relation &other) const |
operator == More... | |
Public Attributes | |
string | packageName |
package name | |
Types::Type | relationType |
relation type | |
string | versionString |
version string | |
relation against certain binary package
|
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