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

Basic table properties that are set when initializing the TableStepper. More...

#include <table_utils.h>

Public Attributes

std::map< cstring, int > actionIdMap
 
bool defaultIsImmutable = false
 Indicates whether the default action can be overridden.
 
std::vector< KeyPropertiesresolvedKeys
 Ordered list of key fields with useful properties.
 
bool tableIsImmutable = false
 Whether the table is constant and can not accept control plane entries.
 
bool tableIsTainted = false
 Whether key expressions of the table contain taint. This makes it difficult to match.
 
cstring tableName
 Control plane name of the table.
 

Detailed Description

Basic table properties that are set when initializing the TableStepper.

Member Data Documentation

◆ actionIdMap

std::map<cstring, int> P4::P4Tools::TableUtils::TableProperties::actionIdMap

Maps an action in the action list to a numerical identifier. We do not use IR::MethodCallExpression here because we also look up switch labels.

◆ defaultIsImmutable

bool P4::P4Tools::TableUtils::TableProperties::defaultIsImmutable = false

Indicates whether the default action can be overridden.

◆ resolvedKeys

std::vector<KeyProperties> P4::P4Tools::TableUtils::TableProperties::resolvedKeys

Ordered list of key fields with useful properties.

◆ tableIsImmutable

bool P4::P4Tools::TableUtils::TableProperties::tableIsImmutable = false

Whether the table is constant and can not accept control plane entries.

◆ tableIsTainted

bool P4::P4Tools::TableUtils::TableProperties::tableIsTainted = false

Whether key expressions of the table contain taint. This makes it difficult to match.

◆ tableName

cstring P4::P4Tools::TableUtils::TableProperties::tableName

Control plane name of the table.