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

#include <phv.h>

Public Types

enum  use_t { READ = 1 , WRITE = 2 , READWRITE = READ | WRITE , LIVE = 4 }
 

Public Member Functions

 FieldUse (unsigned u)
 
bool isLive () const
 
bool isOnlyReadAndNotLive () const
 
bool isOnlyWriteAndNotLive () const
 
bool isRead () const
 
bool isReadAndWrite () const
 
bool isReadWrite () const
 
bool isWrite () const
 
 operator bool () const
 
bool operator!= (FieldUse u) const
 
FieldUse operator& (const FieldUse &u) const
 
bool operator< (FieldUse u) const
 
bool operator<= (FieldUse u) const
 
bool operator== (FieldUse u) const
 
bool operator> (FieldUse u) const
 
bool operator>= (FieldUse u) const
 
FieldUse operator| (const FieldUse &u) const
 
FieldUseoperator|= (const FieldUse &u)
 
cstring toString (unsigned dark=0) const
 

Detailed Description

This class describes the state of the use of a PHV container. In any given unit, the PHV may be read, written, both read and written, or merely be live.