retdec
|
Node for representation of sequence of Nodes. More...
#include <node_array.h>
Public Member Functions | |
void | printLeft (std::ostream &s) const override |
Prints text representaion of array. More... | |
![]() | |
void | addNode (std::shared_ptr< Node > node) |
Appends new node to array. More... | |
bool | empty () const |
size_t | size () |
std::shared_ptr< Node > | get (unsigned i) const |
![]() | |
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< NodeString > | create () |
![]() | |
static std::shared_ptr< NodeArray > | create () |
Creates shared pointer to new NodeArray object. More... | |
Protected Member Functions | |
NodeString () | |
![]() | |
NodeArray () | |
Private constructor for NodeArray. Use create(). More... | |
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 } |
![]() | |
std::vector< std::shared_ptr< Node > > | _nodes |
![]() | |
Kind | _kind |
bool | _has_right |
Node for representation of sequence of Nodes.
|
protected |
|
static |
|
overridevirtual |
Prints text representaion of array.
s | Output stream. |
Reimplemented from retdec::demangler::borland::NodeArray.