aboutsummaryrefslogtreecommitdiff
path: root/paludis/dep_spec.hh
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2012-05-06 20:51:28 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2012-05-12 11:33:35 +0100
commit57229d3c88a580548406b10198088698421f7967 (patch)
treeef3986438029cddae3f2f19ab1e5000048851ffd /paludis/dep_spec.hh
parent984050842f2dd81d34cd2de19cf58709a5e90b15 (diff)
downloadpaludis-57229d3c88a580548406b10198088698421f7967.tar.gz
paludis-57229d3c88a580548406b10198088698421f7967.tar.xz
Add AtMostOneDepSpec
Diffstat (limited to 'paludis/dep_spec.hh')
-rw-r--r--paludis/dep_spec.hh21
1 files changed, 21 insertions, 0 deletions
diff --git a/paludis/dep_spec.hh b/paludis/dep_spec.hh
index 9f8254345..3fc076af1 100644
--- a/paludis/dep_spec.hh
+++ b/paludis/dep_spec.hh
@@ -170,6 +170,27 @@ namespace paludis
};
/**
+ * Represents a ?? ( first second third ) group of requirements.
+ *
+ * \ingroup g_dep_spec
+ * \nosubgrouping
+ * \since 0.56
+ */
+ class PALUDIS_VISIBLE AtMostOneDepSpec :
+ public DepSpec
+ {
+ public:
+ ///\name Basic operations
+ ///\{
+
+ AtMostOneDepSpec();
+
+ ///\}
+
+ virtual std::shared_ptr<DepSpec> clone() const PALUDIS_ATTRIBUTE((warn_unused_result));
+ };
+
+ /**
* Represents a dependency spec whose children should only be considered
* upon a certain condition (for example, a use dependency block).
*