blob: 6d47ae62520add536c5af6e4df2f761a75d33ca7 (
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
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include "inspector.h"
namespace vespalib::slime {
class Symbol;
/**
* Interface used when traversing all the fields of an object value
* tagged with symbol id.
**/
struct ObjectSymbolTraverser {
virtual void field(const Symbol &symbol, const Inspector &inspector) = 0;
virtual ~ObjectSymbolTraverser() {}
};
/**
* Interface used when traversing all the fields of an object value
* tagged with symbol name.
**/
struct ObjectTraverser {
virtual void field(const Memory &symbol, const Inspector &inspector) = 0;
virtual ~ObjectTraverser() {}
};
} // namespace vespalib::slime
|