Dependencies.h

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------\
00002 |                          ____ _   __ __ ___                          |
00003 |                         |__  / \ / / . \ . \                         |
00004 |                           / / \ V /|  _/  _/                         |
00005 |                          / /__ | | | | | |                           |
00006 |                         /_____||_| |_| |_|                           |
00007 |                                                                      |
00008 \---------------------------------------------------------------------*/
00012 #ifndef ZYPP_DEPENDENCIES_H
00013 #define ZYPP_DEPENDENCIES_H
00014 
00015 #include <iosfwd>
00016 #include <map>
00017 
00018 #include "zypp/Dep.h"
00019 #include "zypp/CapSet.h"
00020 
00022 namespace zypp
00023 { 
00024 
00026   //
00027   //    CLASS NAME : Dependencies
00028   //
00031   struct Dependencies
00032   {
00033     CapSet & operator[]( Dep idx_r )
00034     { return _capsets[idx_r]; }
00035 
00036     const CapSet & operator[]( Dep idx_r ) const
00037     { return const_cast<std::map<Dep,CapSet>&>(_capsets)[idx_r]; }
00038 
00039   private:
00040     std::map<Dep,CapSet> _capsets;
00041   };
00043 
00045   std::ostream & operator<<( std::ostream & str, const Dependencies & obj );
00046 
00048 } // namespace zypp
00050 #endif // ZYPP_DEPENDENCIES_H

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