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 本文在對泛型程序設(shè)計深入研究的基礎(chǔ)上,對泛型程序重構(gòu)進(jìn)行了分析和研究,提出并形式化描述了一組適用于泛型程序設(shè)計的重構(gòu)操作以及對應(yīng)的前提條件,設(shè)計并實(shí)現(xiàn)了支持泛型程序重構(gòu)的自動化工具的原型cpprefactory 。
We developed a set of classes and found a way to use generic programming in delphi , from which we induced and synthesized the rules between apla and delphi . according to the rules , we designed and implemented a system which can transform apla programs to delphi programs , supported by generic programming 如何在delphi中很好的支持apla的這些機(jī)制是本系統(tǒng)所要研究的重點(diǎn)和難點(diǎn), apla delphi自動程序轉(zhuǎn)換系統(tǒng)的目標(biāo)是使得所有正確的apla程序都能通過轉(zhuǎn)換器得到正確的delphi程序,并且能運(yùn)行得到正確結(jié)果。