1 /*---------------------------------------------------------------------\
3 | |__ / \ / / . \ . \ |
8 \---------------------------------------------------------------------*/
9 /** \file zypp/ResPool.cc
13 //#include "zypp/base/Logger.h"
15 #include "zypp/ResPool.h"
19 ///////////////////////////////////////////////////////////////////
21 { /////////////////////////////////////////////////////////////////
23 ///////////////////////////////////////////////////////////////////
25 // CLASS NAME : ResPool::Impl
27 /** ResPool implementation. */
32 /** Offer default Impl. */
33 static shared_ptr<Impl> nullimpl()
35 static shared_ptr<Impl> _nullimpl( new Impl );
40 friend Impl * rwcowClone<Impl>( const Impl * rhs );
41 /** clone for RWCOW_pointer */
43 { return new Impl( *this ); }
45 ///////////////////////////////////////////////////////////////////
47 /** \relates ResPool::Impl Stream output */
48 inline std::ostream & operator<<( std::ostream & str, const ResPool::Impl & obj )
50 return str << "ResPool::Impl";
53 ///////////////////////////////////////////////////////////////////
55 // CLASS NAME : ResPool
57 ///////////////////////////////////////////////////////////////////
59 ///////////////////////////////////////////////////////////////////
61 // METHOD NAME : ResPool::ResPool
65 : _pimpl( Impl::nullimpl() )
68 ///////////////////////////////////////////////////////////////////
70 // METHOD NAME : ResPool::~ResPool
76 /******************************************************************
78 ** FUNCTION NAME : operator<<
79 ** FUNCTION TYPE : std::ostream &
81 std::ostream & operator<<( std::ostream & str, const ResPool & obj )
83 return str << *obj._pimpl;
86 /////////////////////////////////////////////////////////////////
88 ///////////////////////////////////////////////////////////////////