aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/vespa/searchcore/proton/matching/termdataextractor.h
blob: 05bc6f8077793016706ef982641148d5f65c590b (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

#include <vector>

namespace search::query { class Node; }
namespace search::fef { class ITermData; }

namespace proton::matching {

struct TermDataExtractor {
    /**
     * Extracts pointers to all TermData objects stored in the term
     * nodes of the node tree.
     */
    static void extractTerms(const search::query::Node &node,
                             std::vector<const search::fef::ITermData *> &td);
};

}