blob: ae9d1a98cd227aae3235f8ce3784b679d1786e14 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "spanlist.h"
#include "spantreevisitor.h"
namespace document {
SpanList::~SpanList() {
for (size_t i = 0; i < _span_vector.size(); ++i) {
delete _span_vector[i];
}
}
void SpanList::accept(SpanTreeVisitor &visitor) const {
visitor.visit(*this);
}
SimpleSpanList::SimpleSpanList(size_t sz) :
_span_vector(sz)
{
}
SimpleSpanList::~SimpleSpanList()
{
}
void SimpleSpanList::accept(SpanTreeVisitor &visitor) const {
visitor.visit(*this);
}
} // namespace document
|