Font Size: a A A

The Research And Implementation Of Refactor Applied To C++ Template

Posted on:2005-01-10Degree:MasterType:Thesis
Country:ChinaCandidate:X C GuanFull Text:PDF
GTID:2168360122980315Subject:Computer software and theory
Abstract/Summary:PDF Full Text Request
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.
Keywords/Search Tags:Refactor, Generic Programming Paradigm, Refactor Tool, C++, Template
PDF Full Text Request
Related items