retdec
|
Node for representation of built-in types. Used for types: void, bool, char16_t, char32_t and wchar_t. More...
#include <built_in_type.h>
Public Member Functions | |
virtual std::string | typeName () const |
void | printLeft (std::ostream &s) const override |
Prints text representation of type with qualifiers to output stream. More... | |
![]() | |
Qualifiers | quals () |
![]() | |
Node (Kind kind, bool has_right_side=false) | |
Abstract constructor for base node. More... | |
virtual | ~Node ()=default |
void | print (std::ostream &s) const |
Prints left side of node. More... | |
std::string | str () const |
Kind | kind () const |
virtual void | printRight (std::ostream &s) const |
Some nodes need special trailing characters. More... | |
bool | hasRight () |
Static Public Member Functions | |
static std::shared_ptr< BuiltInTypeNode > | create (Context &context, const std::string &typeName, const Qualifiers &quals) |
Creates unique pointer to built-in type nodes. More... | |
Protected Member Functions | |
BuiltInTypeNode (const std::string &typeName, const Qualifiers &quals) | |
Private constructor for built-in type nodes. Use create(). More... | |
![]() | |
TypeNode (const Qualifiers &quals) | |
Protected Attributes | |
std::string | _typeName |
![]() | |
Qualifiers | _quals |
![]() | |
Kind | _kind |
bool | _has_right |
Additional Inherited Members | |
![]() | |
enum class | Kind { KFunction , KFunctionType , KName , KNestedName , KNodeArray , KNodeString , KTypeNode , KBuiltInType , KPointerType , KIntegralType , KCharType , KFloatType , KParentheses , KReferenceType , KRReferenceType , KNamedType , KTemplateNode , KArrayNode , KConversionOperator } |
Node for representation of built-in types. Used for types: void, bool, char16_t, char32_t and wchar_t.
|
protected |
Private constructor for built-in type nodes. Use create().
typeName | Representation of type name. |
quals |
|
static |
Creates unique pointer to built-in type nodes.
context | |
typeName | Representation of type name. |
quals |
|
overridevirtual |
Prints text representation of type with qualifiers to output stream.
Implements retdec::demangler::borland::Node.
Reimplemented in retdec::demangler::borland::IntegralTypeNode, and retdec::demangler::borland::CharTypeNode.
|
virtual |
Reimplemented in retdec::demangler::borland::IntegralTypeNode, and retdec::demangler::borland::CharTypeNode.
|
protected |