1 /*---------------------------------------------------------------------\
3 | |__ / \ / / . \ . \ |
8 \---------------------------------------------------------------------*/
9 /** \file zypp/pool/PoolImpl.h
12 #ifndef ZYPP_POOL_POOLIMPL_H
13 #define ZYPP_POOL_POOLIMPL_H
17 #include "zypp/pool/PoolTraits.h"
19 ///////////////////////////////////////////////////////////////////
21 { /////////////////////////////////////////////////////////////////
22 ///////////////////////////////////////////////////////////////////
24 { /////////////////////////////////////////////////////////////////
26 ///////////////////////////////////////////////////////////////////
28 // CLASS NAME : PoolImpl
33 friend std::ostream & operator<<( std::ostream & str, const PoolImpl & obj );
37 typedef PoolTraits::Item Item;
38 typedef PoolTraits::ContainerT ContainerT;
39 typedef PoolTraits::size_type size_type;
40 typedef PoolTraits::iterator iterator;
41 typedef PoolTraits::const_iterator const_iterator;
42 typedef PoolTraits::Inserter Inserter;
43 typedef PoolTraits::Deleter Deleter;
56 const ContainerT & store() const
61 { return _store.empty(); }
63 size_type size() const
64 { return _store.size(); }
68 { return _store.begin(); }
70 const_iterator begin() const
71 { return _store.begin(); }
75 { return _store.end(); }
77 const_iterator end() const
78 { return _store.end(); }
82 { return _store.clear(); }
88 ///////////////////////////////////////////////////////////////////
90 /** \relates PoolImpl Stream output */
91 std::ostream & operator<<( std::ostream & str, const PoolImpl & obj );
93 /////////////////////////////////////////////////////////////////
95 ///////////////////////////////////////////////////////////////////
96 /////////////////////////////////////////////////////////////////
98 ///////////////////////////////////////////////////////////////////
99 #endif // ZYPP_POOL_POOLIMPL_H