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
来源
6TH USENIX CONFERENCE OF OBJECT-ORIENTED TECHNOLOGIES AND SYSTEMS (COOTS 01) | 2001年
关键词
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 条
  • [21] Refactoring GrPPI: Generic Refactoring for Generic Parallelism in C++
    Christopher Brown
    Vladimir Janjic
    Adam D. Barwell
    J. Daniel Garcia
    Kenneth MacKenzie
    International Journal of Parallel Programming, 2020, 48 : 603 - 625
  • [22] Mining design patterns from C++ source code
    Balanyi, Z
    Ferenc, R
    INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE, PROCEEDINGS, 2003, : 305 - 314
  • [23] Design Patterns for Multiphysics Modeling in Fortran 2003 and C++
    Rouson, Damian W. I.
    Adalsteinsson, Helgi
    Xia, Jim
    ACM TRANSACTIONS ON MATHEMATICAL SOFTWARE, 2010, 37 (01):
  • [24] A Tool for C++ Header Generation An Extension of the C++ Programming Language
    Hock, Patrick
    Nakayama, Koichi
    Arai, Kohei
    INTERNATIONAL JOURNAL OF ADVANCED COMPUTER SCIENCE AND APPLICATIONS, 2019, 10 (07) : 458 - 465
  • [25] C++ is programming like photography?
    Koenig, Andrew
    Journal of Object-Oriented Programming, 1995, 8 (02):
  • [26] Generative programming (GP) with C++
    Eisenecker, UW
    MODULAR PROGRAMMING LANGUAGES, 1997, 1204 : 351 - 365
  • [27] Dynamic verification of C++ generic algorithms
    Wang, CQ
    Musser, DR
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 1997, 23 (05) : 314 - 323
  • [28] BOOKS TO IMPROVE C++ PROGRAMMING
    PAPPAS, TLF
    COMPUTER, 1994, 27 (01) : 89 - 89
  • [29] Functional Programming Library for C++
    M. M. Krasnov
    Programming and Computer Software, 2020, 46 : 330 - 340
  • [30] C++ programming fundamentals.
    Hershey, JN
    LIBRARY JOURNAL, 2003, 128 (10) : 161 - 161