P4C
The P4 Compiler
|
#include <p4RuntimeArchHandler.h>
Static Public Member Functions | |
static std::optional< Counterlike< Kind > > | from (const IR::ExternBlock *instance, const ReferenceMap *refMap, P4::TypeMap *typeMap, ::p4::config::v1::P4TypeInfo *p4RtTypeInfo) |
static std::optional< Counterlike< Kind > > | fromDirect (const ExternInstance &instance, const IR::P4Table *table) |
Public Attributes | |
const IR::IAnnotated * | annotations |
If non-null, the instance's annotations. | |
const cstring | index_type_name |
const cstring | name |
The name of the instance. | |
const int64_t | size |
The size parameter to the instance. | |
const std::optional< cstring > | table |
If not none, the instance is a direct resource associated with @table. | |
const cstring | unit |
The units parameter to the instance; valid values vary depending on @Kind. | |
The information about a counter or meter instance which is necessary to serialize it. @Kind must be a class with a CounterlikeTraits<> specialization. This can be useful for different architectures as many define extern types for counter / meter. The architecture-specific code must specialize CounterlikeTraits<> appropriately.
|
inlinestatic |
|
inlinestatic |
const cstring P4::ControlPlaneAPI::Helpers::Counterlike< Kind >::index_type_name |
If the type of the index is a user-defined type, this is the name of the type. Otherwise it is nullptr.