P4C
The P4 Compiler
Loading...
Searching...
No Matches
P4::EnumRepresentation Class Reference

Public Types

using const_iterator = decltype(repr)::const_iterator
 
using iterator = decltype(repr)::iterator
 

Public Member Functions

 EnumRepresentation (Util::SourceInfo srcInfo, unsigned width)
 
void add (cstring decl)
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
unsigned get (cstring decl) const
 

Public Attributes

const IR::Type_Bits * type