P4C
The P4 Compiler
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
Table::Format::Field Struct Reference

Public Types

enum  flags_t { NONE = 0 , USED_IMMED = 1 , ZERO = 3 }
 

Public Member Functions

 Field (const Field &f, Format *fmt)
 
 Field (Format *f)
 
 Field (Format *f, unsigned size, unsigned lo=0, enum flags_t fl=NONE)
 
unsigned bit (unsigned i)
 
unsigned hi (unsigned bit)
 
unsigned immed_bit (unsigned i)
 
bool operator== (const Field &a) const
 
void set_field_bits (bitvec &bitset) const
 mark all bits from the field in
 

Public Attributes

std::vector< bitrange_tbits
 
Field ** by_group = 0
 
std::string condition
 
bool conditional_value = false
 
unsigned flags = 0
 
Formatfmt
 
unsigned group = 0
 
unsigned size = 0
 

Member Function Documentation

◆ set_field_bits()

void Table::Format::Field::set_field_bits ( bitvec & bitset) const
inline

mark all bits from the field in

Parameters
bitset