P4C
The P4 Compiler
Toggle main menu visibility
Main Page
P4C Repository Organization
Getting Started
P4C Intermediate Representation (IR)
Frontend
Midend
Backends
Behavioral Model Backend
DPDK Backend
eBPF Backend
TC Backend
uBPF Backend
P4test Backend
Graphs Backend
p4fmt (P4 Formatter)
P4Tools
P4Smith
P4Testgen
Contribute to the P4 Compiler Project
Releases
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
w
x
z
Functions
a
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
w
x
Variables
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
z
~
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
Typedefs
Enumerations
Enumerator
Related Symbols
►
P4 Compiler Documentation (P4C)
•
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Modules
Pages
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
};
10
class
Generator {
…
};
18
}
// namespace P4::P4Tools::P4Smith
19
20
#endif
/* BACKENDS_P4TOOLS_MODULES_SMITH_COMMON_GENERATOR_H_ */
P4::P4Tools::P4Smith::SmithTarget
Definition
p4tools/modules/smith/core/target.h:17
backends
p4tools
modules
smith
common
generator.h
Generated by
1.13.2