libzypp: zypp/sat/detail/PoolDefines.h Source File

libzypp 17.38.11

PoolDefines.h
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8\---------------------------------------------------------------------*/
12#ifndef ZYPP_SAT_DETAIL_POOLDEFINES_H
13#define ZYPP_SAT_DETAIL_POOLDEFINES_H
14
15extern "C"
16{
17 // Those s_Type names are exposed as sat::detail::CType below!
18 struct s_Dataiterator;
19 struct s_Datamatcher;
20 struct s_Map;
21 struct s_Pool;
22 struct s_Queue;
23 struct s_Repo;
24 struct s_Solvable;
25 struct s_Solver;
26 struct s_Transaction;
27}
28
29namespace zypp::sat::detail {
30
31 using CDataiterator = ::s_Dataiterator;
32 using CDatamatcher = ::s_Datamatcher;
33 using CMap = ::s_Map;
34 using CPool = ::s_Pool;
35 using CQueue = ::s_Queue;
36 using CRepo = ::s_Repo;
37 using CSolvable = ::s_Solvable;
38 using CSolver = ::s_Solver;
39 using CTransaction = ::s_Transaction;
40
42 using IdType = int;
43 static const IdType noId( 0 );
44 static const IdType emptyId( 1 );
45
49 static const IdType solvablePrereqMarker( 15 );
50 static const IdType solvableFileMarker ( 16 );
51
52 static const IdType namespaceModalias ( 18 );
53 static const IdType namespaceLanguage ( 20 );
54 static const IdType namespaceFilesystem ( 21 );
55
57 inline bool isDepMarkerId( IdType id_r )
58 { return( id_r == solvablePrereqMarker || id_r == solvableFileMarker ); }
59
63 using SolvableIdType = unsigned int;
64 using size_type = SolvableIdType;
66 static const SolvableIdType noSolvableId( 0 );
68 static const SolvableIdType systemSolvableId( 1 );
69
71 using RepoIdType = CRepo *;
73 static const RepoIdType noRepoId( 0 );
74
75}
76
77#endif
zypp::sat::detail
Definition PoolImpl.cc:73
zypp::sat::detail::size_type
SolvableIdType size_type
Definition PoolDefines.h:64
zypp::sat::detail::namespaceLanguage
static const IdType namespaceLanguage(20)
zypp::sat::detail::solvablePrereqMarker
static const IdType solvablePrereqMarker(15)
Internal ids satlib includes in dependencies.
zypp::sat::detail::solvableFileMarker
static const IdType solvableFileMarker(16)
zypp::sat::detail::emptyId
static const IdType emptyId(1)
zypp::sat::detail::CMap
::s_Map CMap
Wrapped libsolv C data type exposed as backdoor.
Definition PoolDefines.h:33
zypp::sat::detail::SolvableIdType
unsigned int SolvableIdType
Id type to connect Solvable and sat-solvable.
Definition PoolDefines.h:63
zypp::sat::detail::namespaceModalias
static const IdType namespaceModalias(18)
zypp::sat::detail::namespaceFilesystem
static const IdType namespaceFilesystem(21)
zypp::sat::detail::CRepo
::s_Repo CRepo
Wrapped libsolv C data type exposed as backdoor.
Definition PoolDefines.h:36
zypp::sat::detail::noId
static const IdType noId(0)
zypp::sat::detail::noSolvableId
static const SolvableIdType noSolvableId(0)
Id to denote Solvable::noSolvable.
zypp::sat::detail::IdType
int IdType
Generic Id type.
Definition PoolDefines.h:42
zypp::sat::detail::CQueue
::s_Queue CQueue
Wrapped libsolv C data type exposed as backdoor.
Definition PoolDefines.h:35
zypp::sat::detail::noRepoId
static const RepoIdType noRepoId(0)
Id to denote Repo::noRepository.
zypp::sat::detail::isDepMarkerId
bool isDepMarkerId(IdType id_r)
Test for internal ids satlib includes in dependencies.
Definition PoolDefines.h:57
zypp::sat::detail::CSolvable
::s_Solvable CSolvable
Wrapped libsolv C data type exposed as backdoor.
Definition PoolDefines.h:37
zypp::sat::detail::CSolver
::s_Solver CSolver
Wrapped libsolv C data type exposed as backdoor.
Definition PoolDefines.h:38
zypp::sat::detail::CPool
::s_Pool CPool
Wrapped libsolv C data type exposed as backdoor.
Definition PoolDefines.h:34
zypp::sat::detail::CDatamatcher
::s_Datamatcher CDatamatcher
Wrapped libsolv C data type exposed as backdoor.
Definition PoolDefines.h:32
zypp::sat::detail::CDataiterator
::s_Dataiterator CDataiterator
Wrapped libsolv C data type exposed as backdoor.
Definition PoolDefines.h:31
zypp::sat::detail::CTransaction
::s_Transaction CTransaction
Wrapped libsolv C data type exposed as backdoor.
Definition PoolDefines.h:39
zypp::sat::detail::systemSolvableId
static const SolvableIdType systemSolvableId(1)
Id to denote the usually hidden Solvable::systemSolvable.
zypp::sat::detail::RepoIdType
CRepo * RepoIdType
Id type to connect Repo and sat-repo.
Definition PoolDefines.h:71