blob: a29c3f4b73a5a7b90250e5e633af16fb11ef662e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// Copyright Yahoo. 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
|