P4C
The P4 Compiler
Loading...
Searching...
No Matches
P4::P4Tools::TableUtils::KeyProperties Struct Reference

KeyProperties define properties of table keys that are useful for execution. More...

#include <table_utils.h>

Public Member Functions

 KeyProperties (IR::KeyElement const *key, cstring name, size_t index, cstring matchType, bool isTainted)
 

Public Attributes

size_t index
 The index of this key within the current table.
 
bool isTainted
 
IR::KeyElement const * key
 The original key element.
 
cstring matchType
 The match type of this key (exact, ternary, lpm, etc...)
 
cstring name
 The control plane name of the key.
 

Detailed Description

KeyProperties define properties of table keys that are useful for execution.

Member Data Documentation

◆ isTainted

bool P4::P4Tools::TableUtils::KeyProperties::isTainted

Whether the key is tainted. For matches such as LPM and ternary, we can still generate a match.