P4C
The P4 Compiler
Loading...
Searching...
No Matches
P4::ControlPlaneAPI::Standard::Register Struct Reference

Static Public Member Functions

template<Arch arch>
static std::optional< Registerfrom (const IR::ExternBlock *instance, const ReferenceMap *refMap, P4::TypeMap *typeMap, p4configv1::P4TypeInfo *p4RtTypeInfo)
 

Public Attributes

const IR::IAnnotated * annotations
 
const cstring index_type_name
 
const cstring name
 
const int64_t size
 
const p4configv1::P4DataTypeSpec * typeSpec
 

Member Function Documentation

◆ from()

template<Arch arch>
static std::optional< Register > P4::ControlPlaneAPI::Standard::Register::from ( const IR::ExternBlock * instance,
const ReferenceMap * refMap,
P4::TypeMap * typeMap,
p4configv1::P4TypeInfo * p4RtTypeInfo )
inlinestatic
Returns
the information required to serialize an @instance of register or std::nullopt in case of error.