P4C
The P4 Compiler
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
IR::ID Struct Reference
Inheritance diagram for 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
 
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
 
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 Attributes

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

Member Function Documentation

◆ getSourceInfo()

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

Implements Util::IHasSourceInfo.

◆ toString()

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

Implements Util::IHasSourceInfo.