aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/pretend_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/pretend_fetch_visitor.hh
parent6cf45c1cfa4bf675095a244693b9dbfd5e08daca (diff)
downloadpaludis-4231af5178d647d8ad932decfcf6a437bec63365.tar.gz
paludis-4231af5178d647d8ad932decfcf6a437bec63365.tar.xz
New easier tree visitors
Diffstat (limited to 'paludis/repositories/e/pretend_fetch_visitor.hh')
-rw-r--r--paludis/repositories/e/pretend_fetch_visitor.hh21
1 files changed, 7 insertions, 14 deletions
diff --git a/paludis/repositories/e/pretend_fetch_visitor.hh b/paludis/repositories/e/pretend_fetch_visitor.hh
index 3b770e0a2..e21f7e5e8 100644
--- a/paludis/repositories/e/pretend_fetch_visitor.hh
+++ b/paludis/repositories/e/pretend_fetch_visitor.hh
@@ -22,7 +22,8 @@
#include <paludis/action-fwd.hh>
#include <paludis/dep_label-fwd.hh>
-#include <paludis/dep_tree.hh>
+#include <paludis/dep_spec.hh>
+#include <paludis/spec_tree.hh>
#include <paludis/package_id-fwd.hh>
#include <paludis/repositories/e/eapi-fwd.hh>
#include <paludis/util/fs_entry-fwd.hh>
@@ -33,8 +34,7 @@ namespace paludis
namespace erepository
{
class PALUDIS_VISIBLE PretendFetchVisitor :
- private PrivateImplementationPattern<PretendFetchVisitor>,
- public ConstVisitor<FetchableURISpecTree>
+ private PrivateImplementationPattern<PretendFetchVisitor>
{
public:
PretendFetchVisitor(
@@ -48,17 +48,10 @@ namespace paludis
~PretendFetchVisitor();
- 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<ConditionalDepSpec>::Type & node);
+ void visit(const FetchableURISpecTree::NodeType<AllDepSpec>::Type & node);
+ void visit(const FetchableURISpecTree::NodeType<URILabelsDepSpec>::Type & node);
+ void visit(const FetchableURISpecTree::NodeType<FetchableURIDepSpec>::Type & node);
};
}