Why using cannot be used to define a virtual function?
为什么使用不能用于定义一个虚函数?。
This effectively hides the virtual function in the base class.
这有效地隐藏了基类中的虚函数。
The code generated for the virtual function in a header file is shown in Listing 2.
在头文件中为该虚函数所生成的代码如列表2中所示。
Listing 1 defines three classes (a, B and c) with a common virtual function WhoAmI .
清单1定义了三个类(A、b和c),它们有一个共同的虚函数whoami 。
The derived class inherits more than one override of a virtual function of a virtual base class.
派生类继承虚拟基类的虚函数的多个重写。
Now Im going to call virtual function from constructor of Base class rather than member function.
现在,我米要调用基类的构造函数,而不是成员函数虚函数。
However, even a non-virtual function should be tested to ensure that you get the correct results.
但是即便如此,也应测试非虚函数,以确保获得正确的结果。
The error message is issued if someone tries to explicitly construct an object or call a virtual function.
发出错误信息,如果有人试图构建一个明确对象或调用虚函数。
The most important part of the client or server code is the virtual function NotifyReceivedPackage, as described below.
客户端或服务器端最重要的部分是虚函数NotifyReceivedPackage,定义如下。
The only significant cost of virtual functions is one additional memory lookup before a virtual function can be called.
虚拟函数唯一一个明显的代价是在调用虚拟函数之前附加了一个存储查询。
When we use virtual functions, the compiler automatically selects the right function according to the actual type of the object.
当使用虚函数的时候,编译器自动根据对象的实际类型选择正确的函数。
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.
类函数定义与基类中的虚函数同名,但参数的数目或类型不同。
If the function was intended to be a static member function, rename it so it doesn't conflict with the base class virtual function.
如果函数用作静态成员函数,则重命名该函数,以便不与基类虚函数冲突。
The experiment has proven that the signal performance generated by virtual function signal generator surpasses ordinary traditional instrument.
实验表明,所设计的虚拟函数信号发生器输出信号性能优于普通传统信号源。
The virtual management pattern includes virtual production, virtual personnel, virtual function, virtual trademark and strategic Allies as well.
企业虚拟经营模式包括虚拟生产、人员虚拟、功能虚拟、品牌虚拟经营和战略联盟。
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)相同。
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.
使用动态强制类型转换要小心。只要有可能,定义和使用虚函数比直接接管类型管理好得多。
In a base class, abstract class is defined by declaring pure virtual function, a derived class must define all inherited pure virtual functions of its base classes to be concrete.
在基类中可以通过将虚函数声明为纯虚函数的手段来定义抽象类,强制派生类在自己的类定义中实现虚函数的具体功能。
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.
衍生类别中的函式试图覆写基底类别中的虚拟函式,但衍生类别函式没有与基底类别函式相同的传回型别。
Member template functions cannot be virtual functions and cannot override virtual functions from a base class when they are declared with the same name as a base class virtual 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.
然后就可以使用这个返回的指针来配置这个虚拟文件的其他参数,例如在对该文件执行读操作时应该调用的函数。
Something has to provide the function implied and encapsulated by virtual application patterns - that is where plug-ins enter the picture.
需要提供虚拟应用程序模式暗示和封装的功能,这是插件出现的原因。
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.
许多情况下,设计师把购物车局限于它的主要功能——表示客户从网店购买的商品的虚拟存放地。
While virtual desktops require network connectivity to function, you cannot overlook the security, mobility, and data integrity benefits of such a strategy.
尽管虚拟桌面需要网络连接才能工作,但是这种战略在安全性、可移动性和数据完整性方面具有很强的优势。
Virtual Ethernet provides roughly the same function as a 1 Gigabit Ethernet adapter.
虚拟以太网提供了与1Gigabit以太网适配器大致相同的功能。
Virtual Ethernet provides roughly the same function as a 1 Gigabit Ethernet adapter.
虚拟以太网提供了与1Gigabit以太网适配器大致相同的功能。
应用推荐