retdec
|
Representation of char types. More...
#include <char_type.h>
Public Member Functions | |
std::string | typeName () const override |
ThreeStateSignedness | signedness () |
void | printLeft (std::ostream &s) const override |
Prints text representation of char 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< CharTypeNode > | create (Context &context, ThreeStateSignedness signedness, const Qualifiers &quals) |
Function for creating char 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 | |
CharTypeNode (ThreeStateSignedness signedness, const Qualifiers &quals) | |
Private constructor for Char types. Use create(). More... | |
Private Attributes | |
ThreeStateSignedness | _signedness |
Representation of char types.
|
private |
Private constructor for Char types. Use create().
|
static |
Function for creating char types. If type the same type was already created, then that instance is returned.
context | Storage for types. |
signedness | Char signednes. Chars can be char, signed char, unsigned char. All are distinct types by standard. |
quals | See BuiltInTypeNode quals. |
|
overridevirtual |
Prints text representation of char type with qualifiers to output stream.
Reimplemented from retdec::demangler::borland::BuiltInTypeNode.
ThreeStateSignedness retdec::demangler::borland::CharTypeNode::signedness | ( | ) |
|
overridevirtual |
Reimplemented from retdec::demangler::borland::BuiltInTypeNode.
|
private |