模板函数总是用完全参数化的类型指定的。
Template functions are always specified with fully parameterized types.
但是在我们对超类所知的一切只限于它是类型参数的实例化时,对于什么样的构造函数可用于给定的实例化,我们没有任何概念。
But when all we know about our superclass is that it's some instantiation of a type parameter, we have no idea what constructors will be available for a given instantiation.
这些界限可以指定一组可用的构造函数,它们必须出现在参数的每一个实例化中。
These bounds could specify the set of available constructors that must be present in any instantiation of the parameter.
持久化参数信息,提供了一个参数列表,可以为每一个过程或函数输入参数值,并且持久化保存这些值。
Persist parameter information provides the list of parameters for which the values can be entered for each procedure or function, and these values are persisted.
如何定义具有数量可变的参数(每个参数的类型可能不同)的模板化类或函数?
How do you define a templated class or a function with a variable number of arguments, each with a potentially different type?
泛型类可被视为将它们的参数映射成新实例化的函数。
Generic classes can be viewed as functions mapping their arguments to new instantiations.
这类函数始终需要调用者为其提供一个字符串来进行格式化,因此应当使用命名参数。
Such a function would always require the caller to supply the string to be formatted, so that parameter should be explicitly named.
可以将泛型类型看作是类型“函数”;它们通过类型变量进行参数化,这些类型变量可以根据上下文用各种类型参数进行实例化。
Generic types can be thought of as type "functions"; they are parameterized by type variables that can then be instantiated with various type arguments depending on context.
清单1实例化一个默认的树查看器;您也可以定制树,并用树对象作为参数,用构造函数实例化树查看器。
Listing 1 instantiates a default tree viewer; you can also customize the tree and instantiate the tree viewer by using a constructor with a tree object as the parameter.
包含额外的类型参数注释,告知我们这些实例化必须包含哪些构造函数。
Include additional annotations on type parameters telling us which constructors those instantiations must contain.
当作为构造函数参数时,这些可变或者不可变的变量会在一个对象被实例化的时候被初始化。
When used as constructor parameters, the mutable or immutable variables specified will be initialized when an object is instantiated.
相比于面向对象语言,函数式语言在一个较粗粒度级别上实现重用,使用参数化行为提取常用的实现功能。
Functional languages achieve reuse at a coarser-grained level than object-oriented languages, extracting common machinery with parameterized behavior.
参数化的decorator较为常见,但是它们将所需的函数嵌套为三层。
Parameterized decorators are common, but they wind up needed functions nested three-levels deep.
这些参数避免了调用ejbload函数,但会将对bean实例的访问序列化。
These parameters avoid calls to the ejbLoad function, but serializes access to the bean instance.
ActionCatalog包含配方构造步骤函数的一个参数化的RecipeJAUS命令序列。
The ActionCatalog contains a parametrized RecipeJAUS command sequence for recipe construct step functions.
基于sendit函数传递的值初始化各种参数。
Initializes various parameters based on the values passed by the sendit function.
要求类型参数的所有实例化都包括不带参数的(zeroary)构造函数。
Require all instantiations of a type parameter to include a zeroary constructor.
函数注释的作用是为了标准化函数参数或返回值被注释的方式。
The purpose of function annotations is to standardize the way a function's parameters or return values are annotated. The syntax for function annotations is
其构造函数含有两个参数:初始化属性和预配置的记录器(logger)实例。
Its constructor takes two arguments: initialization properties and a pre-configured logger instance. Properties object contains the following.
创建了Zend _ Rest_Client对象的一个实例,在初始化操作中确定WikipediaAPI服务端点作为构造函数参数。
An instance of a Zend_Rest_Client object is created and initialized with the Wikipedia API service endpoint as constructor argument.
接下来,初始化services_oembed类的一个实例,类构造函数被传递两个参数:YouTubeURL和一组选项。
Next, an instance of the Services_oEmbed class is initialized, with the class constructor passed two arguments: the YouTube URL and an array of options.
首先,为了对类型参数构造合法的new表达式(如 newT() ),必须确保我们调用的构造函数对于 T 的每个实例化都有效。
First off, in order to form a legal new expression on a type parameter, such as new T(), it's necessary to make sure that we're calling a constructor that is valid for every instantiation of T.
D {string}- string字符串是strftime函数的格式化参数。
D {string} - string is formatted using the strftime function.
按照推理,如果您用SOAPMappingRegistry的无参数构造函数对它进行实例化,将返回一个具有2001名称空间意识的实例。
As a corollary, if you instantiate SOAPMappingRegistry with its no-arg constructor, a 2001 namespace-aware instance is returned.
运用关节位图和指数函数对步态特征进行了参数化描述。
Phase plots and exponentials function were used for the parameterized description of human gait characters.
需要一个不带参数的(zeroary)构造函数,用于所有类型参数的实例化。
Require a zeroary constructor for all type parameter instantiations.
结论关节位图和指数函数作为参数化描述方法可以用来区分不同的人体步态运动模式。
Conclusion Phase plots and exponentials function, as the parameterized description methods, can be used to distinguish the different human gait patterns.
通过逐步给这个函数增加参数的方式来泛化。
通过图表数据函数化可以使试差计算程序化,因而有效减少试差计算时间,还能方便地调节有关参数。
Programming of trial difference calculation could be realized, so time of calculation could be reduced effectively and parameter related could be adjusted conveniently.
通过图表数据函数化可以使试差计算程序化,因而有效减少试差计算时间,还能方便地调节有关参数。
Programming of trial difference calculation could be realized, so time of calculation could be reduced effectively and parameter related could be adjusted conveniently.
应用推荐