zypp::Repository Class Reference

#include <Repository.h>

Inheritance diagram for zypp::Repository:
[legend]

List of all members.

Public Types

typedef
repo::RepositoryImpl 
Impl
typedef
repo::RepositoryImpl_Ptr 
Impl_Ptr
typedef unsigned long NumericId

Public Member Functions

 Repository ()
 Repository (const Impl_Ptr &impl_r)
NumericId numericId () const
 Runtime unique numeric Repository Id.
const ResStoreresolvables () const
const RepoInfoinfo () const
const std::list
< packagedelta::PatchRpm > & 
patchRpms () const
const std::list
< packagedelta::DeltaRpm > & 
deltaRpms () const

Static Public Attributes

static const Repository noRepository
 A dummy Repository (Id 0) providing nothing, doing nothing.

Private Member Functions

friend b () const
bool boolTest () const
 SafeBool test.

Private Attributes

RW_pointer< Impl,
rw_pointer::Intrusive
< Impl > > 
_pimpl
 Pointer to implementation.

Related Functions

(Note that these are not member functions.)

std::ostream & operator<< (std::ostream &str, const Repository &obj)
bool operator== (const Repository &lhs, const Repository &rhs)
bool operator!= (const Repository &lhs, const Repository &rhs)
bool operator< (const Repository &lhs, const Repository &rhs)


Detailed Description

Definition at line 24 of file Repository.h.


Member Typedef Documentation

typedef repo::RepositoryImpl zypp::Repository::Impl

Definition at line 27 of file Repository.h.

typedef repo::RepositoryImpl_Ptr zypp::Repository::Impl_Ptr

Definition at line 28 of file Repository.h.

typedef unsigned long zypp::Repository::NumericId

Definition at line 57 of file Repository.h.


Constructor & Destructor Documentation

zypp::Repository::Repository (  ) 

Default ctor: noRepository.

See also:
RepoManager::createFromCache.

Definition at line 20 of file Repository.cc.

zypp::Repository::Repository ( const Impl_Ptr impl_r  )  [explicit]

Factory ctor taking a RepositoryImpl. This is quite low level. You usually want to use RepoManager to manage the repositories.

See also:
RepoManager

Definition at line 29 of file Repository.cc.


Member Function Documentation

Repository::NumericId zypp::Repository::numericId (  )  const

Runtime unique numeric Repository Id.

Definition at line 41 of file Repository.cc.

References _pimpl.

Referenced by zypp::solver::detail::Testcase::createTestcase(), zypp::ResObject::dumpOn(), zypp::solver::detail::HelixControl::HelixControl(), zypp::solver::detail::HelixControl::installResolvable(), zypp::solver::detail::HelixControl::lockResolvable(), zypp::target::IMediaKey::operator<(), and zypp::target::operator<<().

const ResStore & zypp::Repository::resolvables (  )  const

Get the resolvables for repo

Definition at line 44 of file Repository.cc.

References _pimpl.

const RepoInfo & zypp::Repository::info (  )  const

Repository info used to create this repository

Definition at line 49 of file Repository.cc.

References _pimpl.

Referenced by zypp::operator<(), zypp::target::operator<<(), zypp::operator<<(), zypp::operator==(), zypp::repo::RepoMediaAccess::provideFile(), zypp::repo::RepoMediaAccess::Impl::setVerifierForRepo(), and zypp::solver::detail::ResolverInfo::toString().

const std::list< packagedelta::PatchRpm > & zypp::Repository::patchRpms (  )  const

Patch RPMs the repository provides

Definition at line 55 of file Repository.cc.

References _pimpl.

const std::list< packagedelta::DeltaRpm > & zypp::Repository::deltaRpms (  )  const

Delta RPMs the repository provides

Definition at line 61 of file Repository.cc.

References _pimpl.

zypp::Repository::b (  )  const [private]

bool zypp::Repository::boolTest (  )  const [inline, private]

SafeBool test.

Definition at line 85 of file Repository.h.

References _pimpl, and noRepository.


Friends And Related Function Documentation

std::ostream & operator<< ( std::ostream &  str,
const Repository obj 
) [related]

Definition at line 66 of file Repository.cc.

bool operator== ( const Repository lhs,
const Repository rhs 
) [related]

Definition at line 71 of file Repository.cc.

bool operator!= ( const Repository lhs,
const Repository rhs 
) [related]

Definition at line 98 of file Repository.h.

bool operator< ( const Repository lhs,
const Repository rhs 
) [related]

Definition at line 76 of file Repository.cc.


Member Data Documentation

const Repository zypp::Repository::noRepository [static]

A dummy Repository (Id 0) providing nothing, doing nothing.

Definition at line 49 of file Repository.h.

Referenced by boolTest(), zypp::solver::detail::ResolverContext::collectCompareInfo(), zypp::pool::PoolImpl::knownRepositories(), and zypp::detail::ResObjectImplIf::repository().

RW_pointer<Impl,rw_pointer::Intrusive<Impl> > zypp::Repository::_pimpl [private]

Pointer to implementation.

Definition at line 90 of file Repository.h.

Referenced by boolTest(), deltaRpms(), info(), numericId(), patchRpms(), and resolvables().


The documentation for this class was generated from the following files:
Generated on Tue Sep 25 19:23:16 2007 for libzypp by  doxygen 1.5.3