P4C
The P4 Compiler
Loading...
Searching...
No Matches
P4::IR::Traversal::Assign< T > Struct Template Reference

A selector used at the end of selector chain to assign to the current sub-object. e.g. modify(obj, &IR::AssignmentStatement::left, Assign(var)) will set the LHS of assignment. More...

#include <ir-traversal.h>

Public Member Functions

 Assign (const T &value)
 

Public Attributes

value
 

Detailed Description

template<typename T>
struct P4::IR::Traversal::Assign< T >

A selector used at the end of selector chain to assign to the current sub-object. e.g. modify(obj, &IR::AssignmentStatement::left, Assign(var)) will set the LHS of assignment.

Template Parameters
Tthe parameter is usually derived by the C++ compiler.