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

Public Types

enum  TypeEnum {
  B , H , W , TB ,
  TH , TW , MB , MH ,
  MW , DB , DH , DW
}
 

Public Member Functions

 Type (const char *name, bool abort_if_invalid=true)
 
 Type (const Type &t)
 
 Type (Kind k, Size s)
 
 Type (TypeEnum te)
 
Kind kind () const
 
unsigned log2sz () const
 
bool operator!= (Type c) const
 
bool operator< (Type c) const
 
Typeoperator= (const Type &t)
 
bool operator== (Type c) const
 
Size size () const
 
cstring toString () const
 
bool valid () const
 

Friends

size_t hash_value (const Type &c)
 

Member Function Documentation

◆ toString()

cstring PHV::Type::toString ( ) const
Returns
a string representation of this container type.