retdec
|
Representation of named types (classes, templates). More...
#include <named_type.h>
Public Member Functions | |
std::shared_ptr< Node > | name () |
void | printLeft (std::ostream &s) const override |
Prints text representation of named 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< NamedTypeNode > | create (std::shared_ptr< Node > typeName, const Qualifiers &quals) |
Function for creating named types. If type the same type was already created, then that instance is returned. More... | |
Private Member Functions | |
NamedTypeNode (std::shared_ptr< Node > typeName, const Qualifiers &quals) | |
Private Attributes | |
std::shared_ptr< Node > | _typeName |
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 } |
![]() | |
TypeNode (const Qualifiers &quals) | |
![]() | |
Qualifiers | _quals |
![]() | |
Kind | _kind |
bool | _has_right |
Representation of named types (classes, templates).
|
private |
Private constructor for named types. Use create().
|
static |
Function for creating named types. If type the same type was already created, then that instance is returned.
typeName | Name of integral type to create. |
quals | See BuiltInTypeNode quals. |
std::shared_ptr< Node > retdec::demangler::borland::NamedTypeNode::name | ( | ) |
|
overridevirtual |
Prints text representation of named type with qualifiers to output stream.
Implements retdec::demangler::borland::Node.
|
private |