aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/fetch_visitor.hh
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-01-09 13:46:00 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-01-09 13:46:00 +0000
commit4231af5178d647d8ad932decfcf6a437bec63365 (patch)
treebb0d7168d1aff08b6c087bd1aca0f42f8a33e1ed /paludis/repositories/e/fetch_visitor.hh
parent6cf45c1cfa4bf675095a244693b9dbfd5e08daca (diff)
downloadpaludis-4231af5178d647d8ad932decfcf6a437bec63365.tar.gz
paludis-4231af5178d647d8ad932decfcf6a437bec63365.tar.xz
New easier tree visitors
Diffstat (limited to 'paludis/repositories/e/fetch_visitor.hh')
-rw-r--r--paludis/repositories/e/fetch_visitor.hh22
1 files changed, 7 insertions, 15 deletions
diff --git a/paludis/repositories/e/fetch_visitor.hh b/paludis/repositories/e/fetch_visitor.hh
index f3917be3d..84013b2e3 100644
--- a/paludis/repositories/e/fetch_visitor.hh
+++ b/paludis/repositories/e/fetch_visitor.hh
@@ -23,13 +23,13 @@
#include <paludis/repositories/e/eapi-fwd.hh>
#include <paludis/util/attributes.hh>
#include <paludis/util/private_implementation_pattern.hh>
-#include <paludis/util/visitor-fwd.hh>
#include <paludis/util/fs_entry-fwd.hh>
#include <paludis/util/output_deviator-fwd.hh>
#include <paludis/dep_spec.hh>
-#include <paludis/dep_tree.hh>
+#include <paludis/spec_tree-fwd.hh>
#include <paludis/package_id-fwd.hh>
#include <paludis/environment-fwd.hh>
+#include <paludis/spec_tree.hh>
#include <tr1/memory>
namespace paludis
@@ -37,8 +37,7 @@ namespace paludis
namespace erepository
{
class PALUDIS_VISIBLE FetchVisitor :
- private PrivateImplementationPattern<FetchVisitor>,
- public ConstVisitor<FetchableURISpecTree>
+ private PrivateImplementationPattern<FetchVisitor>
{
public:
FetchVisitor(
@@ -55,17 +54,10 @@ namespace paludis
~FetchVisitor();
- void visit_sequence(const AllDepSpec &,
- FetchableURISpecTree::ConstSequenceIterator,
- FetchableURISpecTree::ConstSequenceIterator);
-
- void visit_sequence(const ConditionalDepSpec &,
- FetchableURISpecTree::ConstSequenceIterator,
- FetchableURISpecTree::ConstSequenceIterator);
-
- void visit_leaf(const URILabelsDepSpec &);
-
- void visit_leaf(const FetchableURIDepSpec &);
+ void visit(const FetchableURISpecTree::NodeType<FetchableURIDepSpec>::Type & node);
+ void visit(const FetchableURISpecTree::NodeType<URILabelsDepSpec>::Type & node);
+ void visit(const FetchableURISpecTree::NodeType<AllDepSpec>::Type & node);
+ void visit(const FetchableURISpecTree::NodeType<ConditionalDepSpec>::Type & node);
};
}
}