P4C
The P4 Compiler
Loading...
Searching...
No Matches
generator.h
1/*
2 * SPDX-FileCopyrightText: 2024 The P4 Language Consortium
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef BACKENDS_P4TOOLS_MODULES_SMITH_COMMON_GENERATOR_H_
8#define BACKENDS_P4TOOLS_MODULES_SMITH_COMMON_GENERATOR_H_
9
10#include <functional>
11
12namespace P4::P4Tools::P4Smith {
13
14class SmithTarget;
15
16class Generator {
17 std::reference_wrapper<const SmithTarget> _target;
18
19 public:
20 explicit Generator(const SmithTarget &target) : _target(target) {}
21
22 const SmithTarget &target() { return _target; }
23};
24} // namespace P4::P4Tools::P4Smith
25
26#endif /* BACKENDS_P4TOOLS_MODULES_SMITH_COMMON_GENERATOR_H_ */
Definition p4tools/modules/smith/core/target.h:23