Font Size: a A A

Research And Implementation Of STL Runtime Concept

Posted on:2015-02-07Degree:MasterType:Thesis
Country:ChinaCandidate:Z ZhangFull Text:PDF
GTID:2268330428462516Subject:Computer software and theory
Abstract/Summary:PDF Full Text Request
As the development of the software technology, Users expect that software system is able to respond to the change of running environment and user needs under the running state without making the software offline.By the knowing and the understanding of the concept of the running system,I proposes a STL runtime concept. Generic programming supports for producing modules with clean separation which is a important benefit of it In particular, generic algorithms are written to work with a wide variety of types without requiring modifications to them. The Runtime concept idiom extends this support by allowing unmodified concrete types to behave in a runtime polymorphic manner. So,when the system needs to respond to environmental changes and deals with uncertainty in the environment, Generic algorithms can be called in the runtime without making the software offline,it plays an very important role in improving software design method.we implement the runtime concept idiom, in the field of the C++standard template library in this article. We supply the runtime concept idiom with an algorithm library which considers both concept and type information to maximize performance when it selects algorithm implementations. We describe an implementation of using an experimental language extension and the other implementation in ISO C++. We present and measure the performance by simulating runtime polymorphic of several STL algorithms with our implementations. The tests show the effects of different run-time vs. compile-time algorithm selection.
Keywords/Search Tags:Generic programming, Runtime polymorphism, C++standard template library, Runtime concept
PDF Full Text Request
Related items