1 /*---------------------------------------------------------------------\
3 | |__ / \ / / . \ . \ |
8 \---------------------------------------------------------------------*/
9 /** \file zypp/pool/PoolTraits.h
12 #ifndef ZYPP_POOL_POOLTRAITS_H
13 #define ZYPP_POOL_POOLTRAITS_H
17 #include "zypp/PoolItem.h"
19 ///////////////////////////////////////////////////////////////////
21 { /////////////////////////////////////////////////////////////////
22 ///////////////////////////////////////////////////////////////////
24 { /////////////////////////////////////////////////////////////////
29 struct PoolImplInserter
31 void operator()( ResObject::constPtr ptr_r, bool installed = false );
33 PoolImplInserter( PoolImpl & poolImpl_r )
34 : _poolImpl( poolImpl_r )
40 struct PoolImplDeleter
42 void operator()( ResObject::constPtr ptr_r );
44 PoolImplDeleter( PoolImpl & poolImpl_r )
45 : _poolImpl( poolImpl_r )
50 ///////////////////////////////////////////////////////////////////
52 // CLASS NAME : PoolTraits
59 typedef PoolItem Item;
60 typedef std::set<Item> ContainerT;
61 typedef ContainerT::size_type size_type;
62 typedef ContainerT::iterator iterator;
63 typedef ContainerT::const_iterator const_iterator;
65 typedef PoolImpl Impl;
66 typedef shared_ptr<PoolImpl> Impl_Ptr;
67 typedef shared_ptr<const PoolImpl> Impl_constPtr;
68 typedef PoolImplInserter Inserter;
69 typedef PoolImplDeleter Deleter;
71 ///////////////////////////////////////////////////////////////////
73 /////////////////////////////////////////////////////////////////
75 ///////////////////////////////////////////////////////////////////
76 /////////////////////////////////////////////////////////////////
78 ///////////////////////////////////////////////////////////////////
79 #endif // ZYPP_POOL_POOLTRAITS_H