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
6namespace P4::P4Tools::P4Smith {
7
8class SmithTarget;
9
10class 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_ */
Definition generator.h:10
Definition p4tools/modules/smith/core/target.h:17