aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/vespa/searchlib/queryeval/split_float.h
blob: ad30ffe232b61b22e64886c50e506e8c5fee71b9 (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.
// $Id$

#pragma once

#include <vector>
#include <vespa/vespalib/stllike/string.h>

namespace search::queryeval {

class SplitFloat
{
private:
    std::vector<vespalib::string> _parts;
public:
    SplitFloat(const vespalib::string &input);
    size_t parts() const { return _parts.size(); }
    const vespalib::string &getPart(size_t i) const { return _parts[i]; }
};

}