#define ZYPP_SAT_REPOSITORY_H
#include <iosfwd>
-#include "zypp/base/Iterator.h"
#include "zypp/Pathname.h"
#include "zypp/sat/detail/PoolMember.h"
#include "zypp/sat/LookupAttr.h" // LookupAttrTools.h included at EOF
/** Iterator behind the last \ref Solvable. */
SolvableIterator solvablesEnd() const;
- /** Iterate the repositories Solvables. */
- Iterable<SolvableIterator> solvables() const;
-
public:
/** Query class for Repository related products */
*/
ProductInfoIterator compatibleWithProductEnd() const;
- /** Iterate the repository compatible distros. */
- Iterable<ProductInfoIterator> compatibleWithProduct() const;
-
-
/**
* Get an iterator to the beginning of distos the repository
* provides upadates for.
*/
ProductInfoIterator updatesProductEnd() const;
- /** Iterate distos the repository provides upadates for. */
- Iterable<ProductInfoIterator> updatesProduct() const;
-
public:
/** Return any associated \ref RepoInfo. */
RepoInfo info() const;
public:
/** Expert backdoor. */
- sat::detail::CRepo * get() const;
+ ::_Repo * get() const;
/** Expert backdoor. */
IdType id() const { return _id; }
/** libsolv internal priorities.
};
///////////////////////////////////////////////////////////////////
- /** Iterate the repository compatible distros. */
- inline Iterable<Repository::ProductInfoIterator> Repository::compatibleWithProduct() const
- { return makeIterable( compatibleWithProductBegin(), compatibleWithProductEnd() ); }
-
- /** Iterate distos the repository provides upadates for. */
- inline Iterable<Repository::ProductInfoIterator> Repository::updatesProduct() const
- { return makeIterable( updatesProductBegin(), updatesProductEnd() ); }
-
///////////////////////////////////////////////////////////////////
//
// CLASS NAME : Repository::EraseFromPool
/** */
class RepositoryIterator : public boost::iterator_adaptor<
RepositoryIterator // Derived
- , sat::detail::CRepo ** // Base
+ , ::_Repo ** // Base
, Repository // Value
, boost::forward_traversal_tag // CategoryOrTraversal
, Repository // Reference
: RepositoryIterator::iterator_adaptor_( 0 )
{}
- explicit RepositoryIterator( sat::detail::CRepo ** p )
+ explicit RepositoryIterator( ::_Repo ** p )
: RepositoryIterator::iterator_adaptor_( p )
{}
/////////////////////////////////////////////////////////////////
} // namespace detail
///////////////////////////////////////////////////////////////////
-
- inline Iterable<Repository::SolvableIterator> Repository::solvables() const
- { return makeIterable( solvablesBegin(), solvablesEnd() ); }
-
/////////////////////////////////////////////////////////////////
} // namespace zypp
///////////////////////////////////////////////////////////////////