列表7.为一个模板类所生成的代码。
在清单8中,仅当t有符号时,模板类a才能进行实例化。
In Listing 8, template class a may be instantiated only if type t is signed.
允许模板类或函数仅使用某些数据类型来进行实例化。
Allowing a template class or function to be instantiated with only certain data types.
后来该项目中的一项后果是,实现的模板类并不能理想地适用于所有类型的通信技术。
A consequence that emerged later in the project was that the implemented template class was not ideally suited to all types of communication technology.
列表8.为一个采用DTYPENAME_TEMPLATES选项的模板类所生成的代码。
Listing 8. Generated Code for a template class with DTYPENAME_TEMPLATES option.
为模板类一所生成的代码具有在模板类声明内部用于操作的声明和定义,如列表7中所示。
The generated code for the template class one has both the declaration and definition for the operation op within the template class declaration, as shown in Listing 7.
您设计的派生类必须有一个名为definition(可以不修改此名)的嵌套的模板类/结构。
The derived class that you design must have a nested template class/structure named definition (you may not change this name). The definition class has the following properties
grammar类是一个模板类,被其派生类DerivedT和上下文类ContextT参数化。
The grammar class is a template class that is parameterized by its derived class DerivedT and the context class ContextT. The declaration for the grammar class is as follows.
这也是为什么,比如,导出派生自STL模板类或者使用STL模板类对象作为数据成员是非常困难和令人生厌的。
That is why, for instance, it is very hard and tiresome to export classes that are derived from STL templates or to use STL templates as data members.
图6显示了WS响应模板模式的类关系图。
Figure 6 shows the class diagram from the WS response template pattern.
这里显示了使用模板参数定义的类。
It shows the classes that are defined with the template parameters.
类模板遍历关联并使用position标记对其排序。
The template for class walks through the associations and sorts them using the position tag.
当构建应用程序时,也同时构建了可以作为所有对象的模板的新类。
When you build applications, you build a new class as a template for all objects.
使用Hadoop主模板与OCCI计算类请求。
I.Use Hadoop master template along with the OCCI compute kind request.
实现特定于小部件的模板和小部件类。
Implementing the widget-specific template and the widget class.
使用门户操作系统模板与OCCI计算类请求。
I.Use the portal OS template along with the OCCI compute kind request.
将模板定义编译成python类。
为节点类选择一个模板。
列表5显示了为扩展类而产生结果的模板样例。
Listing 5 shows a sample template that generates results for extending classes.
上面HTML模板文件显示了两类占位符
The above HTML template file shows the two types of placeholders
它首先找到模板:它首先到特定于这个类的目录中查找。
This first finds the template: it looks first in a directory specific to the class.
下列实例是一个模板,用于创建拥有任意数量属性的类。
The following example is a template for creating a class with an arbitrary amount of properties.
我们可以通过套用VisualStudio 2005的类库模板来开始编写一个ExcelServices的托管代码型UDF组件。
You can use the Visual Studio 2005 class library template to easily create an Excel Services managed-code UDF assembly.
Wicket仅仅通过创建一个包含组件类和标记模板的JAR归档就可以进行打包。
In Wicket, components can be packaged simply by creating a JAR archive containing the components' classes and markup templates.
如果两个模板声明了相同的类名,那么它们就会相互影响到对方的变化,而不会产生任何警告信息。
If two templates declare the same class name, then they will interfere each others' changes with no warning.
为类选择其中一个模板(过滤、修改或创建消息)。
Choose one of the templates for the class (Filtering, Modifying, or Creating message).
关联模板使用特殊的模式遍历关联右端连接的类。
The template for association walks through the class attached on the right end of the association using a special mode.
第一个步骤是T4的引擎使用文本模板生成一个临时的转换类。
In the first step, the T4 engine USES the text template to generate a temporary transformation class.
根据一些默认的映射规则,模板自动地与应用程序中扩展Page的类匹配。
The templates are matched automatically with the classes that extend Page in your application using some default mapping rules.
另外,你可以写自己的Gas3代码生成模板,还能完全自定义生成的ActionScript 3类。
Additionally, you may write your own Gas3 code generation templates and fully customize generated ActionScript3 classes.
应用推荐