ResStore.cc

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------\
00002 |                          ____ _   __ __ ___                          |
00003 |                         |__  / \ / / . \ . \                         |
00004 |                           / / \ V /|  _/  _/                         |
00005 |                          / /__ | | | | | |                           |
00006 |                         /_____||_| |_| |_|                           |
00007 |                                                                      |
00008 \---------------------------------------------------------------------*/
00012 #include <iostream>
00013 //#include "zypp/base/Logger.h"
00014 
00015 #include "zypp/ResStore.h"
00016 
00017 using std::endl;
00018 
00020 namespace zypp
00021 { 
00022 
00024   //
00025   //    CLASS NAME : ResStore::Impl
00026   //
00028   struct ResStore::Impl
00029   {
00030     Impl()
00031     {}
00032 #if 0
00033     iterator begin()
00034     { return _store.begin(); }
00035 
00036     iterator end();
00037     { return _store.end(); }
00038 
00039     const_iterator begin() const;
00040     { return _store.begin(); }
00041 
00042     const_iterator end() const;
00043     { return _store.end(); }
00044 
00045     StorageT _store;
00046 #endif
00047   };
00049 
00051   inline std::ostream & operator<<( std::ostream & str, const ResStore::Impl & obj )
00052   {
00053     return str << "ResStore::Impl";
00054   }
00055 
00057   //
00058   //    CLASS NAME : ResStore
00059   //
00061 
00063   //
00064   //    METHOD NAME : ResStore::ResStore
00065   //    METHOD TYPE : Ctor
00066   //
00067   ResStore::ResStore()
00068   //: _pimpl( new Impl )
00069   {}
00070 
00072   //
00073   //    METHOD NAME : ResStore::~ResStore
00074   //    METHOD TYPE : Dtor
00075   //
00076   ResStore::~ResStore()
00077   {}
00078 #if 0
00079   ResStore::iterator ResStore::begin()
00080   { return _pimpl->begin(); }
00081 
00082   ResStore::iterator ResStore::end();
00083   { return _pimpl->end(); }
00084 
00085   ResStore::const_iterator ResStore::begin() const;
00086   { return _pimpl->begin(); }
00087 
00088   ResStore::const_iterator ResStore::end() const;
00089   { return _pimpl->end(); }
00090 #endif
00091   /******************************************************************
00092   **
00093   **    FUNCTION NAME : operator<<
00094   **    FUNCTION TYPE : std::ostream &
00095   */
00096   std::ostream & operator<<( std::ostream & str, const ResStore & obj )
00097   {
00098     return str << "ResStore: " << obj.size();
00099   }
00100 
00102 } // namespace zypp

Generated on Thu Jul 6 00:07:22 2006 for zypp by  doxygen 1.4.6