aboutsummaryrefslogtreecommitdiff
path: root/paludis/resolver/allowed_to_remove_helper.hh
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-08-06 18:22:37 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-08-08 10:53:06 +0100
commitdb5d7e70da97563bc086eefa8055dfbe27cc56a4 (patch)
tree648e9b3ffb1658565fdb49fdb0551a8075bbe4df /paludis/resolver/allowed_to_remove_helper.hh
parentd73bac2f42d4bf4d4a8c3ef75fdee0f1c22cc44b (diff)
downloadpaludis-db5d7e70da97563bc086eefa8055dfbe27cc56a4.tar.gz
paludis-db5d7e70da97563bc086eefa8055dfbe27cc56a4.tar.xz
AllowedToRemoveHelper
Diffstat (limited to 'paludis/resolver/allowed_to_remove_helper.hh')
-rw-r--r--paludis/resolver/allowed_to_remove_helper.hh54
1 files changed, 54 insertions, 0 deletions
diff --git a/paludis/resolver/allowed_to_remove_helper.hh b/paludis/resolver/allowed_to_remove_helper.hh
new file mode 100644
index 000000000..74802d3c9
--- /dev/null
+++ b/paludis/resolver/allowed_to_remove_helper.hh
@@ -0,0 +1,54 @@
+/* vim: set sw=4 sts=4 et foldmethod=syntax : */
+
+/*
+ * Copyright (c) 2010 Ciaran McCreesh
+ *
+ * This file is part of the Paludis package manager. Paludis 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.
+ *
+ * Paludis 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 PALUDIS_GUARD_PALUDIS_RESOLVER_ALLOWED_TO_REMOVE_HELPER_HH
+#define PALUDIS_GUARD_PALUDIS_RESOLVER_ALLOWED_TO_REMOVE_HELPER_HH 1
+
+#include <paludis/resolver/allowed_to_remove_helper-fwd.hh>
+#include <paludis/resolver/resolution-fwd.hh>
+#include <paludis/util/pimp.hh>
+#include <paludis/util/attributes.hh>
+#include <paludis/package_id-fwd.hh>
+#include <paludis/dep_spec-fwd.hh>
+#include <paludis/environment-fwd.hh>
+#include <memory>
+
+namespace paludis
+{
+ namespace resolver
+ {
+ class PALUDIS_VISIBLE AllowedToRemoveHelper :
+ private Pimp<AllowedToRemoveHelper>
+ {
+ public:
+ explicit AllowedToRemoveHelper(const Environment * const);
+ ~AllowedToRemoveHelper();
+
+ void add_allowed_to_remove_spec(const PackageDepSpec &);
+
+ bool operator() (
+ const std::shared_ptr<const Resolution> &,
+ const std::shared_ptr<const PackageID> &) const;
+ };
+ }
+
+ extern template class Pimp<resolver::AllowedToRemoveHelper>;
+}
+
+#endif