C++ vtable layout
2015-07-07 11:31
465 查看
A virtual table (vtable) is a table of information used to dispatch virtual functions, to access virtual base class subobjects, and to access information for runtime type identification (RTTI).
Virtual Table Components and Order :
1 Virtual call (vcall) offsets
2 Virtual Base (vbase) offsets
3 The offset to top holds the displacement to the top of the object
4 The typeinfo pointer
The virtual table address point points here
5 Virtual function pointers
A virtual table (vtable) is a table of information used to dispatch virtual functions, to access virtual base class subobjects, and to access information for runtime type identification (RTTI).
Virtual Table Components and Order :
1 Virtual call (vcall) offsets
2 Virtual Base (vbase) offsets
3 The offset to top holds the displacement to the top of the object
4 The typeinfo pointer
The virtual table address point points here
5 Virtual function pointers
相关文章推荐
- C++ 虚函数表解析
- 虚函数表验证
- C++对象模型(五):The Semantics of Data Data语义学
- Linux Debugging(四): 使用GDB来理解C++ 对象的内存布局(多重继承,虚继承)
- 为什么构造函数不能为虚函数
- 查看C++类的虚表(vtable)结构
- C++ virtual函数 实现机制
- 深入理解C++虚函数
- 漫谈继承技术(八)
- chapter16test7
- 《C语言及程序设计》实践参考——二进制文件浏览器
- 《C语言及程序设计》实践参考——间隔选职工
- C/C++语言获取系统时间的几种方式 !
- 《C语言及程序设计》实践参考——处理C语言源代码的程序
- 《C语言及程序设计》实践参考——用文本文件保存的学生名单
- 《C语言及程序设计》实践参考——小玩文件
- 用C++扩展php时函数重定义redefinition问题
- 《C语言及程序设计》实践项目——文件操作
- C++常用的函数
- 最长不降子序列