Unlock instant, AI-driven research and patent intelligence for your innovation.

A Checking Method for Programming Conventions in Template Libraries

A checking method and template library technology, applied in the direction of program control design, instrumentation, calculation, etc., can solve the problems of code that does not conform to programming conventions, difficult to locate programs, etc., and achieve the effect of simple process

Active Publication Date: 2017-12-12
HUAZHONG UNIV OF SCI & TECH
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In view of the above defects or improvement needs of the prior art, the present invention provides a method for checking the programming conventions of the template library. By abstracting the programming conventions, it can effectively solve the problem that the existing C++ task parallel template library is difficult to locate in programs that do not conform to the programming conventions. problem with the code

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
  • A Checking Method for Programming Conventions in Template Libraries
  • A Checking Method for Programming Conventions in Template Libraries
  • A Checking Method for Programming Conventions in Template Libraries

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not constitute a conflict with each other.

[0020] In the C++ task parallel template library provided by the present invention, programmers are required to use the library as follows: use a para object to accommodate an executable object, and the executable object must be a function or an instance of a class that has overloaded the operator() method. para is a template class that requires the user to provide a template type parameter to r...

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 discloses a checking method related to template library programming agreement, which belongs to the technical field of computer parallel program design. The present invention firstly describes the programming convention as a state, and describes the transition of the state as calling a specified method in the programming convention; then realizes the state as a class, and writes a method in the class that conforms to the programming convention for the programmer to call, so that Ensure that when the programmer violates the programming convention, the compiler will stop compiling and give corresponding prompts; predict what errors the programmer may make, and add methods to the corresponding class representing the state, so that when the programmer violates the programming convention Corresponding prompt information can be given to help programmers check and correct errors. The invention can effectively improve the efficiency of programmers in writing parallel programs.

Description

technical field [0001] The invention belongs to the technical field of computer parallel program design, and more specifically relates to a checking method for template library programming conventions. Background technique [0002] With the continuous development of computer CPUs towards multi-core, the era of pursuing high-performance single-core processors is over. People can no longer just wait for chip manufacturers to launch new processors to improve program performance. Parallel approach to improve the performance of serial applications, programmers began to move towards parallel programming. [0003] Traditional parallel programming models (such as MPI and earlier versions of OpenMP) can only be aimed at expert-level, experienced programmers, or applications that can only adapt to the rules. What is needed in the multi-core era is an easy-to-program, high-capacity parallel programming tool for broader application fields. In recent years, many new parallel programmin...

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): G06F9/45G06F11/36
Inventor 金海范学鹏廖小飞王思远李陈希
Owner HUAZHONG UNIV OF SCI & TECH
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