go top

虚指针

网络释义

  vptr

类的对象申明时,在对象空间中会生成一个虚指针vptr)指向虚函数表(vtbl),用来访问虚函数。

基于46个网页-相关网页

  virtual pointer

同时会添加一个虚指针到这个虚表里面,当调用虚函数时,对象通过虚指针virtual pointer)找到虚表,然后遍历虚表,找到和这个函数同名的函数指针,函数指针指向这个虚函数的入口地址,从而将虚函数调起。

基于12个网页-相关网页

短语

虚拟指针 Virtual Pointer ; PointerStick

虚表指针 VPTR ; virtual table pointer

虚函数指针 vptr ; virtual function pointer ; vprt

虚拟激光指针 Software laser pointer

虚记忆器指针 virtual memory pointer

的虚拟指针 Virtual PoinTeR ; VPTR

 更多收起网络短语

有道翻译

虚指针

Virtual pointer

以上为机器翻译结果,长、整句建议使用 人工翻译

双语例句

  • 首先,Vee - Table指针用于访问函数对数据成员访问直接使用编译偏移量实现

    First, the Vee-Table pointer is used to access virtual functions, and data members are accessed directly using compile time offsets.

    youdao

  • 一个每个其中包含每个成员功能实现指针列表

    There's a virtual table for each class, which contains a list of Pointers to the implementation of each member function.

    youdao

  • 每个对象都有一些附加字节通用语言运行库用来管理对象,对象指针同步锁定引用

    Every object has some additional bytes that the common language runtime USES to manage the object, such as the object's virtual table pointer and a reference to a sync block.

    youdao

更多双语例句
$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定