High-efficiency dynamic type conversion implementation method
A technology of dynamic type and implementation method, which is applied in the field of program compilation and can solve performance problems and other problems
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0068] The present invention will be further described below through the embodiments and in conjunction with the accompanying drawings.
[0069] The invention is an efficient dynamic type conversion method oriented to C++ language. figure 1 It is a piece of C++ sample code, which describes all the classes (19 in total) in the sample program and their mutual inheritance relationship. This code snippet is a simplified version, omitting the internal member functions and member variable information of each class. In its full version code, each class contains a virtual function and an integer member variable, for example, class D2 contains a virtual function void fooD2() and an integer member variable int intD2.
[0070] figure 2 It shows the memory layout diagram of a class A object at runtime after the sample code is compiled by GCC. The RTTI information used for dynamic type conversion is the typeinfo of the class. The C++ standard stipulates that typeinfo must conta...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More - R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com



