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
12
namespace
P4::P4Tools::P4Smith {
13
14
class
SmithTarget
;
15
16
class
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_ */
P4::P4Tools::P4Smith::SmithTarget
Definition
p4tools/modules/smith/core/target.h:23
backends
p4tools
modules
smith
common
generator.h
Generated by
1.13.2