1 /*---------------------------------------------------------------------\
3 | |__ / \ / / . \ . \ |
8 \---------------------------------------------------------------------*/
9 /** \file zypp/ResPool.cc
13 //#include "zypp/base/Logger.h"
15 #include "zypp/ResPool.h"
16 #include "zypp/pool/PoolImpl.h"
20 ///////////////////////////////////////////////////////////////////
22 { /////////////////////////////////////////////////////////////////
26 /** the empty pool used by ResPool::ResPool() */
27 pool::PoolTraits::Impl_constPtr noPool()
29 static pool::PoolTraits::Impl_constPtr _noPool( new pool::PoolImpl );
34 ///////////////////////////////////////////////////////////////////
36 // METHOD NAME : ResPool::ResPool
43 ///////////////////////////////////////////////////////////////////
45 // METHOD NAME : ResPool::ResPool
48 ResPool::ResPool( pool::PoolTraits::Impl_constPtr impl_r )
52 ///////////////////////////////////////////////////////////////////
54 // METHOD NAME : ResPool::~ResPool
60 ///////////////////////////////////////////////////////////////////
62 // Forward to impementation:
64 ///////////////////////////////////////////////////////////////////
66 bool ResPool::empty() const
67 { return _pimpl->empty(); }
69 ResPool::size_type ResPool::size() const
70 { return _pimpl->size(); }
72 ResPool::const_iterator ResPool::begin() const
73 { return _pimpl->begin(); }
75 ResPool::const_iterator ResPool::end() const
76 { return _pimpl->end(); }
78 ResPool::const_indexiterator ResPool::providesbegin(const std::string & tag_r) const
79 { return _pimpl->providesbegin(tag_r); }
81 ResPool::const_indexiterator ResPool::providesend(const std::string & tag_r) const
82 { return _pimpl->providesend(tag_r); }
84 ResPool::const_indexiterator ResPool::requiresbegin(const std::string & tag_r) const
85 { return _pimpl->requiresbegin(tag_r); }
87 ResPool::const_indexiterator ResPool::requiresend(const std::string & tag_r) const
88 { return _pimpl->requiresend(tag_r); }
90 ResPool::const_indexiterator ResPool::conflictsbegin(const std::string & tag_r) const
91 { return _pimpl->conflictsbegin(tag_r); }
93 ResPool::const_indexiterator ResPool::conflictsend(const std::string & tag_r) const
94 { return _pimpl->conflictsend(tag_r); }
96 ResPool::const_nameiterator ResPool::namebegin(const std::string & tag_r) const
97 { return _pimpl->namebegin(tag_r); }
99 ResPool::const_nameiterator ResPool::nameend(const std::string & tag_r) const
100 { return _pimpl->nameend(tag_r); }
102 /******************************************************************
104 ** FUNCTION NAME : operator<<
105 ** FUNCTION TYPE : std::ostream &
107 std::ostream & operator<<( std::ostream & str, const ResPool & obj )
109 return str << *obj._pimpl;
112 /////////////////////////////////////////////////////////////////
114 ///////////////////////////////////////////////////////////////////