![]()  | 
  
    P4C
    
   The P4 Compiler 
   | 
 
#include <convertErrors.h>
Public Member Functions | |
| virtual IR::IndexedVector< IR::SerEnumMember > * | assignValues (IR::Type_Error *type, unsigned width) const | 
| virtual bool | convert (const IR::Type_Error *type) const =0 | 
| If true this type has to be converted.  | |
| virtual unsigned | errorSize (unsigned errorCount) const =0 | 
Policy function: given a number of error values should return the size of a Type_Bits type used to represent the values. This class is lefted from enum conversion path.
      
  | 
  virtual | 
This function allows backends to override the values for the error constants. Default values for error constants is a sequence of numbers starting with 0.
      
  | 
  pure virtual | 
errorCount is the number of different error values. The returned value is the width of Type_Bits used to represent the error. Obviously, we must have 2^(return) >= errorCount.