P4C
The P4 Compiler
Loading...
Searching...
No Matches
P4::UsedDeclSet Class Reference
Inheritance diagram for P4::UsedDeclSet:
[legend]

Public Member Functions

auto begin () const
 
void clear ()
 
void dbprint (std::ostream &cout) const override
 
auto end () const
 
bool isUsed (const IR::IDeclaration *decl) const
 
bool setUsed (const IR::IDeclaration *decl)
 
- Public Member Functions inherited from P4::IHasDbPrint
void print () const
 

Member Function Documentation

◆ dbprint()

void P4::UsedDeclSet::dbprint ( std::ostream & cout) const
overridevirtual

Implements P4::IHasDbPrint.

◆ isUsed()

bool P4::UsedDeclSet::isUsed ( const IR::IDeclaration * decl) const
inline
Returns
@true if decl is used in the program.