Supercharge Your Innovation With Domain-Expert AI Agents!

C++ object life cycle management method, equipment and medium of secondary development language

A secondary development, life cycle technology, applied in the field of cross programming language development, can solve problems such as system crash

Active Publication Date: 2021-02-02
广州南方智能技术有限公司
View PDF4 Cites 0 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, equipment and medium of secondary development language

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 of a secondary development language, comprising the following steps: designing a reference counting method, designing an intelligent pointer template class, designing an intelligent pointer template, writing generation codes, and configuring a secondary development environment. The invention relates to an electronic device and a readable storage medium, which are used for implementing the C++ object life cycle management method of the secondary development language. The invention solves the problem that the C++ ordinary pointer object is easily released directly by the secondary development language C#, JAVA, etc. after use, causing the system to crash, and ensures that the C++ memory data is correctly managed by the secondary development language, thereby improving the secondary development of the platform The stability makes secondary developers do not need to think too much about the memory problem of the object itself, reduces the technical ability requirements of developers, and makes the R&D platform easy to be developed 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
Patent Type & Authority Patents(China)
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