检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:吕智源[1] 王平涛[1] 杨献春[1] 许满武[1]
机构地区:[1]南京大学软件新技术国家重点实验室计算机科学与技术系,江苏南京210093
出 处:《计算机应用研究》2005年第10期209-212,216,共5页Application Research of Computers
基 金:国家自然科学资金资助项目(60273035);国家高技术研究发展计划资助项目(2001AA113161)
摘 要:传统以C++实现的面向对象的软件系统中,类接口往往以虚拟基类与虚拟函数定义。然而随着软件更新速度的加快,这种方法难以使接口兼顾效率与兼容性。实现一种Policies-based的设计,以类属组件的形式实现类接口,使其具有按需定制的特点,从而具有更大的复用性。经理论分析和模拟实验证明,这种方法表现优于虚拟函数机制。In an OO software system implemented in C + + language, class interfaces are usually defined by virtual base class and virtual functions. However, with the acceleration of software renewal, this technique is difficult to satisfied both efficiency and compatibility. A policies-based design is introduced, the class interface with generic components and the class interface according to need is defined and the class interface reuse becomes much easier. Analysis and experimental results show that the performance of polices-based implementation method is superior to virtual function mechanism.
关 键 词:面向对象 类属编程 Policies-based 设计模式
分 类 号:TP311.11[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:18.217.150.104