retdec
|
Representaion of floating point number types. More...
#include <float_type.h>
Static Public Member Functions | |
static std::shared_ptr< FloatTypeNode > | create (Context &context, const std::string &typeName, const Qualifiers &quals) |
Function for creating floating point 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 | |
FloatTypeNode (const std::string &typeName, const Qualifiers &quals) | |
Private constructor for floating point types. 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 } |
![]() | |
virtual std::string | typeName () const |
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 () |
![]() | |
BuiltInTypeNode (const std::string &typeName, const Qualifiers &quals) | |
Private constructor for built-in type nodes. Use create(). More... | |
![]() | |
TypeNode (const Qualifiers &quals) | |
![]() | |
std::string | _typeName |
![]() | |
Qualifiers | _quals |
![]() | |
Kind | _kind |
bool | _has_right |
Representaion of floating point number types.
|
private |
Private constructor for floating point types. Use create().
|
static |
Function for creating floating point 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. |
quals | See BuiltInTypeNode quals. |