P4C
The P4 Compiler
Loading...
Searching...
No Matches
extern_info.h
1
#ifndef BACKENDS_P4TOOLS_MODULES_TESTGEN_CORE_EXTERN_INFO_H_
2
#define BACKENDS_P4TOOLS_MODULES_TESTGEN_CORE_EXTERN_INFO_H_
3
4
#include <sys/types.h>
5
6
#include "ir/id.h"
7
#include "ir/ir.h"
8
#include "ir/vector.h"
9
10
namespace
P4::P4Tools::P4Testgen {
11
14
class
ExternInfo
{
15
public
:
17
const
IR::MethodCallExpression &
originalCall
;
19
const
IR::PathExpression &
externObjectRef
;
21
const
IR::ID
&
methodName
;
23
const
IR::Vector<IR::Argument>
&
externArguments
;
24
25
ExternInfo
(
const
IR::MethodCallExpression &
originalCall
,
26
const
IR::PathExpression &
externObjectRef
,
const
IR::ID
&
methodName
,
27
const
IR::Vector<IR::Argument>
&
externArguments
)
28
:
originalCall
(
originalCall
),
29
externObjectRef
(
externObjectRef
),
30
methodName
(
methodName
),
31
externArguments
(
externArguments
) {}
32
34
ExternInfo
&
operator=
(
const
ExternInfo
&) =
delete
;
35
ExternInfo
&
operator=
(
ExternInfo
&&) =
delete
;
36
};
37
38
}
// namespace P4::P4Tools::P4Testgen
39
40
#endif
/* BACKENDS_P4TOOLS_MODULES_TESTGEN_CORE_EXTERN_INFO_H_ */
P4::IR::Vector
Definition
vector.h:59
P4::P4Tools::P4Testgen::ExternInfo
Definition
extern_info.h:14
P4::P4Tools::P4Testgen::ExternInfo::externArguments
const IR::Vector< IR::Argument > & externArguments
Arguments to the extern method.
Definition
extern_info.h:23
P4::P4Tools::P4Testgen::ExternInfo::originalCall
const IR::MethodCallExpression & originalCall
Reference to the original P4 extern call.
Definition
extern_info.h:17
P4::P4Tools::P4Testgen::ExternInfo::methodName
const IR::ID & methodName
Name of the extern method.
Definition
extern_info.h:21
P4::P4Tools::P4Testgen::ExternInfo::operator=
ExternInfo & operator=(const ExternInfo &)=delete
Do not accidentally copy-assign the extern info. It is only passed as reference.
P4::P4Tools::P4Testgen::ExternInfo::externObjectRef
const IR::PathExpression & externObjectRef
Name of the extern object the call was a member of, if any.
Definition
extern_info.h:19
P4::IR::ID
Definition
id.h:28
backends
p4tools
modules
testgen
core
extern_info.h
Generated by
1.12.0