Design patterns for generic programming in C++

被引:0
|
作者
Duret-Lutz, A [1 ]
Géraud, T [1 ]
Demaille, A [1 ]
机构
[1] EPITA Res & Dev Lab, F-94276 Le Kremlin Bicetre, France
关键词
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Generic programming is a paradigm whose wide adoption by the C++ community is quite recent. In this scheme most classes and procedures are parameterized, leading to the construction of general and efficient software components. In this paper, we show how some design patterns from Gamma et al, can be adapted to this paradigm. Although these patterns rely highly on dynamic binding, we show that, by intensive use of parametric polymorphism, the method calls in these patterns can be resolved at compile-time. In intensive computations, the generic patterns bring a significant speed-up compared to their classical peers.
引用
收藏
页码:189 / 202
页数:14
相关论文
共 50 条
  • [1] Generic Programming in C++ and Java']Java
    Mathur, Shilpa
    INTERNATIONAL JOURNAL OF COMPUTER SCIENCE AND NETWORK SECURITY, 2011, 11 (09): : 60 - 64
  • [2] Concepts:: Linguistic support for generic programming in C++
    Gregor, Douglas
    Jaervi, Jaakko
    Siek, Jeremy
    Stroustrup, Bjarne
    Dos Reis, Gabriel
    Lumsdaine, Andrew
    ACM SIGPLAN NOTICES, 2006, 41 (10) : 291 - 310
  • [3] MultiArray: a C++ library for generic programming with arrays
    Garcia, R
    Lumsdaine, A
    SOFTWARE-PRACTICE & EXPERIENCE, 2005, 35 (02): : 159 - 188
  • [4] STL and generic programming - More on C++ metaprogramming
    Becker, Thomas
    C/C++ Users Journal, 2002, 20 (10):
  • [5] Generic parallel programming using C++ templates and skeletons
    Bischof, H
    Gorlatch, S
    Leshchinskiy, R
    DOMAIN-SPECIFIC PROGRAM GENERATION, 2003, 3016 : 107 - 126
  • [6] A comparative evaluation of generic programming in Java']Java and C++
    Saiedian, H
    Hill, S
    SOFTWARE-PRACTICE & EXPERIENCE, 2003, 33 (02): : 121 - 142
  • [7] Generic programming for scientific computing in C++, Java']Java™, and C#
    Gerlach, J
    Kneis, J
    ADVANCED PARALLEL PROCESSING TECHNOLOGIES, PROCEEDINGS, 2003, 2834 : 301 - 310
  • [8] GENERIC PROGRAMMING AND THE C++ STL - FOCUSING ON DATA REPRESENTATION AND ALGORITHMS
    ZIGMOND, D
    DR DOBBS JOURNAL, 1995, 20 (08): : 18 - &
  • [9] AOP++: A generic aspect-oriented programming framework in C++
    Yao, Z
    Zheng, QL
    Chen, GL
    GENERATIVE PROGRAMMING AND COMPONENT ENGINEERING, PROCEEDINGS, 2005, 3676 : 94 - 108
  • [10] GENERIC CONTAINERS IN C++
    DAVIDSON, A
    DR DOBBS JOURNAL, 1991, 16 (08): : 50 - &