retdec
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
retdec::ctypesparser::CTypesParser Class Reference

A base class for parsing to C-types. More...

#include <ctypes_parser.h>

Inheritance diagram for retdec::ctypesparser::CTypesParser:
Inheritance graph
[legend]
Collaboration diagram for retdec::ctypesparser::CTypesParser:
Collaboration graph
[legend]

Public Types

using TypeWidths = std::map< std::string, unsigned >
 Set container for C-types' bit width. More...
 
using TypeSignedness = std::map< std::string, ctypes::IntegralType::Signess >
 Set container for C-types' signedness. More...
 

Public Member Functions

virtual ~CTypesParser ()=default
 

Protected Member Functions

 CTypesParser ()
 Creates new C-types parser. More...
 
 CTypesParser (unsigned defaultBitWidth)
 Creates new C-types parser. More...
 

Protected Attributes

std::shared_ptr< retdec::ctypes::Contextcontext
 Container for already parsed functions, types. More...
 
TypeWidths typeWidths
 C-types' bit widths. More...
 
TypeSignedness typeSignedness
 C-types' signedness. More...
 
unsigned defaultBitWidth = 0
 Bitwidth used for types not in typeWidths. More...
 

Detailed Description

A base class for parsing to C-types.

Member Typedef Documentation

◆ TypeSignedness

Set container for C-types' signedness.

◆ TypeWidths

using retdec::ctypesparser::CTypesParser::TypeWidths = std::map<std::string, unsigned>

Set container for C-types' bit width.

Constructor & Destructor Documentation

◆ ~CTypesParser()

virtual retdec::ctypesparser::CTypesParser::~CTypesParser ( )
virtualdefault

◆ CTypesParser() [1/2]

retdec::ctypesparser::CTypesParser::CTypesParser ( )
protected

Creates new C-types parser.

◆ CTypesParser() [2/2]

retdec::ctypesparser::CTypesParser::CTypesParser ( unsigned  defaultBitWidth)
protected

Creates new C-types parser.

Parameters
defaultBitWidthBitWidth used for types that are not in typeWidths.

Member Data Documentation

◆ context

std::shared_ptr<retdec::ctypes::Context> retdec::ctypesparser::CTypesParser::context
protected

Container for already parsed functions, types.

◆ defaultBitWidth

unsigned retdec::ctypesparser::CTypesParser::defaultBitWidth = 0
protected

Bitwidth used for types not in typeWidths.

◆ typeSignedness

TypeSignedness retdec::ctypesparser::CTypesParser::typeSignedness
protected

C-types' signedness.

◆ typeWidths

TypeWidths retdec::ctypesparser::CTypesParser::typeWidths
protected

C-types' bit widths.


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