aboutsummaryrefslogtreecommitdiff
path: root/paludis/resolver/constraint.hh
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-07-29 22:36:02 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-07-29 22:36:02 +0100
commit368ffe6421de8efb8c90923ccc0f6411629cdeee (patch)
treeecb99bd3360cad492930b3b53dd6e15181491614 /paludis/resolver/constraint.hh
parent665a627924124fc55f169c13e90d95f5c2697e93 (diff)
downloadpaludis-368ffe6421de8efb8c90923ccc0f6411629cdeee.tar.gz
paludis-368ffe6421de8efb8c90923ccc0f6411629cdeee.tar.xz
moar
Diffstat (limited to 'paludis/resolver/constraint.hh')
-rw-r--r--paludis/resolver/constraint.hh21
1 files changed, 21 insertions, 0 deletions
diff --git a/paludis/resolver/constraint.hh b/paludis/resolver/constraint.hh
index b94d566..a13d15b 100644
--- a/paludis/resolver/constraint.hh
+++ b/paludis/resolver/constraint.hh
@@ -44,7 +44,28 @@ namespace paludis
NamedValue<n::spec, PackageDepSpec> spec;
NamedValue<n::use_installed, UseInstalled> use_installed;
};
+
+ class PALUDIS_VISIBLE Constraints :
+ private PrivateImplementationPattern<Constraints>
+ {
+ public:
+ Constraints();
+ ~Constraints();
+
+ UseInstalled strictest_use_installed() const PALUDIS_ATTRIBUTE((warn_unused_result));
+
+ void add(const std::tr1::shared_ptr<const Constraint> &);
+
+ struct ConstIteratorTag;
+ typedef WrappedForwardIterator<ConstIteratorTag, const std::tr1::shared_ptr<const Constraint> > ConstIterator;
+ ConstIterator begin() const PALUDIS_ATTRIBUTE((warn_unused_result));
+ ConstIterator end() const PALUDIS_ATTRIBUTE((warn_unused_result));
+ };
}
+
+#ifdef PALUDIS_HAVE_EXTERN_TEMPLATE
+ extern template class PrivateImplementationPattern<resolver::Constraints>;
+#endif
}
#endif