aboutsummaryrefslogtreecommitdiff
path: root/python/dep_spec.hh
diff options
context:
space:
mode:
Diffstat (limited to 'python/dep_spec.hh')
-rw-r--r--python/dep_spec.hh14
1 files changed, 14 insertions, 0 deletions
diff --git a/python/dep_spec.hh b/python/dep_spec.hh
index 1a10fc191..bd4825193 100644
--- a/python/dep_spec.hh
+++ b/python/dep_spec.hh
@@ -33,6 +33,7 @@ namespace paludis
class PythonAllDepSpec;
class PythonAnyDepSpec;
class PythonExactlyOneDepSpec;
+ class PythonAtMostOneDepSpec;
class PythonConditionalDepSpec;
class PythonStringDepSpec;
class PythonPlainTextDepSpec;
@@ -50,6 +51,7 @@ namespace paludis
public virtual DeclareAbstractAcceptMethods<PythonDepSpec, MakeTypeList<
PythonAnyDepSpec,
PythonExactlyOneDepSpec,
+ PythonAtMostOneDepSpec,
PythonAllDepSpec,
PythonConditionalDepSpec,
PythonBlockDepSpec,
@@ -115,6 +117,15 @@ namespace paludis
PythonExactlyOneDepSpec(const ExactlyOneDepSpec &);
};
+ class PALUDIS_VISIBLE PythonAtMostOneDepSpec :
+ public PythonCompositeDepSpec,
+ public ImplementAcceptMethods<PythonDepSpec, PythonAtMostOneDepSpec>
+ {
+ public:
+ PythonAtMostOneDepSpec();
+ PythonAtMostOneDepSpec(const AtMostOneDepSpec &);
+ };
+
class PALUDIS_VISIBLE PythonAllDepSpec :
public PythonCompositeDepSpec,
public ImplementAcceptMethods<PythonDepSpec, PythonAllDepSpec>
@@ -302,6 +313,7 @@ namespace paludis
void visit(const GenericSpecTree::NodeType<AllDepSpec>::Type &);
void visit(const GenericSpecTree::NodeType<AnyDepSpec>::Type &);
void visit(const GenericSpecTree::NodeType<ExactlyOneDepSpec>::Type &);
+ void visit(const GenericSpecTree::NodeType<AtMostOneDepSpec>::Type &);
void visit(const GenericSpecTree::NodeType<ConditionalDepSpec>::Type &);
void visit(const GenericSpecTree::NodeType<PackageDepSpec>::Type &);
@@ -339,6 +351,7 @@ namespace paludis
void visit(const PythonAllDepSpec &);
void visit(const PythonAnyDepSpec &);
void visit(const PythonExactlyOneDepSpec &);
+ void visit(const PythonAtMostOneDepSpec &);
void visit(const PythonConditionalDepSpec &);
void visit(const PythonPackageDepSpec &);
void visit(const PythonPlainTextDepSpec &);
@@ -354,6 +367,7 @@ namespace paludis
void real_visit(const PythonAllDepSpec &);
void real_visit(const PythonAnyDepSpec &);
void real_visit(const PythonExactlyOneDepSpec &);
+ void real_visit(const PythonAtMostOneDepSpec &);
void real_visit(const PythonConditionalDepSpec &);
void real_visit(const PythonPackageDepSpec &);
void real_visit(const PythonPlainTextDepSpec &);