P4C
The P4 Compiler
Loading...
Searching...
No Matches
BFN::MetadataField Struct Reference

A helper struct used to construct the metadata remapping tables. More...

#include <program_structure.h>

Public Member Functions

 MetadataField (cstring sn, cstring fn, int w)
 
 MetadataField (cstring sn, cstring fn, int w, bool isCG)
 
 MetadataField (cstring sn, cstring fn, int w, int o)
 
 MetadataField (cstring sn, cstring fn, int w, int o, bool isCG)
 
cstring name ()
 
bool operator!= (const MetadataField &a) const
 
bool operator< (const MetadataField &other) const
 
bool operator== (const MetadataField &other) const
 

Public Attributes

cstring fieldName
 
bool isCG
 
int offset
 
cstring structName
 
int width
 

Friends

std::ostream & operator<< (std::ostream &out, const BFN::MetadataField &m)
 

Detailed Description

A helper struct used to construct the metadata remapping tables.