Cupt
Public Types | Public Member Functions | 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 Types

typedef internal::BasePackageIterator< Versioniterator
 

Public Member Functions

 Package ()
 constructor
 
virtual ~Package ()
 destructor
 
vector< const Version * > getVersions () const
 gets list of versions
 
const VersiongetSpecificVersion (const string &versionString) const
 gets version with a certain Version::versionString More...
 
iterator begin () const
 
iterator end () const
 

Detailed Description

a container for all versions of the same package name

Member Function Documentation

◆ getSpecificVersion()

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: