面向对象内核设计模式,第二部分

Object-oriented Design Patterns in the Kernel, Part 2
面向对象内核设计模式,第二部分
posted by Elv13 on Mon 27th Jun 2011 14:17 UTC
发表于:2011年6月27日 北京时间22:17

"In the first part of this analysis we looked at how the polymorphic side of object-oriented programming was implemented in the Linux kernel using regular C constructs. In particular we examined method dispatch, looked at the different forms that vtables could take, and the circumstances where separate vtables were eschewed in preference for storing function pointers directly in objects. In this conclusion we will explore a second important aspect of object-oriented programming - inheritance, and in particular data inheritance."
“在该分析(面向对象内核设计模式专题)的 第一部分,我们看到了如何使用普通C结构体,在Linux内核实现面向对象编程的多态方面。特别地,我们考察了方法调度,查看了虚函数表可以存在的不同形式,以及为直接在对象内存储函数指针,单独的虚函数表被规避的情形。在 第二部分(推论部分),我们将探索另外一个面向对象编程重要的方面——继承,特别是数据继承。”
注:《面向对象内核设计模式》两部分内容(英文版)见 附件

转载于:https://my.oschina.net/xyxzfj/blog/26188

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值