all my types
authorKlaus Kaempf <kkaempf@suse.de>
Wed, 25 Jan 2006 20:37:07 +0000 (20:37 +0000)
committerKlaus Kaempf <kkaempf@suse.de>
Wed, 25 Jan 2006 20:37:07 +0000 (20:37 +0000)
zypp/solver/detail/Types.h [new file with mode: 0644]

diff --git a/zypp/solver/detail/Types.h b/zypp/solver/detail/Types.h
new file mode 100644 (file)
index 0000000..c9798db
--- /dev/null
@@ -0,0 +1,98 @@
+/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+/* Ptr.h
+ *
+ * Copyright (C) 2005 SUSE Linux Products GmbH
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License,
+ * version 2, as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+ * 02111-1307, USA.
+ */
+
+#ifndef ZYPP_SOLVER_DETAIL_TYPES_H
+#define ZYPP_SOLVER_DETAIL_TYPES_H
+
+#include <iosfwd>
+#include <list>
+#include <set>
+#include <map>
+#include <string>
+
+#include "zypp/base/ReferenceCounted.h"
+#include "zypp/base/NonCopyable.h"
+#include "zypp/base/PtrTypes.h"
+
+#include "zypp/PoolItem.h"
+
+typedef std::list <zypp::PoolItem *> PoolItemList;
+typedef std::list <const zypp::PoolItem *> CPoolItemList;
+typedef std::set <const zypp::PoolItem *> CPoolItemSet;
+
+
+#define item_status_is_to_be_uninstalled(x) true
+
+/////////////////////////////////////////////////////////////////////////
+namespace zypp 
+{ ///////////////////////////////////////////////////////////////////////
+  ///////////////////////////////////////////////////////////////////////
+  namespace solver
+  { /////////////////////////////////////////////////////////////////////
+    /////////////////////////////////////////////////////////////////////
+    namespace detail
+    { ///////////////////////////////////////////////////////////////////
+      
+DEFINE_PTR_TYPE(ResolverContext);
+      
+DEFINE_PTR_TYPE(ResolverInfo);
+DEFINE_PTR_TYPE(ResolverInfoChildOf);
+DEFINE_PTR_TYPE(ResolverInfoConflictsWith);
+DEFINE_PTR_TYPE(ResolverInfoContainer);
+DEFINE_PTR_TYPE(ResolverInfoDependsOn);
+DEFINE_PTR_TYPE(ResolverInfoMisc);
+DEFINE_PTR_TYPE(ResolverInfoMissingReq);
+DEFINE_PTR_TYPE(ResolverInfoNeededBy);
+DEFINE_PTR_TYPE(ResolverInfoObsoletes);
+
+DEFINE_PTR_TYPE(QueueItem);
+DEFINE_PTR_TYPE(QueueItemBranch);
+DEFINE_PTR_TYPE(QueueItemConflict);
+DEFINE_PTR_TYPE(QueueItemEstablish);
+DEFINE_PTR_TYPE(QueueItemGroup);
+DEFINE_PTR_TYPE(QueueItemInstall);
+DEFINE_PTR_TYPE(QueueItemRequire);
+DEFINE_PTR_TYPE(QueueItemUninstall);
+
+DEFINE_PTR_TYPE(ResolverQueue);
+
+DEFINE_PTR_TYPE(ResolverProblem);
+typedef std::list<ResolverProblem_Ptr> ResolverProblemList;
+typedef std::list<ResolverProblem_constPtr> CResolverProblemList;
+      
+DEFINE_PTR_TYPE(ProblemSolution);
+typedef std::list<ProblemSolution_Ptr> ProblemSolutionList;
+typedef std::list<ProblemSolution_constPtr> CProblemSolutionList;
+      
+DEFINE_PTR_TYPE(SolutionAction);
+typedef std::list<SolutionAction_Ptr> SolutionActionList;
+typedef std::list<SolutionAction_constPtr> CSolutionActionList;
+      
+      ///////////////////////////////////////////////////////////////////
+    };// namespace detail
+    /////////////////////////////////////////////////////////////////////
+    /////////////////////////////////////////////////////////////////////
+  };// namespace solver
+  ///////////////////////////////////////////////////////////////////////
+  ///////////////////////////////////////////////////////////////////////
+};// namespace zypp
+/////////////////////////////////////////////////////////////////////////
+
+#endif // ZYPP_SOLVER_DETAIL_TYPES_H