Why using cannot be used to define a virtual function?
为什么使用不能用于定义一个虚函数?。
This function is really a message handler, not a virtual function.
这个函数是一个真正的消息句柄,不是虚函数。
Firstly, you should know what a virtual function is, and how to use it.
首先,你应该知道什么是虚函数,以及如何使用它。
If a virtual function is private, it cannot be accessed by a derived type.
如果某虚函数为私有函数,则派生类型无法访问它。
The derived class inherits more than one override of a virtual function of a virtual base class.
派生类继承虚拟基类的虚函数的多个重写。
The error message is issued if someone tries to explicitly construct an object or call a virtual function.
发出错误信息,如果有人试图构建一个明确对象或调用虚函数。
The only significant cost of virtual functions is one additional memory lookup before a virtual function can be called.
虚拟函数唯一一个明显的代价是在调用虚拟函数之前附加了一个存储查询。
A class function definition has the same name as a virtual function in a base class but not the same number or type of arguments.
类函数定义与基类中的虚函数同名,但参数的数目或类型不同。
Used to flush out status information when a reposition occurs. This is a virtual function that is provided should the codec require resetting prior to use.
用来冲洗出状况的信息时发生复位。这是一个虚拟的职能,这是应该提供的解码需要重新使用前。
Dynamic casts should be used with caution. Whenever possible, it is much better to define and use a virtual function rather than to take over managing the types directly.
使用动态强制类型转换要小心。只要有可能,定义和使用虚函数比直接接管类型管理好得多。
The main reason for making a virtual function inline is to place its definition in the class, either for convenience or to document its behavior, e. g., for accessors and mutators.
使虚函数内联的主要原因在于类定义,主要是方便的原因,比如说成员访问函数。
A function in a derived class attempted to override a virtual function in a base class, but the derived class function did not have the same return type as the base class function.
衍生类别中的函式试图覆写基底类别中的虚拟函式,但衍生类别函式没有与基底类别函式相同的传回型别。
You can then use the return pointer to configure other aspects of the virtual file, such as the function to call when a read is performed on the file.
然后就可以使用这个返回的指针来配置这个虚拟文件的其他参数,例如在对该文件执行读操作时应该调用的函数。
In most cases designers limit the shopping cart to its primary function - to stand for the virtual holding place for any products a customer selects from the online store.
许多情况下,设计师把购物车局限于它的主要功能——表示客户从网店购买的商品的虚拟存放地。
The code generated for the virtual function in a header file is shown in Listing 2.
在头文件中为该虚函数所生成的代码如列表2中所示。
Virtual Ethernet provides roughly the same function as a 1 Gigabit Ethernet adapter.
虚拟以太网提供了与1Gigabit以太网适配器大致相同的功能。
COM specifies that any interface must follow a standard memory layout, which is the same as the C++ virtual function table (see Rogerson96 in Resources).
COM指定任何接口都必须遵循一个标准的内存规划,这与 C++ 的虚拟函数表(请参阅 参考资料中的 Rogerson96)相同。
Listing 1 defines three classes (a, B and c) with a common virtual function WhoAmI .
清单1定义了三个类(A、b和c),它们有一个共同的虚函数whoami 。
The virtual stack -- like a real stack -- is a last in-first out (LIFO) data structure that temporarily stores function arguments and function results.
虚拟堆栈与实际堆栈类似,是一种后进先出(LIFO)的数据结构,可以用来临时存储函数参数和函数结果。
While virtual desktops require network connectivity to function, you cannot overlook the security, mobility, and data integrity benefits of such a strategy.
尽管虚拟桌面需要网络连接才能工作,但是这种战略在安全性、可移动性和数据完整性方面具有很强的优势。
The way virtual processors function to database server is similar to the way that a CPU functions in a computer.
虚拟处理器对数据库服务器的作用类似于CPU 对计算机的作用。
The function of report generation is an important part of a complete Virtual Instrument system.
报表生成功能是一个完备的虚拟仪器系统的重要组成部分。
Setting up virtual private network for business enterprise provides a low cost network foundation, increases enterprise network function and enlarges its private scope.
虚拟专用网的组网方式为企业提供了一种低成本的网络基础设施,并增加了企业网络功能,扩大了其专用网的范围。
There's a virtual table for each class, which contains a list of Pointers to the implementation of each member function.
有一个为每个类的虚表,其中包含每个成员的功能的实现的指针列表。
With concept of reference monitor and function of virtual machine monitor, a novel approach for protecting integrity of kernel was designed.
运用引用监控机的概念和虚拟机监控器的功能,提出了一种新的保护内核完整性的方法。
This paper presents an integrated signal analytic system based on virtual instrument concept and a visual editor of instrument function.
文章提出了一种以虚拟仪器概念开发的、基于可视化仪器功能编辑的集成信号分析系统。
If the function is virtual and the call is through a reference or pointer, then the compiler generates code to determine which version to run based on the dynamic type of the object.
如果函数是虚函数,并且调用是通过引用或者指针,编译器基于动态类型生成代码确定调用哪个版本。
If the function is virtual and the call is through a reference or pointer, then the compiler generates code to determine which version to run based on the dynamic type of the object.
如果函数是虚函数,并且调用是通过引用或者指针,编译器基于动态类型生成代码确定调用哪个版本。
应用推荐