aboutsummaryrefslogtreecommitdiffstats
path: root/document/src/vespa/document/annotation/spantreevisitor.h
blob: 91ce7868cb800e8fbe5aadb182a94691830667fb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

namespace document {
class AlternateSpanList;
class Span;
class SpanList;
class SimpleSpanList;

struct SpanTreeVisitor {
    virtual ~SpanTreeVisitor() {}

    virtual void visit(const Span &) = 0;
    virtual void visit(const SpanList &node) = 0;
    virtual void visit(const SimpleSpanList &node) = 0;
    virtual void visit(const AlternateSpanList &node) = 0;
};

}  // namespace document