Given that the only fundamental difference between them is the name of the class, it would help to have a simple way to create a template for a single rule that handles all cases.
假设它们之间唯一的根本差别是类名称,那么它将有助于利用一个简单的方法来为能够操作所有类的唯一的规则创建模板。
A consequence that emerged later in the project was that the implemented template class was not ideally suited to all types of communication technology.
后来该项目中的一项后果是,实现的模板类并不能理想地适用于所有类型的通信技术。
The following example is a template for creating a class with an arbitrary amount of properties.
下列实例是一个模板,用于创建拥有任意数量属性的类。
Each object is an instance of a particular class, which can, in turn, serve as a template for many different objects.
每个对象都是特定类的一个实例,这个类可以作为多个不同对象的模板。
For styling you would be concerned with the values for the class attributes of the template.
就样式化而言,应该格外关注模板的类属性值。
The template for association walks through the class attached on the right end of the association using a special mode.
关联模板使用特殊的模式遍历关联右端连接的类。
This placeholder class should represent the instantiation of List by binding the template parameter t to the template parameter of X.
该占位符类可以通过将模板参数t与模板参数X绑定来实例化。
With this option, the keyword typename is generated for every template parameter of type class.
通过这一选项,关键字typename被生成用来类类型的每一个模板参数。
Figure 5. Creating a template parameter of type class.
图5.创建一个类类型的模板参数。
As the element will be created at a later stage, when we apply Asset 1, we add another template parameter called "marshaller" of type "class" (Figures 15 and 16).
当在后期应用资产1创建元素时,我们添加类型“类”的另一个模版参数,名为“marshaller ”(图15和16)。
You can then use the generated Greeting class in Python code, just as if you had defined a generic Template with the contents of greeting.tmpl.
然后,您可以在Python中使用生成的greeting类,就像您已经使用Greeting .tmpl的内容定义了一个通用Template一样。
The Template Method pattern defines the skeleton of an algorithm in a base class, using abstract methods and overriding to defer individual details to child classes.
TemplateMethod模式定义了基类算法的骨架,使用了抽象方法和覆盖将具体细节放到子类中。
The transformation also provides an option to generate the keyword in place of class for template parameters of type class.
该转换还提供了一个选项来为类类型的模板参数生成替换 class 的关键字。
To identify blocks of content generated by specific template files, we use a class attribute value that describes the content fragment in the containing element.
为了标识特定模板文件生成的内容区块,我们在包含它的元素中使用一个描述内容片段的class属性。
The ID given for the label component in the page class ("message") must match with the Wicket ID of the element in the template file (wicket:id="message").
页面类中label组件的ID("message")必须要与模板文件内此元素的Wicket ID(wicket:id="message")相匹配。
Instances of the class can then be expanded into URIs using the static Template class expandAnnotated method as Listing 12 shows.
然后可以使用静态模板类expandannotated方法将类实例扩展为uri,如清单12所示。
An instance is a Python object that was "manufactured" by a class; the class ACTS as a sort of template for the instance.
实例是由类“制造”的Python对象;类充当实例的一种模版。
Applying an XSLT template based on class attribute values allows a transform to be applied to whole branches of element types, instead of just a single element type.
根据class属性值设计XSLT模板可以让转换应用于整个元素类型分支而不仅仅是单个元素类型。
Once you have done that, leave the defaults as they are (template type Blank Model, with a diagram type of Class Diagram, since we will be viewing our imported classes in the UML class diagram).
一旦你进行了上面的操作,余下的就是默认的内容了(模板类型BlankModel,与一个图表类型ClassDiagram,我们会一直能看见我们在UML图中输入的类 )。
The first line of a typical JET template will be to cast this to a more appropriate class, as shown in Listing 2.
典型的JET模板的第一行会将其转换为一个更适合的类,如清单2所示。
The template class Controls the rendering, and the localization and the launch of the JSP.
模板类控制处理和JSP的本地化和启动。
If, for example, you'd like all of your controllers to extend an abstract parent class, you can make the change here. All new controllers will be based on your modified template code.
例如,如果想让所有控制器都扩展一个抽象父类,那么可以在这里进行修改。
We will import the class (overriding the one generated for us by the View template) and then examine the relevant portions of the code.
我们将会导入该类(装载我们通过视图模板生成的类)并且接下来检验代码的相关部分。
No translation unit shall contain more than one definition of any variable, function, class type, enumeration type or template.
翻译单元中只能有任何变量,函数,类类型,枚举类型或模板的唯一定义。
Sequential arrays are processed by the VariablePersister function, creating a variable identified as the same name of the VariablePersister class created from the template suffixed with _pointer.
序列数组由ariablepersister函数处理,创建一个与variablepersister类相同名字的变量,该类创建自以_ POINTER为后缀的模板。
The third element of the base class is used to choose which specific template specialization to use. The value for the third element is provided by
基类的第三个元素用于选择要使用哪种具体的模板特殊化。
The output of each node template was structured consistently, usually contained within a DIV element whose class attribute value would describe the template being used.
每个节点模板的输出采用一致的结构,通常是将输出包围在一个DIV元素中,这个元素的class属性值描述使用的模板。
As part of homework I've been asked to write my own template vector class (most of the code is there it just needs to be expanded upon).
作为家庭作业,我被要求写自己的模板向量类(大部分代码都有它只需要被扩展)。
Here we have declared a template-based class that stores a variable sized list of values.
在这里,我们定义一个基于模板的类,它存储一个可变大小的列表。
Here we have declared a template-based class that stores a variable sized list of values.
在这里,我们定义一个基于模板的类,它存储一个可变大小的列表。
应用推荐