Global and Local Virtual Functions in C++

被引:0
|
作者
Heinlein, Christian [1 ]
机构
[1] Univ Ulm, Dept Comp Sci, Ulm, Germany
来源
JOURNAL OF OBJECT TECHNOLOGY | 2005年 / 4卷 / 10期
关键词
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Global virtual functions (GVFs) are introduced as C++ functions defined at global or namespace scope which can be redefined later similar to virtual member functions. Even though GVFs are a relatively simple concept, hardly more complex than ordinary C functions, it is shown that they subsume object-oriented single, multiple, and predicate-based method dispatch as well as aspect-oriented before, after, and around advice. Furthermore, the well-known "expression problem"can be solved in a simple and natural way. Local virtual functions are a straightforward extension of GVFs allowing temporary redefinitions during the execution of some other function or part of it. Amongst others, this is quite useful to simulate "cflow join points"of aspect-oriented languages. The implementation of global and local virtual functions by means of a precompiler for C++ is briefly described.
引用
收藏
页数:23
相关论文
共 50 条
  • [21] Local and global plurisubharmonic defining functions
    Noell, A
    PACIFIC JOURNAL OF MATHEMATICS, 1996, 176 (02) : 421 - 426
  • [22] LOCAL AND GLOBAL MAJORIZATION OF SUBHARMONIC FUNCTIONS
    GARDINER, SJ
    JOURNAL D ANALYSE MATHEMATIQUE, 1982, 42 : 175 - 184
  • [23] Smart enumeration in C++: Virtual construction, message dispatching and tables
    Taschini, S
    Emmenegger, M
    Baltes, H
    Korvink, JG
    SOFTWARE-PRACTICE & EXPERIENCE, 1999, 29 (01): : 67 - 76
  • [24] C++ CLASS LIBRARIES .2. VIRTUAL UNIX FOR PCS
    BERGMANN, G
    COMPUTER, 1995, 28 (08) : 91 - 92
  • [25] Enhanced reusability via polymorphic additive virtual methods in C++
    Chattamvelli, R
    Saiedian, H
    INFORMATION AND SOFTWARE TECHNOLOGY, 1997, 39 (06) : 403 - 415
  • [26] Interactive global and local deformations for virtual clay
    Dewaele, G
    Cani, MP
    GRAPHICAL MODELS, 2004, 66 (06) : 352 - 369
  • [27] Local and global perspectives on the virtual water trade
    Tamea, S.
    Allamano, P.
    Carr, J. A.
    Claps, P.
    Laio, F.
    Ridolfi, L.
    HYDROLOGY AND EARTH SYSTEM SCIENCES, 2013, 17 (03) : 1205 - 1215
  • [28] Interactive global and local deformations for virtual clay
    Dewaele, G
    Cani, MP
    11TH PACIFIC CONFERENCE ON COMPUTER GRAPHICS AND APPLICATIONS, PROCEEDINGS, 2003, : 131 - 140
  • [29] 从C++走向标准C++
    张成章
    中文信息, 1999, (01) : 25 - 29
  • [30] C++: C++ in the classroom: a look forward
    Koenig, Andrew
    Journal of Object-Oriented Programming, 1997, 10 (01):