Supercharge Your Innovation With Domain-Expert AI Agents!

C++ object life cycle management method and device for secondary development language, and medium

A secondary development and life cycle technology, applied in the field of cross-programming language development, can solve problems such as system crashes, and achieve the effect of improving stability and reducing technical capabilities.

Active Publication Date: 2019-10-22
广州南方智能技术有限公司
View PDF4 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In order to overcome the deficiencies in the prior art, the object of the present invention is to provide the C++ object life cycle management method of the secondary development language, which solves the problem that the common pointer object of C++ is easily released directly after being used by the secondary development language C#, JAVA, etc., causing the system crash problem

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • C++ object life cycle management method and device for secondary development language, and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] Below, the present invention will be further described in conjunction with the accompanying drawings and specific implementation methods. It should be noted that, under the premise of not conflicting, the various embodiments described below or the technical features can be combined arbitrarily to form new embodiments. .

[0031] The C++ object life cycle management method of the secondary development language, such as figure 1 shown, including the following steps:

[0032] Customize the implementation of smart pointers belonging to the code conversion tool platform itself, and handle the reference counting of C++ class pointer objects, including the following steps:

[0033] Design the reference counting method, design the class with the reference counting method as the base class, write the member functions and member variables of the reference counting method into the base class, and all classes that need to use the internal smart pointer object inherit the base clas...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a C++ object life cycle management method for a secondary development language. The method comprises the following steps of designing a reference counting mode, designing an intelligent pointer template class, designing an intelligent pointer template, compiling a generation mode code and configuring a secondary development environment. The invention relates to an electronicdevice and a readable storage medium, which are used for executing a C++ object life cycle management method of a secondary development language. The problem that a C++ common pointer object is easily and directly released by secondary development languages C#, JAVA and the like after being used, causing system crash, is solved. The C++ memory data is ensured to be correctly managed by the secondary development language, so that the stability of secondary development of the platform is improved, secondary developers do not need to consider the memory problem of the object excessively, the requirements of the developers on the technical capability are reduced, and the research and development platform is easy to develop by more people.

Description

technical field [0001] The invention relates to the technical field of cross-programming language development, in particular to a C++ object life cycle management method, equipment and medium of a secondary development language. Background technique [0002] On the premise of research and development of a basic platform, in order to ensure that the self-developed platform has higher operating efficiency, among many development languages, C++ is a very good choice. C++ is an object-oriented programming language, and many high-level programming languages ​​themselves It is packaged and optimized on the basis of C++, so C++ can naturally interact with these programming languages, while other languages ​​are either very expensive to learn, such as assembly language, or difficult to interact with other languages, such as C# , Java language, C language as a functional language, the programming difficulty is relatively high, and the code is difficult to manage and control, so C++ i...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F8/70
CPCG06F8/70
Inventor 陶超韦锦超吕时有文述生闫少霞王江林李宁周光海肖浩威黄劲风马原徐丹龙杨艺丁永祥刘国光郝志刚
Owner 广州南方智能技术有限公司
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More