retdec
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
retdec::demangler::borland::TypeNode Class Reference

Base class for all type nodes. More...

#include <type_node.h>

Inheritance diagram for retdec::demangler::borland::TypeNode:
Inheritance graph
[legend]
Collaboration diagram for retdec::demangler::borland::TypeNode:
Collaboration graph
[legend]

Public Member Functions

Qualifiers quals ()
 
- Public Member Functions inherited from retdec::demangler::borland::Node
 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 printLeft (std::ostream &s) const =0
 
virtual void printRight (std::ostream &s) const
 Some nodes need special trailing characters. More...
 
bool hasRight ()
 

Protected Member Functions

 TypeNode (const Qualifiers &quals)
 

Protected Attributes

Qualifiers _quals
 
- Protected Attributes inherited from retdec::demangler::borland::Node
Kind _kind
 
bool _has_right
 

Additional Inherited Members

- Public Types inherited from retdec::demangler::borland::Node
enum class  Kind {
  KFunction , KFunctionType , KName , KNestedName ,
  KNodeArray , KNodeString , KTypeNode , KBuiltInType ,
  KPointerType , KIntegralType , KCharType , KFloatType ,
  KParentheses , KReferenceType , KRReferenceType , KNamedType ,
  KTemplateNode , KArrayNode , KConversionOperator
}
 

Detailed Description

Base class for all type nodes.

Constructor & Destructor Documentation

◆ TypeNode()

retdec::demangler::borland::TypeNode::TypeNode ( const Qualifiers quals)
explicitprotected

Constructor for abstract class TypeNode.

Parameters
qualsQualifiers object. Types can have const/volatile qualifiers.

Member Function Documentation

◆ quals()

Qualifiers retdec::demangler::borland::TypeNode::quals ( )
Returns
Type qualifiers.

Member Data Documentation

◆ _quals

Qualifiers retdec::demangler::borland::TypeNode::_quals
protected

The documentation for this class was generated from the following files: