其他方式是交叉类、联合类、补充类、限制类和枚举类。
The other types are intersection classes, union classes, complement classes, restrictions, and enumerated classes.
我可以创建一个模板偏特化的类模板的匹配枚举类型?
Can I create a partial template specialization of of a class template matching enumeration types?
或者说,在一个拥有枚举类型Size变量的类中做这些更有意义吗?
Or, does that make more sense in a class that has a variable of enum type Size?
同样,如果属性值在枚举类中定义,您可以只将该枚举指定到属性。
Similarly, if the property's values are defined in an enumeration class, you can simply assign the enumeration to the property.
翻译单元中只能有任何变量,函数,类类型,枚举类型或模板的唯一定义。
No translation unit shall contain more than one definition of any variable, function, class type, enumeration type or template.
完成上述步骤后,就可以在希望使用枚举的任何位置使用第5步中编写的定制枚举类了。
When you are done, you can use the custom enumeration class that you wrote in step 5 anywhere that you want the enumeration to be used.
一个元类型是对任一类型(包括类类型,结构类型,枚举类型以及协议类型)的类型的引用。
A metatype type refers to the type of any type, including class types, structure types, enumeration types, and protocol types.
惟一需要当心的是枚举类型。 它被定义成一个Class,而不是其他模型类中的Interface!
The only other thing to watch out for is that an enumerated type is defined using a Class and not an Interface like other model classes.
实际上,Scala的枚举类支持和集合协作需要的一般方法,所以我们可以简单地在循环中遍历这些种类,或者通过名字过滤它们。
In fact, Scala's Enumeration class supports the usual methods for working with collections, so we can easily iterate through the breeds with a for loop and filter them by name.
当调用转换时,从uml模型、包、类、接口,或枚举元素开始,这依赖于您调用转换时选择的内容。
When a transformation is invoked, it begins with the UML model, package, class, interface, or enumeration element, depending on what was selected when the transformation was invoked.
这个过程包括指派一个SearchFilter()类的实例,并把这个实例关联到记录枚举对象。
This consists of allocating an instance of our SearchFilter() class and associating this instance with a record enumeration object.
虽然枚举是许多程序语言的内置支持,Scala走了一条不同的路,把它作为标准库的一个类来实现。
While enumerations are a built-in part of many programming languages, Scala takes a different route and implements them as a class in its standard library.
紧跟comparator类之后的代码创建了一个比较器的实例,并在创建记录枚举时将其作为一个参数。
The comparator class is followed by the code to create an instance of the comparator and pass this as a parameter when creating a record enumeration.
调用Web服务时,运行代码来以恰当的值初始化所有全局枚举对象(在本例中是创建一个BookTypeInitializer类的实例来完成的)。
When the Web service is called, run code to initialize all the global enumeration objects with proper values (in our case, by creating an instance of the BookTypeInitializer class).
这里,使用枚举可能值得考虑,因为它可以消除对引用类型的需要,并且将值直接存储到类中。
It might be worth considering an enumeration here since it would remove the need for a reference type and store the value directly in the class.
本文仅关注类图以及相关联的模型元素(类、包、关联、属性和枚举)。
This article will only focus on the class diagram and associated model elements (class, package, associations, attributes, and enumeration).
图5中显示了这三个类之间的关系,以及支持类和枚举。
The relationship between these classes is illustrated in Figure 5, along with the supporting classes and enumerations.
例如,定义在另一个概要文件中的元素(类、枚举和原型)现在可以被用于原型类型的属性中。
For example, elements (classes, enumerations, and stereotypes) defined in the other profile can now be used to type stereotype attributes.
这个stereotypedUML包下所有的类、结构、枚举(以及其它)生成代码之后,都将包括在这个名字空间中。
All the classes, struct, enums (and so on) under this stereotyped UML package will be generated within this namespace in the generated code.
完成比较器的编写之后,我们来创建一个枚举器,其中引用了comparatorinteger类的一个实例。
With the comparator code written, we next create an enumerator, referencing an instance of the ComparatorInteger class.
MatchIterator类是可枚举的,它还处理正则表达式处理过程。
The MatchIterator class is enumerable and handles the regular expression processing.
在第1部分,我演示了如何枚举设备类。
In Part 1, I have demonstrated how to enumerate device classes.
“类型转发”是指将类、结构、接口、委托或枚举的定义重新分配到从中进行初始定义的程序集以外的一个程序集。
Type forwarding means reassigning the definition of a class, structure, interface, delegate, or enumeration to an assembly other than the one in which it was originally defined.
在这个示例中,我们有一个数据库管理器的类,该类保持了所有到数据库的活动连接,并且提供了一个枚举所有这些连接的方法。
In this example, we have a database manager class that keeps track of all active connections to the database and provides a method for enumerating those connections.
他们是在类,使可用的枚举方法都包含供您使用。
They are in the class so that all of the available enum methods are included for your use.
至于颜色类不提供任何可枚举集合或数组的颜色,反而暴露了属性的颜色。
As colors class does not provide any enumerable collection or array for colors, instead it exposes colors as properties.
缺少标记函数体、类成员块、接口成员块或枚举块的开头的左大括号。
The left brace that marks the beginning of the function body, class member block, interface member block, or enumeration block is missing.
包中只允许有类、接口和枚举。
Only classes, interfaces, and enumerations are allowed inside a package.
这个算法本质上是通过系统地枚举网络的一类特殊子网络而计算其ST可靠性或生成可靠性表达式。
An algorithm for computing ST reliability was presented, it computed ST reliability or produced a ST reliability expression by enumerating a class of special subnetworks of given.
这个算法本质上是通过系统地枚举网络的一类特殊子网络而计算其ST可靠性或生成可靠性表达式。
An algorithm for computing ST reliability was presented, it computed ST reliability or produced a ST reliability expression by enumerating a class of special subnetworks of given networks.
应用推荐