1 /*---------------------------------------------------------------------\
3 | |__ / \ / / . \ . \ |
8 \---------------------------------------------------------------------*/
9 /** \file zypp/sat/detail/PoolMember.h
12 #ifndef ZYPP_SAT_DETAIL_POOLMEMBER_H
13 #define ZYPP_SAT_DETAIL_POOLMEMBER_H
15 #include "zypp/base/Iterator.h"
24 ///////////////////////////////////////////////////////////////////
26 { /////////////////////////////////////////////////////////////////
27 ///////////////////////////////////////////////////////////////////
29 { /////////////////////////////////////////////////////////////////
38 ///////////////////////////////////////////////////////////////////
40 { /////////////////////////////////////////////////////////////////
44 ///////////////////////////////////////////////////////////////////
46 // CLASS NAME : PoolMember
48 /** Backlink to the associated \ref PoolImpl.
49 * Simple as we currently use one global PoolImpl. If we change our
50 * minds this is where we'd store and do the \c Id to \ref PoolImpl
55 static PoolImpl & myPool();
57 ///////////////////////////////////////////////////////////////////
59 /////////////////////////////////////////////////////////////////
61 ///////////////////////////////////////////////////////////////////
64 ///////////////////////////////////////////////////////////////////
66 { /////////////////////////////////////////////////////////////////
68 /** Generic Id type. */
70 static const IdType noId( 0 );
72 /** Id type to connect \ref Solvable and sat-solvable.
73 * Indext into solvable array.
75 typedef unsigned SolvableIdType;
76 /** Id to denote \ref Solvable::nosolvable. */
77 static const SolvableIdType noSolvableId( 0 );
79 /** Id type to connect \ref Repo and sat-repo. */
80 typedef ::_Repo * RepoIdType;
81 /** Id to denote \ref Repo::nosolvable. */
82 static const RepoIdType noRepoId( 0 );
84 /////////////////////////////////////////////////////////////////
86 ///////////////////////////////////////////////////////////////////
89 ///////////////////////////////////////////////////////////////////
91 { /////////////////////////////////////////////////////////////////
93 class SolvableIterator;
97 /////////////////////////////////////////////////////////////////
99 ///////////////////////////////////////////////////////////////////
101 ///////////////////////////////////////////////////////////////////
102 typedef IdStr KindId;
103 typedef IdStr NameId;
105 typedef IdStr ArchId;
106 typedef IdStr VendorId;
107 ///////////////////////////////////////////////////////////////////
109 /////////////////////////////////////////////////////////////////
111 ///////////////////////////////////////////////////////////////////
112 /////////////////////////////////////////////////////////////////
114 ///////////////////////////////////////////////////////////////////
115 #endif // ZYPP_SAT_DETAIL_POOLMEMBER_H