类在不必要的时候不要包含虚方法。
Classes do not contain virtual methods when they are not needed.
此虚方法的默认实现将引发上述事件。
The default implementation of this virtual method raises the event as described above.
可以覆写私有的虚方法么?
可以覆写私有的虚方法么?
同样,我们的实现覆盖了其中一些do_foo虚方法。
Likewise, our implementation overrides some of these virtual do_foo methods.
首先引发此虚方法,并可以根据需要操作事件数据。
The virtual method is raised first and can manipulate the event data as necessary.
抽象方法具有以下特点:抽象方法是隐式的虚方法。
Abstract methods have the following features: An abstract method is implicitly a virtual method.
此方法虽然是虚方法,但具有引发事件的默认实现。
This method, although virtual, does have a default implementation that raises the event.
类型将方法声明为虚方法,使继承类型可以重写虚方法的实现。
Types declare methods as virtual so that inheriting types can override the implementation of the virtual method.
此外,透明方法不能重写关键虚方法,也不能实现关键接口方法。
In addition, transparent methods cannot override critical virtual methods or implement critical interface methods.
编译器可以使用间接调用执行优化,如提升循环外虚方法地址的加载。
The compiler can perform optimizations with indirect calls such as hoisting the load of a virtual method address out of a loop.
根据定义,不能从密封类型继承,这使得密封类型上的虚方法没有意义。
By definition, you cannot inherit from a sealed type, making a virtual method on a sealed type meaningless.
当抽象类从基类继承虚方法时,抽象类可以使用抽象方法重写该虚方法。
When an abstract class inherits a virtual method from a base class, the abstract class can override the virtual method with an abstract method.
把虚方法调用转换成直接方法调用,叫做单形monomorphic调用变换。
Converting a virtual method call to a direct method call is called monomorphic call transformation.
讨论值类型语义的更改,包括继承的虚方法、类默认构造函数、内部指针和钉住指针。
Discusses changes to value type semantics, including inherited virtual methods, class default constructors, interior Pointers, and pinning Pointers.
您可能已经注意到我们在头文件中声明printticket方法时把它声明成了一个虚方法。
You might have noticed that we made the printTicket method virtual when it was declared in the header file.
Widget(所有pygtk部件的基类)的一些foo方法在内部调用虚方法do_foo。
Several foo methods of gtk.Widget (the base class for all PyGTK widgets) internally call the virtual methods do_foo.
应用程序中的行为将是该处理程序首先显示其消息框,随后将显示虚方法处理程序中的可视变化。
The behavior in an application would be that first this handler would show its message box and then the visual change in the virtual method's handler would be shown.
例如,一个虚方法调用需要查看接收方对象的类调用,以便找出哪个实际目标实现了接收方对象的虚方法。
A virtual method invocation, for example, involves looking at the class of the receiver object for the call to discover which actual target implements the virtual method for the receiver object.
对于每个虚方法,计算它的参数个数、名字和结果n,然后使用MOCK_METHODn进行定义,其参数就是方法的名字和类型。
For each virtual method, count how many arguments it has, name the result n, and define it using MOCK_METHODn, whose arguments are the name and type of the method.
Rhino代码读起来很像C程序:它避免过多的分配,并且尽量多地使用跳转表(Jump Tables)来避免虚方法查询(Virtual Method Lookups)的额外开支。
The Rhino code base reads almost like C code: it avoids allocation and does as much as possible with jump tables to avoid the overhead of virtual method lookups.
可能有一些别的更简便的方法来实现我想要的,但这样去做,我又必须虚席一些更新的东西——这意味着会浪费大把时间。
There might be other ways of doing what I do that are easier, but in order to do them I have to learn something new - which is time consuming.
当然,如果类层次结构发生变化,并且出现另外的目标方法,则JIT编译器可以更正最初生成的代码以便执行虚调用。
Of course, if the class hierarchy changes and a second target method becomes possible, then the JIT compiler can correct the originally generated code so that the virtual invocation is performed.
虚包是包含一套方法的类,利用它,你可以从后台创建数据对象,或提供一些其它的业务功能。
The facade is a class that provides a set of methods that can create data objects from the back end, or provide some other business function.
我们最终学会了使用类似于虚包的修正方法来重构这些解决方案。
We eventually learned to refactor those solutions with remedies like facades.
虚键允许发布者为键指定一个有意义的名称作为变通方法来使一个基于uuid的键由注册中心自动指定。
Vanity keys allow publishers to specify a meaningful name for a key as an alternative to having a uuid-based key assigned automatically by the registry.
仿真实验表明,该检测方法能在低信噪比环境中,以低虚警率对低速目标进行有效检测。
The simulation results show that the proposed method succeeds in detecting low speed target with low false alarm probability in low signal to noise ratio environment.
方法从造成药价虚高的原因入手,分析“看病贵”的原因。
Methods From the reasons of high prices of medicine, the reasons caused high cost of medicine care were analyzed.
针对网络异常检测虚警率偏高的问题,提出了一种基于属性相似度云模型的网络异常检测新方法。
A new method for the anomaly detection based on the attributes similarity and the cloud model was proposed to alleviate the high false positive rate problem in the detection.
针对网络异常检测虚警率偏高的问题,提出了一种基于属性相似度云模型的网络异常检测新方法。
A new method for the anomaly detection based on the attributes similarity and the cloud model was proposed to alleviate the high false positive rate problem in the detection.
应用推荐