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) XXX << x << std::endl; 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_Ref> PoolItemList; 00052 typedef std::set<PoolItem_Ref> PoolItemSet; 00053 00054 DEFINE_PTR_TYPE(Resolver); 00055 00056 DEFINE_PTR_TYPE(ResolverContext); 00057 00058 DEFINE_PTR_TYPE(ResolverInfo); 00059 DEFINE_PTR_TYPE(ResolverInfoChildOf); 00060 DEFINE_PTR_TYPE(ResolverInfoConflictsWith); 00061 DEFINE_PTR_TYPE(ResolverInfoContainer); 00062 DEFINE_PTR_TYPE(ResolverInfoDependsOn); 00063 DEFINE_PTR_TYPE(ResolverInfoMisc); 00064 DEFINE_PTR_TYPE(ResolverInfoMissingReq); 00065 DEFINE_PTR_TYPE(ResolverInfoNeededBy); 00066 DEFINE_PTR_TYPE(ResolverInfoObsoletes); 00067 00068 DEFINE_PTR_TYPE(QueueItem); 00069 DEFINE_PTR_TYPE(QueueItemBranch); 00070 DEFINE_PTR_TYPE(QueueItemConflict); 00071 DEFINE_PTR_TYPE(QueueItemEstablish); 00072 DEFINE_PTR_TYPE(QueueItemGroup); 00073 DEFINE_PTR_TYPE(QueueItemInstall); 00074 DEFINE_PTR_TYPE(QueueItemRequire); 00075 DEFINE_PTR_TYPE(QueueItemUninstall); 00076 00077 DEFINE_PTR_TYPE(ResolverQueue); 00078 00079 DEFINE_PTR_TYPE(SolutionAction); 00080 typedef std::list<SolutionAction_Ptr> SolutionActionList; 00081 typedef std::list<SolutionAction_constPtr> CSolutionActionList; 00082 DEFINE_PTR_TYPE(TransactionSolutionAction); 00083 DEFINE_PTR_TYPE(InjectSolutionAction); 00084 00085 00087 };// namespace detail 00090 };// namespace solver 00093 };// namespace zypp 00095 00096 #endif // ZYPP_SOLVER_DETAIL_TYPES_H