libzypp 8.13.6
|
00001 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */ 00002 /* Types.h 00003 * 00004 * Copyright (C) 2005 SUSE Linux Products GmbH 00005 * 00006 * This program is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU General Public License, 00008 * version 2, as published by the Free Software Foundation. 00009 * 00010 * This program is distributed in the hope that it will be useful, but 00011 * WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 * General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License 00016 * along with this program; if not, write to the Free Software 00017 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 00018 * 02111-1307, USA. 00019 */ 00020 00021 #ifndef ZYPP_SOLVER_DETAIL_TYPES_H 00022 #define ZYPP_SOLVER_DETAIL_TYPES_H 00023 00024 #include <iosfwd> 00025 #include <list> 00026 #include <set> 00027 #include <map> 00028 #include <string> 00029 00030 #include "zypp/base/ReferenceCounted.h" 00031 #include "zypp/base/NonCopyable.h" 00032 #include "zypp/base/PtrTypes.h" 00033 #include "zypp/base/Functional.h" 00034 00035 #include "zypp/PoolItem.h" 00036 00037 #define _DEBUG(x) DBG << x << std::endl; 00038 #define _XDEBUG(x) do { if (base::logger::isExcessive()) XXX << x << std::endl;} while (0) 00039 //#define _DEBUG(x) 00040 00042 namespace zypp 00043 { 00044 00045 namespace solver 00046 { 00047 00048 namespace detail 00049 { 00050 00051 typedef std::list<PoolItem> PoolItemList; 00052 typedef std::set<PoolItem> PoolItemSet; 00053 00054 DEFINE_PTR_TYPE(Resolver); 00055 00056 DEFINE_PTR_TYPE(SolutionAction); 00057 typedef std::list<SolutionAction_Ptr> SolutionActionList; 00058 typedef std::list<SolutionAction_constPtr> CSolutionActionList; 00059 DEFINE_PTR_TYPE(TransactionSolutionAction); 00060 DEFINE_PTR_TYPE(InjectSolutionAction); 00061 DEFINE_PTR_TYPE(SolverQueueItem); 00062 DEFINE_PTR_TYPE(SolverQueueItemUpdate); 00063 DEFINE_PTR_TYPE(SolverQueueItemDelete); 00064 DEFINE_PTR_TYPE(SolverQueueItemInstall); 00065 DEFINE_PTR_TYPE(SolverQueueItemInstallOneOf); 00066 DEFINE_PTR_TYPE(SolverQueueItemLock); 00067 00069 };// namespace detail 00072 };// namespace solver 00075 };// namespace zypp 00077 00078 #endif // ZYPP_SOLVER_DETAIL_TYPES_H