P4C
The P4 Compiler
Loading...
Searching...
No Matches
P4::IR::ID Struct Reference
Inheritance diagram for P4::IR::ID:
[legend]

Public Member Functions

 ID (const char *n)
 
 ID (cstring n)
 
 ID (cstring n, cstring old)
 
 ID (std::string n)
 
 ID (Util::SourceInfo si, cstring n)
 
 ID (Util::SourceInfo si, cstring n, cstring o)
 
void dbprint (std::ostream &out) const override
 
Util::SourceInfo getSourceInfo () const override
 
bool isDontCare () const
 
 operator bool () const
 
 operator cstring () const
 
bool operator!= (const char *a) const
 
bool operator!= (const ID &a) const
 
bool operator!= (cstring a) const
 
bool operator< (const char *a) const
 Defer to cstring's notion of less, which is a lexicographical and not a pointer comparison.
 
bool operator< (const ID &a) const
 Defer to cstring's notion of less, which is a lexicographical and not a pointer comparison.
 
bool operator< (cstring a) const
 Defer to cstring's notion of less, which is a lexicographical and not a pointer comparison.
 
bool operator== (const char *a) const
 
bool operator== (const ID &a) const
 
bool operator== (cstring a) const
 
std::string string () const
 
std::string_view string_view () const
 
cstring toString () const override
 
- Public Member Functions inherited from P4::Util::IHasSourceInfo
- Public Member Functions inherited from P4::IHasDbPrint
void print () const
 

Public Attributes

cstring name = nullptr
 
cstring originalName = nullptr
 
Util::SourceInfo srcInfo
 

Member Function Documentation

◆ dbprint()

void P4::IR::ID::dbprint ( std::ostream & out) const
inlineoverridevirtual

Implements P4::IHasDbPrint.

◆ getSourceInfo()

Util::SourceInfo P4::IR::ID::getSourceInfo ( ) const
inlineoverridevirtual

◆ toString()

cstring P4::IR::ID::toString ( ) const
inlineoverridevirtual