|
libzypp
9.1.2
|
#include <iosfwd>#include <tr1/unordered_set>#include <tr1/unordered_map>#include "zypp/base/PtrTypes.h"

Go to the source code of this file.
Namespaces | |
| namespace | zypp |
Easy-to use interface to the ZYPP dependency resolver. | |
Defines | |
| #define | ZYPP_DEFINE_ID_HASHABLE(C) |
| Define hash function for id based classes. | |
Functions | |
| template<class _D > | |
| std::tr1::unordered_set< _D > * | zypp::rwcowClone (const std::tr1::unordered_set< _D > *rhs) |
| clone function for RW_pointer | |
| template<class _K , class _V > | |
| std::tr1::unordered_map< _K, _V > * | zypp::rwcowClone (const std::tr1::unordered_map< _K, _V > *rhs) |
| clone function for RW_pointer | |
Definition in file Tr1hash.h.
| #define ZYPP_DEFINE_ID_HASHABLE | ( | C | ) |
namespace std { namespace tr1 { \ template<class _Tp> struct hash; \ template<> struct hash<C> \ { \ size_t operator()( const C & __s ) const \ { return __s.id(); } \ }; \ }}
Define hash function for id based classes.
Class has to provide a method id() retuning a unique number.
// in global namespace define: ZYPP_DEFINE_ID_HASHABLE( ::zypp::sat::Sovable )
1.7.6.1