a container for all versions of the same package name More...
#include <cupt/cache/package.hpp>
Public Member Functions | |
Package (const shared_ptr< const string > &binaryArchitecture) | |
virtual | ~Package () |
destructor | |
void | addEntry (const Version::InitializationParameters &) |
adds new element (version initialization parameters) to the container | |
vector< shared_ptr< const Version > > | getVersions () const |
gets list of versions | |
shared_ptr< const Version > | getSpecificVersion (const string &versionString) const |
gets version with a certain Version::versionString | |
Static Public Attributes | |
static bool | memoize |
memoize parsed versions |
a container for all versions of the same package name
cupt::cache::Package::Package | ( | const shared_ptr< const string > & | binaryArchitecture | ) |
constructor
binaryArchitecture | binary architecture of the system |
shared_ptr< const Version > cupt::cache::Package::getSpecificVersion | ( | const string & | versionString | ) | const |
gets version with a certain Version::versionString
versionString | version string |