blob: fb4bc3943ae5a43f69b52a0e9a9dbe61f4b9e794 (
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
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include "symbol_lookup.h"
namespace vespalib { struct Memory; }
namespace vespalib::slime {
class SymbolTable;
/**
* Class used to look up the name of a field in a symbol table.
**/
class NamedSymbolLookup : public SymbolLookup
{
private:
const SymbolTable &_table;
const Memory &_name;
public:
NamedSymbolLookup(const SymbolTable &table, const Memory &name) noexcept
: _table(table), _name(name) {}
Symbol lookup() const override;
};
} // namespace vespalib::slime
|