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 466a5eaf5..08ab37296 100644
--- a/python/dep_spec.hh
+++ b/python/dep_spec.hh
@@ -32,6 +32,7 @@ namespace paludis
class PythonCompositeDepSpec;
class PythonAllDepSpec;
class PythonAnyDepSpec;
+ class PythonExactlyOneDepSpec;
class PythonConditionalDepSpec;
class PythonStringDepSpec;
class PythonPlainTextDepSpec;
@@ -48,6 +49,7 @@ namespace paludis
class PALUDIS_VISIBLE PythonDepSpec :
public virtual DeclareAbstractAcceptMethods<PythonDepSpec, MakeTypeList<
PythonAnyDepSpec,
+ PythonExactlyOneDepSpec,
PythonAllDepSpec,
PythonConditionalDepSpec,
PythonBlockDepSpec,
@@ -102,6 +104,15 @@ namespace paludis
PythonAnyDepSpec(const AnyDepSpec &);
};
+ class PALUDIS_VISIBLE PythonExactlyOneDepSpec :
+ public PythonCompositeDepSpec,
+ public ImplementAcceptMethods<PythonDepSpec, PythonExactlyOneDepSpec>
+ {
+ public:
+ PythonExactlyOneDepSpec();
+ PythonExactlyOneDepSpec(const ExactlyOneDepSpec &);
+ };
+
class PALUDIS_VISIBLE PythonAllDepSpec :
public PythonCompositeDepSpec,
public ImplementAcceptMethods<PythonDepSpec, PythonAllDepSpec>
@@ -290,6 +301,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<ConditionalDepSpec>::Type &);
void visit(const GenericSpecTree::NodeType<PackageDepSpec>::Type &);
@@ -326,6 +338,7 @@ namespace paludis
void visit(const PythonAllDepSpec &);
void visit(const PythonAnyDepSpec &);
+ void visit(const PythonExactlyOneDepSpec &);
void visit(const PythonConditionalDepSpec &);
void visit(const PythonPackageDepSpec &);
void visit(const PythonPlainTextDepSpec &);
@@ -340,6 +353,7 @@ namespace paludis
void real_visit(const PythonAllDepSpec &);
void real_visit(const PythonAnyDepSpec &);
+ void real_visit(const PythonExactlyOneDepSpec &);
void real_visit(const PythonConditionalDepSpec &);
void real_visit(const PythonPackageDepSpec &);
void real_visit(const PythonPlainTextDepSpec &);