Listing 7. Generated Code for a template class.
列表7.为一个模板类所生成的代码。
How to specialize for member function type in template class?
如何专门为模板类成员函数的类型?
Domain model - modeling a template class and the instance class?
领域模型的一个模板类和实例类建模?
In Listing 8, template class a may be instantiated only if type t is signed.
在清单8中,仅当t有符号时,模板类a才能进行实例化。
Listing 8. Generated Code for a template class with DTYPENAME_TEMPLATES option.
列表8.为一个采用DTYPENAME_TEMPLATES选项的模板类所生成的代码。
Allowing a template class or function to be instantiated with only certain data types.
允许模板类或函数仅使用某些数据类型来进行实例化。
String identifying the template class for which this template builder is specified.
标识这个模板类别的字符串,模板建造者是为该模板类别指定的。
You cannot instantiate a generic or template class based on a local or unnamed type.
无法实例化基于局部类型或未命名类型的泛型或模板类。
You cannot instantiate a generic or template class based on a local or unnamed type.
您不能根据区域或未具名型别,具现化泛型或样板类别。
The template class Controls the rendering, and the localization and the launch of the JSP.
模板类控制处理和JSP的本地化和启动。
If you only wish to only distribute the compiled template class, the build process may be automated.
如果您只是希望可以只分发编译后的模板类,那么编译过程可以实现自动化。
The template class describes an object that controls a varying-length sequence of elements of type T .
本模板类描述了一个对象,这个对象是类型为T的可变长度的序列元素。
It is invalid to use an unspecialized template class name as a template parameter in a base class list.
将非专用化的模板类名用作基类列表中的模板参数是无效的。
Instances of the class can then be expanded into URIs using the static Template class expandAnnotated method as Listing 12 shows.
然后可以使用静态模板类expandannotated方法将类实例扩展为uri,如清单12所示。
The other notable line in this test is the class definition, which points to the template class, rather than one that you might create.
这个测试中另一个值得注意的行是这个类定义,它指向这个模板的类,而不是您可能创建的模板。
You must explicitly add the template type parameters to the template class name when using it as a template parameter in a base class list.
当要将某个模板类型参数用作基类列表中的模板参数时,必须显式地将该模板类型参数添加到模板类名中。
The first method is one that doesn't even appear in the source code for my template class back in Listing 1, the default constructor for the class.
清单1中的模板类源代码是类的默认构造函数,第一个方法没有出现在其中。
A consequence that emerged later in the project was that the implemented template class was not ideally suited to all types of communication technology.
后来该项目中的一项后果是,实现的模板类并不能理想地适用于所有类型的通信技术。
You could probably make this work by running with that, and explicitly casting it yourself inside the template class, but I don't think you need to.
你可以通过运行,使这项工作,并明确自己在铸造模板类,但我不认为你需要。
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.
为模板类一所生成的代码具有在模板类声明内部用于操作的声明和定义,如列表7中所示。
The design of data structure with this view has very important meaning to software developing. The paper builds a template class library of general data structures.
数据结构的抽象描述和类属模板设计对软件开发有着重要的意义。
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.
grammar类是一个模板类,被其派生类DerivedT和上下文类ContextT参数化。
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
您设计的派生类必须有一个名为definition(可以不修改此名)的嵌套的模板类/结构。
To create a template class such as template class one
要创建一个模板类,例如:template classone
Once the request has been processed and the action method view called, it is handed off to the template class; by default, this is Maypole: : view: : TT, which USES the template Toolkit.
一旦请求被process ed且动作方法view被调用后,它就会被提交到模板类;默认情况下,这个模板类是Maypole: View:TT,它使用了Template Toolkit。
When you build applications, you build a new class as a template for all objects.
当构建应用程序时,也同时构建了可以作为所有对象的模板的新类。
In the first step, the T4 engine USES the text template to generate a temporary transformation class.
第一个步骤是T4的引擎使用文本模板生成一个临时的转换类。
The following example is a template for creating a class with an arbitrary amount of properties.
下列实例是一个模板,用于创建拥有任意数量属性的类。
A modified class loader USES template files that look almost exactly like ordinary class files except for "holes" in the constant pool that are filled in at load time for each instantiation class.
修改的类装入器使用看上去几乎与普通类文件完全一样的模板文件,不同的是这个模板文件在常量池中有一些“洞”,在装入时为每个实例化类填充这些“洞”。
The idea behind these tools is that you can use an existing class as the template for your run-time class generation.
这些工具背后的思路是:可以将现有的类用作生成运行时类的模板。
应用推荐