retdec
|
Representation of array types. More...
#include <array_type.h>
Public Member Functions | |
std::shared_ptr< Node > | pointee () |
unsigned | size () |
void | printLeft (std::ostream &s) const override |
void | printRight (std::ostream &s) const override |
![]() | |
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 |
bool | hasRight () |
Static Public Member Functions | |
static std::shared_ptr< ArrayNode > | create (Context &context, std::shared_ptr< Node > pointee, unsigned size, const Qualifiers &quals) |
Function for creating array types. If type the same type was already created, then that instance is returned. More... | |
Private Member Functions | |
ArrayNode (std::shared_ptr< Node > pointee, unsigned size, const Qualifiers &quals) | |
Private Attributes | |
std::shared_ptr< Node > | _pointee |
unsigned | _size |
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 array types.
|
private |
Private constructor for array types. Use create().
|
static |
Function for creating array types. If type the same type was already created, then that instance is returned.
context | Storage for types. |
pointee | Type of array. |
size | |
quals |
std::shared_ptr< Node > retdec::demangler::borland::ArrayNode::pointee | ( | ) |
|
overridevirtual |
Prints left side of array type to output stream.
Implements retdec::demangler::borland::Node.
|
overridevirtual |
Prints right side of array type to output stream.
Reimplemented from retdec::demangler::borland::Node.
unsigned retdec::demangler::borland::ArrayNode::size | ( | ) |
|
private |
|
private |