1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
4 * Copyright (C) 2005 SUSE Linux Products GmbH
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License,
8 * version 2, as published by the Free Software Foundation.
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
21 #ifndef ZYPP_SOLVER_DETAIL_TYPES_H
22 #define ZYPP_SOLVER_DETAIL_TYPES_H
30 #include "zypp/base/ReferenceCounted.h"
31 #include "zypp/base/NonCopyable.h"
32 #include "zypp/base/PtrTypes.h"
33 #include "zypp/base/Functional.h"
35 #include "zypp/PoolItem.h"
37 #define _DEBUG(x) DBG << x << std::endl;
38 #define _XDEBUG(x) do { if (base::logger::isExcessive()) XXX << x << std::endl;} while (0)
41 /////////////////////////////////////////////////////////////////////////
43 { ///////////////////////////////////////////////////////////////////////
44 ///////////////////////////////////////////////////////////////////////
46 { /////////////////////////////////////////////////////////////////////
47 /////////////////////////////////////////////////////////////////////
49 { ///////////////////////////////////////////////////////////////////
51 typedef std::list<PoolItem> PoolItemList;
52 typedef std::set<PoolItem> PoolItemSet;
54 DEFINE_PTR_TYPE(Resolver);
56 DEFINE_PTR_TYPE(SolutionAction);
57 typedef std::list<SolutionAction_Ptr> SolutionActionList;
58 typedef std::list<SolutionAction_constPtr> CSolutionActionList;
59 DEFINE_PTR_TYPE(TransactionSolutionAction);
60 DEFINE_PTR_TYPE(InjectSolutionAction);
61 DEFINE_PTR_TYPE(SolverQueueItem);
62 DEFINE_PTR_TYPE(SolverQueueItemUpdate);
63 DEFINE_PTR_TYPE(SolverQueueItemDelete);
64 DEFINE_PTR_TYPE(SolverQueueItemInstall);
65 DEFINE_PTR_TYPE(SolverQueueItemInstallOneOf);
66 DEFINE_PTR_TYPE(SolverQueueItemLock);
68 ///////////////////////////////////////////////////////////////////
70 /////////////////////////////////////////////////////////////////////
71 /////////////////////////////////////////////////////////////////////
73 ///////////////////////////////////////////////////////////////////////
74 ///////////////////////////////////////////////////////////////////////
76 /////////////////////////////////////////////////////////////////////////
78 #endif // ZYPP_SOLVER_DETAIL_TYPES_H