retdec
|
Representation of integral types. More...
#include <integral_type.h>
Public Member Functions | |
bool | isUnsigned () |
std::string | typeName () const override |
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< IntegralTypeNode > | create (Context &context, const std::string &typeName, bool isUnsigned, const Qualifiers &quals) |
Function for creating integral types. If type the same type was already created, then that instance is returned. More... | |
![]() | |
static std::shared_ptr< BuiltInTypeNode > | create (Context &context, const std::string &typeName, const Qualifiers &quals) |
Creates unique pointer to built-in type nodes. More... | |
Private Member Functions | |
IntegralTypeNode (const std::string &typeName, bool isUnsigned, const Qualifiers &quals) | |
Private constructor for integral types. Use create(). More... | |
Private Attributes | |
bool | _isUnsigned |
Representation of integral types.
|
private |
Private constructor for integral types. Use create().
|
static |
Function for creating integral types. If type the same type was already created, then that instance is returned.
context | Storage for types. |
typeName | Name of integral type to create. |
isUnsigned | Information about intgral type signedness. |
quals | See BuiltInTypeNode quals. |
bool retdec::demangler::borland::IntegralTypeNode::isUnsigned | ( | ) |
|
overridevirtual |
Prints text representation of type with qualifiers to output stream.
Reimplemented from retdec::demangler::borland::BuiltInTypeNode.
|
overridevirtual |
Reimplemented from retdec::demangler::borland::BuiltInTypeNode.
|
private |