// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include namespace vespalib { class asciistream; } namespace search::query { class Range { vespalib::string _range; public: Range() : _range() {} Range(int64_t f, int64_t t); Range(const vespalib::string &range) : _range(range) {} const vespalib::string & getRangeString() const { return _range; } }; inline bool operator==(const Range &r1, const Range &r2) { return r1.getRangeString() == r2.getRangeString(); } vespalib::asciistream &operator<<(vespalib::asciistream &out, const Range &range); }