![]() |
P4C
The P4 Compiler
|
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_t > | bits |
Field ** | by_group = 0 |
std::string | condition |
bool | conditional_value = false |
unsigned | flags = 0 |
Format * | fmt |
unsigned | group = 0 |
unsigned | size = 0 |
|
inline |
mark all bits from the field in
bitset |