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

Request the full text

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

  1. A Mobile-platform Based Cloud Web Structure Transform
  2. Study on the Network Flow Statistics System Based on NETSTREAM
  3. Research on Resource Virtualization in Cloud Manufacturing
    HuZhiNan ·Huaqiao University ·2013 ·Master's thesis
  4. Research on the Automatic Generation of Customer Reviews Report Facing Network
    ShiYingChao ·Northeastern University ·2011 ·Master's thesis
  5. Research on SAP ERP Template Development and Implementation
  6. Laboratory Equipment Running Management System Based on the Internet of Things Technology
    LiDa ·Chang'an University ·2013 ·Master's thesis
  7. Design and Development of Data Acquisition and Processing System for Tilapia Industry
    GongZuoLi ·Nanjing Agricultural College ·2013 ·Master's thesis
  8. Design and Implementation of Virtual Campus Roaming System
    ZhangXiaoYu ·Jilin University ·2013 ·Master's thesis
  9. Design and Implementation of Household Registration Management System Under Fire Safety for Key Unit
    ShiHuaJie ·Xiamen University ·2014 ·Master's thesis
  10. Design and Implementation of Education-Oriented Instance Message Software System
    HuangChenFan ·Xiamen University ·2014 ·Master's thesis
  11. Studies on the Preparation of ZnMn2O4and Its Electrochemical Performance
  12. Research and Setting Software Development of Generator-Transformer Group Protection Relays
  13. The Development of Software Platform for Relay Protection Test System
  14. Research on the Performance Simulation of Brushless Doubly-Fed Machine
  15. Design and Research on the Elastic Component of Automobile Suspension
    LiuXiaoLong ·Hebei University of Technology ·2013 ·Master's thesis
  16. The Research on the Model and Algorithm of High-speed Railway Train Scheduling Based on the Periodic Event System
    QinSheng ·Beijing Jiaotong University ·2013 ·Doctoral dissertation
  17. Research on Configurable Hydraulic System and Its Integrated Development Environment
    ChenTongQing ·Zhejiang University ·2014 ·Master's thesis
  18. Research on Personalized Print Design Platform Based B/S Mode
    LiShengHui ·Nanjing Forestry University ·2013 ·Master's thesis
  19. 2J85Material Superhydrophobic Surface Preparation Process Research
    ZhaoMin ·Harbin Institute of Technology ·2012 ·Master's thesis
  20. Spherical TiO2Photocatalysts Prepared via Template Method
    WangDianPing ·Northeast Forestry University ·2013 ·Master's thesis