The Research and Implementation of Refactor Applied to C++ Template
- Author
- GuanXiaoChong
- Advisor
- ZhengYouCai
- School
- Xi'an University of Electronic Science and Technology
- Major
- Computer Software and Theory
- Classification
- TP311.1 Programming
- Degree
- Master's thesis
- Year
- 2004
- Downloads
- 150
- Citations
- 0
Abstract
There is a potential trend of complication and depression of internal structure and order of software in the process of software development and evolvement. In order to prevent from or alter the trend, the research of software refactor technology is triggered. Refactor, providing a technique for cleaning up code in a more efficient and controlled manner, reconstructs the internal structure of software without changing its observable behavior. Although it cleans up code apparently, refactor is rather a modification of design contained by the code.Generic programming is a programming paradigm which is supported by the C++ template language mechanism. Based on the deep study of generic programming paradigm, this paper analyzes and describes the refactor applied to generic program. A catalog of refactorings that people apply to generic program and their corresponding preconditions is identified and described formally in this paper. Furthermore, this paper presents the design and implement of a tool, CppRefactory, which can perform some of the refactorings in the proposed list. The preconditions are checked to estimate whether the refactoring is to change the observable behavior of the software, and the refactor tool need implement it to acquire the reliability.
Table of contents
The first chapter 7-11
1.1 dissertation research background 7
1.2 Research status and content of 7-9
1.3 The main contents and chapters arranged 9-11
Chapter reconstructed C program 11-26
2.1 C language support for reconstruction and limitations 11-13 <br / > 2.2 is currently remodeling the C language programming style support 13-18
2.2.1 object-oriented programming 13-15
2.2.2 procedural programming design 15-16
2.2.3 pretreatment reconstruction 16-18
2.3 refactoring support for generic programming 18-26 <br / > 2.3.1 generic Programming features 18-19
2.3.2 for conceptual design 19-20
2.3.3 static polymorphism and dynamic polymorphism 20-21
2.3.4 generic program restructuring 21-26
Chapter generic program restructuring research and formal description 26-73
3.1 describes a model refactoring C programs 26-43
3.1.1 C program entity model 27-32
3.1.2 assisted analysis functions 32-43
3.2 basic reconstruction 43-66
3.2.1 increase the program entity 44-53
3.2.2 remove Programs entity 53-55
3.2.3 to change the program entity 55-66
3.3 more complex reconstruction 66-73
Chapter automated refactoring tools CppRefactory design and implementation 73-85
4.1 automated refactoring tools 73-76
4.2 automated refactoring tool performance standards 76-77
4.3 CppRefactory design and Implementation 77-85
4.3.1 CppRefactory frame structure 77-78
4.3.2 application view module 78-79
4.3.3 program logic module ( program database ) 79-82
4.3.4 code refactoring module 82-85
Conclusion 85 - 86
Thanks 86-87
References 87-90
during the reading of the research 90
Related dissertations
- A Mobile-platform Based Cloud Web Structure Transform
- Study on the Network Flow Statistics System Based on NETSTREAM
- Research on Resource Virtualization in Cloud Manufacturing
- Research on the Automatic Generation of Customer Reviews Report Facing Network
- Research on SAP ERP Template Development and Implementation
- Laboratory Equipment Running Management System Based on the Internet of Things Technology
- Design and Development of Data Acquisition and Processing System for Tilapia Industry
- Design and Implementation of Virtual Campus Roaming System
- Design and Implementation of Household Registration Management System Under Fire Safety for Key Unit
- Design and Implementation of Education-Oriented Instance Message Software System
- Studies on the Preparation of ZnMn2O4and Its Electrochemical Performance
- Research and Setting Software Development of Generator-Transformer Group Protection Relays
- The Development of Software Platform for Relay Protection Test System
- Research on the Performance Simulation of Brushless Doubly-Fed Machine
- Design and Research on the Elastic Component of Automobile Suspension
- The Research on the Model and Algorithm of High-speed Railway Train Scheduling Based on the Periodic Event System
- Research on Configurable Hydraulic System and Its Integrated Development Environment
- Research on Personalized Print Design Platform Based B/S Mode
- 2J85Material Superhydrophobic Surface Preparation Process Research
- Spherical TiO2Photocatalysts Prepared via Template Method