aboutsummaryrefslogtreecommitdiff
path: root/paludis/package_dep_spec_constraint.hh
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-04-04 07:47:28 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-04-04 08:33:00 +0100
commit508e7564e1d8d1de765d4d517bc899b7ef137716 (patch)
treeb37e064c3697c72ff90ac70972ed4e779a9bbb0e /paludis/package_dep_spec_constraint.hh
parentde5f08b35621fd4a790885b2707468203b2df379 (diff)
downloadpaludis-508e7564e1d8d1de765d4d517bc899b7ef137716.tar.gz
paludis-508e7564e1d8d1de765d4d517bc899b7ef137716.tar.xz
Move match logic to constraint class
Diffstat (limited to 'paludis/package_dep_spec_constraint.hh')
-rw-r--r--paludis/package_dep_spec_constraint.hh6
1 files changed, 6 insertions, 0 deletions
diff --git a/paludis/package_dep_spec_constraint.hh b/paludis/package_dep_spec_constraint.hh
index 87643bbda..10bf96b86 100644
--- a/paludis/package_dep_spec_constraint.hh
+++ b/paludis/package_dep_spec_constraint.hh
@@ -24,6 +24,8 @@
#include <paludis/name.hh>
#include <paludis/version_operator-fwd.hh>
#include <paludis/version_spec-fwd.hh>
+#include <paludis/environment-fwd.hh>
+#include <paludis/package_id-fwd.hh>
#include <paludis/util/attributes.hh>
#include <paludis/util/pool.hh>
@@ -291,6 +293,10 @@ namespace paludis
const std::string key() const PALUDIS_ATTRIBUTE((warn_unused_result));
KeyConstraintOperation operation() const PALUDIS_ATTRIBUTE((warn_unused_result));
const std::string pattern() const PALUDIS_ATTRIBUTE((warn_unused_result));
+
+ bool matches(
+ const Environment * const env,
+ const std::shared_ptr<const PackageID> & id) const PALUDIS_ATTRIBUTE((warn_unused_result));
};
extern template class Pool<NameConstraint>;