backup
[platform/upstream/libzypp.git] / zypp / ResPool.cc
1 /*---------------------------------------------------------------------\
2 |                          ____ _   __ __ ___                          |
3 |                         |__  / \ / / . \ . \                         |
4 |                           / / \ V /|  _/  _/                         |
5 |                          / /__ | | | | | |                           |
6 |                         /_____||_| |_| |_|                           |
7 |                                                                      |
8 \---------------------------------------------------------------------*/
9 /** \file       zypp/ResPool.cc
10  *
11 */
12 #include <iostream>
13 //#include "zypp/base/Logger.h"
14
15 #include "zypp/ResPool.h"
16
17 using std::endl;
18
19 ///////////////////////////////////////////////////////////////////
20 namespace zypp
21 { /////////////////////////////////////////////////////////////////
22 #if 0
23   ///////////////////////////////////////////////////////////////////
24   //
25   //    CLASS NAME : ResPool::Impl
26   //
27   /** ResPool implementation. */
28   struct ResPool::Impl
29   {
30
31   public:
32     /** Offer default Impl. */
33     static shared_ptr<Impl> nullimpl()
34     {
35       static shared_ptr<Impl> _nullimpl( new Impl );
36       return _nullimpl;
37     }
38
39   private:
40     friend Impl * rwcowClone<Impl>( const Impl * rhs );
41     /** clone for RWCOW_pointer */
42     Impl * clone() const
43     { return new Impl( *this ); }
44   };
45   ///////////////////////////////////////////////////////////////////
46
47   /** \relates ResPool::Impl Stream output */
48   inline std::ostream & operator<<( std::ostream & str, const ResPool::Impl & obj )
49   {
50     return str << "ResPool::Impl";
51   }
52 #endif
53   ///////////////////////////////////////////////////////////////////
54   //
55   //    CLASS NAME : ResPool
56   //
57   ///////////////////////////////////////////////////////////////////
58
59   ///////////////////////////////////////////////////////////////////
60   //
61   //    METHOD NAME : ResPool::ResPool
62   //    METHOD TYPE : Ctor
63   //
64   ResPool::ResPool()
65   : _inserter( _store )
66   , _deleter( _store )
67   {}
68
69   ///////////////////////////////////////////////////////////////////
70   //
71   //    METHOD NAME : ResPool::~ResPool
72   //    METHOD TYPE : Dtor
73   //
74   ResPool::~ResPool()
75   {}
76
77   /******************************************************************
78   **
79   **    FUNCTION NAME : operator<<
80   **    FUNCTION TYPE : std::ostream &
81   */
82   std::ostream & operator<<( std::ostream & str, const ResPool & obj )
83   {
84     return str << "ResPool";
85   }
86
87   /////////////////////////////////////////////////////////////////
88 } // namespace zypp
89 ///////////////////////////////////////////////////////////////////