retdec
Static Public Member Functions | Private Member Functions | List of all members
retdec::demangler::borland::FloatTypeNode Class Reference

Representaion of floating point number types. More...

#include <float_type.h>

Inheritance diagram for retdec::demangler::borland::FloatTypeNode:
Inheritance graph
[legend]
Collaboration diagram for retdec::demangler::borland::FloatTypeNode:
Collaboration graph
[legend]

Static Public Member Functions

static std::shared_ptr< FloatTypeNodecreate (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 Public Member Functions inherited from retdec::demangler::borland::BuiltInTypeNode
static std::shared_ptr< BuiltInTypeNodecreate (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

- Public Types inherited from retdec::demangler::borland::Node
enum class  Kind {
  KFunction , KFunctionType , KName , KNestedName ,
  KNodeArray , KNodeString , KTypeNode , KBuiltInType ,
  KPointerType , KIntegralType , KCharType , KFloatType ,
  KParentheses , KReferenceType , KRReferenceType , KNamedType ,
  KTemplateNode , KArrayNode , KConversionOperator
}
 
- Public Member Functions inherited from retdec::demangler::borland::BuiltInTypeNode
virtual std::string typeName () const
 
void printLeft (std::ostream &s) const override
 Prints text representation of type with qualifiers to output stream. More...
 
- Public Member Functions inherited from retdec::demangler::borland::TypeNode
Qualifiers quals ()
 
- Public Member Functions inherited from retdec::demangler::borland::Node
 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 ()
 
- Protected Member Functions inherited from retdec::demangler::borland::BuiltInTypeNode
 BuiltInTypeNode (const std::string &typeName, const Qualifiers &quals)
 Private constructor for built-in type nodes. Use create(). More...
 
- Protected Member Functions inherited from retdec::demangler::borland::TypeNode
 TypeNode (const Qualifiers &quals)
 
- Protected Attributes inherited from retdec::demangler::borland::BuiltInTypeNode
std::string _typeName
 
- Protected Attributes inherited from retdec::demangler::borland::TypeNode
Qualifiers _quals
 
- Protected Attributes inherited from retdec::demangler::borland::Node
Kind _kind
 
bool _has_right
 

Detailed Description

Representaion of floating point number types.

Constructor & Destructor Documentation

◆ FloatTypeNode()

retdec::demangler::borland::FloatTypeNode::FloatTypeNode ( const std::string &  typeName,
const Qualifiers quals 
)
private

Private constructor for floating point types. Use create().

Member Function Documentation

◆ create()

std::shared_ptr< FloatTypeNode > retdec::demangler::borland::FloatTypeNode::create ( Context context,
const std::string &  typeName,
const Qualifiers quals 
)
static

Function for creating floating point types. If type the same type was already created, then that instance is returned.

Parameters
contextStorage for types.
typeNameName of integral type to create.
qualsSee BuiltInTypeNode quals.
Returns
Node representing floating point type.

The documentation for this class was generated from the following files: