retdec
type_config.h
Go to the documentation of this file.
1 
7 #ifndef RETDEC_DEFAULT_TYPE_CONFIG_H
8 #define RETDEC_DEFAULT_TYPE_CONFIG_H
9 
10 #include <map>
11 
13 
14 namespace retdec {
15 namespace ctypesparser {
16 
21 class TypeConfig {
22 public:
24  using TypeWidths = std::map<std::string, unsigned>;
26  using TypeSignedness = std::map<std::string, ctypes::IntegralType::Signess>;
27 
28 public:
29  TypeConfig();
30 
32 
34 
35  unsigned defaultBitWidth();
36 
37 private:
40  unsigned _defaultBitWidth;
41 };
42 
43 }
44 }
45 
46 #endif //RETDEC_DEFAULT_TYPE_CONFIG_H
Defines type widths and singnedness for types that are implementation specific. TODO add configuratio...
Definition: type_config.h:21
TypeSignedness _typeSignedness
Definition: type_config.h:39
TypeWidths typeWidths()
Definition: type_config.cpp:47
TypeSignedness typeSignedness()
Definition: type_config.cpp:52
std::map< std::string, ctypes::IntegralType::Signess > TypeSignedness
Set container for C-types' signedness.
Definition: type_config.h:26
TypeConfig()
Defines type widths and singnedness for types that are implementation specific.
Definition: type_config.cpp:15
std::map< std::string, unsigned > TypeWidths
Set container for C-types' bit width.
Definition: type_config.h:24
unsigned _defaultBitWidth
Definition: type_config.h:40
unsigned defaultBitWidth()
Definition: type_config.cpp:57
TypeWidths _typeWidths
Definition: type_config.h:38
A representation of integral types.
Definition: archive_wrapper.h:19