zypp::SourceFeed_Ref Class Reference

Feed Sources into a ResPool. More...

#include <SourceFeed.h>

List of all members.

Public Types

typedef ContainerT::size_type size_type
typedef ContainerT::iterator iterator
typedef ContainerT::const_iterator const_iterator

Public Member Functions

 SourceFeed_Ref (ResPoolManager pool_r)
 Default ctor.
 ~SourceFeed_Ref ()
 Dtor.
void addSource (Source_Ref src_r)
 Add one Source.
template<class _InputIterator>
void addSource (_InputIterator first_r, _InputIterator last_r)
 Add Sources from some container.
void removeSource (Source_Ref src_r)
 Remove a Source.
template<class _InputIterator>
void removeSource (_InputIterator first_r, _InputIterator last_r)
 Remove all Sources mentioned in container.
void removeAllSources ()
 Remove all Sources.
const_iterator sourceBegin () const
 Iterate and query.
const_iterator sourceEnd () const

Private Types

typedef std::set< Source_RefContainerT

Private Member Functions

void insert (ContainerT &sources_r)
void erase (ContainerT &sources_r)

Private Attributes

shared_ptr< Impl_pimpl
 Pointer to implementation: _Ref.

Friends

std::ostream & operator<< (std::ostream &str, const SourceFeed_Ref &obj)

Classes

struct  Impl
 SourceFeed implementation. More...


Detailed Description

Feed Sources into a ResPool.

Todo:
Clean up implementation.

Definition at line 34 of file SourceFeed.h.


Member Typedef Documentation

typedef std::set<Source_Ref> zypp::SourceFeed_Ref::ContainerT [private]
 

Definition at line 37 of file SourceFeed.h.

typedef ContainerT::size_type zypp::SourceFeed_Ref::size_type
 

Definition at line 41 of file SourceFeed.h.

typedef ContainerT::iterator zypp::SourceFeed_Ref::iterator
 

Definition at line 44 of file SourceFeed.h.

typedef ContainerT::const_iterator zypp::SourceFeed_Ref::const_iterator
 

Definition at line 45 of file SourceFeed.h.


Constructor & Destructor Documentation

zypp::SourceFeed_Ref::SourceFeed_Ref ResPoolManager  pool_r  ) 
 

Default ctor.

Definition at line 90 of file SourceFeed.cc.

zypp::SourceFeed_Ref::~SourceFeed_Ref  ) 
 

Dtor.

Definition at line 99 of file SourceFeed.cc.


Member Function Documentation

void zypp::SourceFeed_Ref::addSource Source_Ref  src_r  )  [inline]
 

Add one Source.

Definition at line 56 of file SourceFeed.h.

References insert().

template<class _InputIterator>
void zypp::SourceFeed_Ref::addSource _InputIterator  first_r,
_InputIterator  last_r
[inline]
 

Add Sources from some container.

Definition at line 65 of file SourceFeed.h.

References insert().

void zypp::SourceFeed_Ref::removeSource Source_Ref  src_r  )  [inline]
 

Remove a Source.

Definition at line 78 of file SourceFeed.h.

References erase().

Referenced by removeAllSources().

template<class _InputIterator>
void zypp::SourceFeed_Ref::removeSource _InputIterator  first_r,
_InputIterator  last_r
[inline]
 

Remove all Sources mentioned in container.

Definition at line 87 of file SourceFeed.h.

References erase().

void zypp::SourceFeed_Ref::removeAllSources  )  [inline]
 

Remove all Sources.

Definition at line 94 of file SourceFeed.h.

References removeSource(), sourceBegin(), and sourceEnd().

SourceFeed_Ref::const_iterator zypp::SourceFeed_Ref::sourceBegin  )  const
 

Iterate and query.

Definition at line 118 of file SourceFeed.cc.

References _pimpl.

Referenced by removeAllSources().

SourceFeed_Ref::const_iterator zypp::SourceFeed_Ref::sourceEnd  )  const
 

Definition at line 121 of file SourceFeed.cc.

References _pimpl.

Referenced by removeAllSources().

void zypp::SourceFeed_Ref::insert ContainerT sources_r  )  [private]
 

Definition at line 112 of file SourceFeed.cc.

References _pimpl.

Referenced by addSource().

void zypp::SourceFeed_Ref::erase ContainerT sources_r  )  [private]
 

Definition at line 115 of file SourceFeed.cc.

References _pimpl.

Referenced by removeSource().


Friends And Related Function Documentation

std::ostream& operator<< std::ostream &  str,
const SourceFeed_Ref obj
[friend]
 

Definition at line 131 of file SourceFeed.cc.


Member Data Documentation

shared_ptr<Impl> zypp::SourceFeed_Ref::_pimpl [private]
 

Pointer to implementation: _Ref.

Definition at line 113 of file SourceFeed.h.

Referenced by erase(), insert(), zypp::operator<<(), sourceBegin(), and sourceEnd().


The documentation for this class was generated from the following files:
Generated on Thu Jul 6 00:07:31 2006 for zypp by  doxygen 1.4.6