P4C
The P4 Compiler
|
Select an index of a integer-indexed sub-object. This is useful e.g. to select first parameter of a method call and in similar cases involving IR::Vector or IR::IndexedVector. More...
#include <ir-traversal.h>
Public Member Functions | |
Index (size_t value) | |
Public Attributes | |
size_t | value |
Select an index of a integer-indexed sub-object. This is useful e.g. to select first parameter of a method call and in similar cases involving IR::Vector or IR::IndexedVector.
This snippet assigns val
into the first argument of a method call.