Generic programming and design patterns
- Author
- ChenYeWang
- Advisor
- YuJinShan
- School
- Huaqiao University
- Major
- Computer Applications
- Classification
- TP311.11 Programming method
- Degree
- Master's thesis
- Year
- 2006
- Downloads
- 111
- Citations
- 0
- Object Oriented
- Design Patterns
- Generic programming
- Orthotropic Decomposition
- Policy-Classes
- Dynamical Composition
- pattern system
- Generalization Standardization
Abstract
Now Object-Oriented has been the main technologies of software industry, however, many problems there are which limit its general purpose and the abstract degree. Design patterns is an advance technologies of software reusing within Object Oriented, but it still can not break away the bugging of the similar problems. Generic Programming develops Object Oriented, it abstracts the world with a higher view, many problems in Object Oriented can be handled by it. Using the ideal of Generic Programming to generalize design patterns brings mass reusing and automated design patterns, gifting programmers the ability to assemble the components by requirements, and result in the source codes that can express the primitive purpose of design, archiving the natural transition from designing to coding.In the first segment of this paper, the first chapter analysis the deficiency of Object Oriented and Design Patterns, then introduces the Generic Programming, and expatiates the theory of generalizing the Design Patterns; The second chapter introduces some generalizing technologies, and brings forward Dynamical Composition.In the second segment of this paper, it put forward some new viewpoints: (1) Design Patterns System、(2) Generalization
Table of contents
Introduction 8-11
0.1 Generic Programming Research
0.2 Research design mode generalization 8-9
0.3 This paper mainly work 9
0.4 The main contribution of this paper and solve problems 9
0.5 The main content of this article arrangements 9-11
first basic theory with technology 11-35
Chapter generalization of the basic theory of design patterns 12-20
1.1 object-oriented lack 12-13 <br / > 1.2 design patterns lack 13-15
1.3 generic programming the 15-16
1.4 design patterns generalization 16-20
first the Chapter generalization Technology the 20-35
2.1 Class C template full specialization and partial specialization 20-21
2.1.1 full specialization 20 - 21
2.1.2 partial specialization 21
2.2 type and value of different types of mapping between 21-24
2.2.1 integer mapping for type 21-23
2.2.2 different types of mapping 23-24
2.3 TYPELIST the 24-30
2.3.1 TypeList of, defined 24
2.3.2 calculate Typelist length 24-25
2.3.3 index access Typelist 25-26
2.3.4 TypeList generate automated 26
2.3.5 to use TypList generated class 26-30
dynamic combination of 2.4 between objects 30-35
2.4.1 static composition of the lack of relationship 30
2.4.2 generalization combination relations 30-35
second practice 35-64
Chapter the generalization BUIDER mode 37-47
3.1 BUILDER mode 37-38
to 3.1.1 defined 37
3.1.2 purpose 37
3.1 .3 applicable occasions 37
3.1.4 Builder structure 37-38
3.2 the BUILDER of insufficient 38
3.3 Generalization BUILDER mode nbsp Builer system; 38-45
3.3.1 Decomposition Builder 38
the 3.3.2 generalization products (Product) system 38-39
3.3.3 generalization 39-45
3.4 generalization the BUILDER mode application the 45-46
Summary of 3.5-BUILDER generic components 46
3.6 generic components 46-47
Chapter generalization COMPOSITE mode 47-56
4.1 COMPOSITE mode 47-48
4.1.1 defined 47
4.1.2 purpose 47
4.1.3 Applicable occasions 47
4.1.4 Composite structure 47-48
4.2 COMPOSITE lack 48
4.3 Generalization COMPOSITE mode the 48-53 4.3.1 decomposition Composite
48
4.3.2 generalization Component System 48-51
4.3.3 generalization Composite system 51-53
4.4 the COMPOSITE generic component applications 53-54
4.5 COMPOSITE Pan the type Component Summary
4.6 54-55 generic components effect 55-56
Chapter generalization STRATEGY mode 56-62
5.1 STRATEGY mode 56-57
5.1.1 defined 56
5.1.2 purpose 56
5.1.3 applies occasions 56
5.1.4 Strategy structure 56-57
5.2 STRATEGY insufficient 57
5.3 Generalization STRATEGY mode 57-60
5.3 .1 decomposition Strategy 57
5.3.2-generalization Strategy system 57-59
5.3.3 generalization Context system 59-60
5.4 STRATEGY generic components 60
5.5 STRATEGY Summary of generic components 60-61
5.6 generic components effect 61-62 <br / Chapter VI summarizes 62-64
Acknowledgements to References 64-65
65-66
studying for a master's degree during the completion of the papers 66
Related dissertations
- The Design and Realization the Library Management System for Primary and Secondary School Based on.NET
- Design and Implementation of Case Law Enforcement Supervision Management System for Grassroots Public Security Agencies
- Design and Implementation of a Quality Metric Commodity Product Information Online Management System
- Design and Implementation of Software for Children’s Elementary Painting Education Based on iOS
- The Design and Implementation of Firearms Routine Training Management System
- Design and Implementation of Grain Purchase and Sale Management Information System Based on Web Framework
- The Design and Implementation of Student Information Management System Based on Web
- The Design and Implementation of Excellent Course Management System
- Research and Implementation of STL Runtime Concept
- The Key Technology Research on Identification of Oil Spill on SAR Image
- Research on Network System of Information Distribution and Relative Technology Based on Discrete State Predictor
- Design of Visual Force
- Electricity Transaction Information Platform Design and Implementation
- Research about the Intelligent Marketing System Modeling Based on IEC
- Research on Software Technology in HVDC Transmission Design Software Package
- Study on the Design Patterns of Park Tourist Centre in Guangdong Region
- Design and Implementation of an ATM Bureau of Communication Navigation Surveillance System
- Research on Object Oriented Air Pollution Management Decision Support System Model Base
- A Study on the Furniture of Sichuan Amdo Tibetan
- Object Oriented Integrated Modelin and Simulation Research for Petrochemical Lndustry