Cupt
Public Member Functions | Static Public Attributes | List of all members
cupt::cache::Package Class Reference

a container for all versions of the same package name More...

#include <cupt/cache/package.hpp>

Inheritance diagram for cupt::cache::Package:
cupt::cache::BinaryPackage cupt::cache::SourcePackage

Public Member Functions

 Package (const shared_ptr< const string > &binaryArchitecture)
 constructor More...
 
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 VersiongetSpecificVersion (const string &versionString) const
 gets version with a certain Version::versionString More...
 

Static Public Attributes

static bool memoize
 memoize parsed versions
 

Detailed Description

a container for all versions of the same package name

Constructor & Destructor Documentation

cupt::cache::Package::Package ( const shared_ptr< const string > &  binaryArchitecture)

constructor

Parameters
binaryArchitecturebinary architecture of the system

Member Function Documentation

shared_ptr< const Version > cupt::cache::Package::getSpecificVersion ( const string &  versionString) const

gets version with a certain Version::versionString

Returns
version if found, empty pointer if not found
Parameters
versionStringversion string

The documentation for this class was generated from the following file: