P4C
The P4 Compiler
Loading...
Searching...
No Matches
generator.h
1
#ifndef BACKENDS_P4TOOLS_MODULES_SMITH_COMMON_GENERATOR_H_
2
#define BACKENDS_P4TOOLS_MODULES_SMITH_COMMON_GENERATOR_H_
3
4
#include <functional>
5
6
namespace
P4::P4Tools::P4Smith {
7
8
class
SmithTarget;
9
10
class
Generator
{
11
std::reference_wrapper<const SmithTarget> _target;
12
13
public
:
14
explicit
Generator
(
const
SmithTarget
&target) : _target(target) {}
15
16
const
SmithTarget
&target() {
return
_target; }
17
};
18
}
// namespace P4::P4Tools::P4Smith
19
20
#endif
/* BACKENDS_P4TOOLS_MODULES_SMITH_COMMON_GENERATOR_H_ */
P4::P4Tools::P4Smith::Generator
Definition
generator.h:10
P4::P4Tools::P4Smith::SmithTarget
Definition
p4tools/modules/smith/core/target.h:17
backends
p4tools
modules
smith
common
generator.h
Generated by
1.12.0