将看到一个空白类。
This returns a new empty class to which I can add attributes.
它返回一个新的空类,我能向此空类添加属性。
The compiler still has to allocate space for the empty class, right?
编译器仍然必须为空类分配空间,对吧?
The near empty class root is really a placeholder for the root URL of your site.
root 基本上是一个空类,实际上是站点根URL的占位符。
Note that, as expected, the compressed_pair_imp is derived from the empty class.
请注意,正如您所预期的那样,compressed _pair _ imp派生自空类。
Note that when the first element is an empty class, compressed_pair_imp returns *this.
请注意,当第一个元素为空类时,compressed_pair_imp返回 *this。
Owl: thing is the most general class, which contains everything; owl: Nothing is an empty class.
thing是最通用的类,它包括了一切东西;owl:Nothing是一个空类。
Here's the trick: Instead of containing the empty class as a member, the pair structure in Boost derives from the empty class.
技巧在于:不包含空类作为成员,Boost中的pair结构是从这个空类中派生出来的。
To create the JRubyInterpreter class, create a new source code file with an empty class skeleton and add the Interpreter interface to the definition.
要创建jrubyinterpreter类,需要先创建一个新的源代码文件,其中带有空的类骨架,再向此定义中添加Interpreter接口。
I can now fill the new empty class with attributes such as string and number types (representing the elements of the character), as well as functions common to this class.
我现在能向这新的空类填充属性,诸如字符串和数字类型(代表了角色的成分),以及这个类中常用的函数。
However, I find it easier to create the class file first, with some empty methods, and then create the test file.
然而,我发觉首先创建带有一些空方法的类文件,然后生成测试文件是很容易的。
Instead of defining a separate class for empty lists, it represents empty lists by putting a null pointer in both fields.
它在两个域中都放置一个空指针来表示空链表,而不是为空链表定义一个单独的类。
The same could have been accomplished by adding a special abstract class with empty callbacks.
通过添加带有空回调的特定抽象类同样可以完成该操作。
After all, we've saved the effort of having to define an extra class just for empty lists.
毕竟,我们不必仅仅为了空链表而去定义一个额外的类。
A simple optimization to this code would be to apply the Singleton design pattern to class Empty, because every instance of Empty is identical.
这段代码的一个简单优化是对empty类应用同一个设计类型,因为每一个Empty的实例都是同样的。
Code Sample 2: Empty TriangleType class.
代码示例2:空的triangletype类。
Create an empty OMElement object using a factory class.
用一个工厂类来创建一个空的OMElement对象。
The tool will also create an empty implementation class for you that contains the following code in an empty method with the signature.
该工具还将为您创建一个空实现类,此类在一个具有签名的空方法中包含以下代码。
The class is empty by default, as Rails infers the attributes of the class based on table metadata from the database.
默认情况下,该类为空,因为Rails将根据来自数据库的表元数据推断该类的属性。
Figure 10: Empty diagram now populated with CheeseGrater class, dragged and dropped from the project explorer.
图10:空图中现在填充了从projectexplorer中拖拽过来的cheesegrater类。
Adapter class that provide empty implementations of the methods and can reduce the amount of code you need to write.
adapter类,这个类提供了一些空的方法实现,并且可以减少您需要编写的代码数量。
You’re telling the “Book” class that you want an empty book object, named “newbook.
你正告诉这个 "Book"类别你要一个空的 book物件,称作 "newbook"。
Rails provides reasonable definitions of blank? For several other objects too: true, false, empty arrays or hashes, numeric types, and even the object class.
Rails同时为许多其他对象提供了合理的blank ?定义:true,false,空数组及哈希表,数值类型,甚至是Object类本身。
Because these methods depend on the debugger executable, and because the example plug-in doesn't have one, the ExampleDebugger class leaves these methods empty.
由于这些方法依赖于调试器可执行文件,而示例插件没有提供这些文件,因此ExampleDebugger类将这些方法留空。
How can you tell whether a class is empty?
您如何知道一个类是否是空的?
If value equals 1, the class is empty; otherwise, you should see 0.
如果值等于1,则该类是空的,否则应该看到0。
For instance, any class representing a non-empty container would naturally take arguments representing its elements in the constructor.
例如,表示非空容器的任何类在构造函数中必然使用表示其元素的参数。
The empty house, in a middle-class corner of southern California, is two storeys high and boasts a three-car garage. Roses bloom around a kidney-shaped swimming pool, which is green with algae.
在南加州一个中产阶级聚居区,坐落着这样一套双层空置住宅,它带有一个可以停放三辆车的巨大车库,院中有个半环形的游泳池,池边开满了玫瑰,然而池水中却长满了青苔。
You are allowed to attend any lecture, only if there are empty seats for you and you don't disturb the class.
只要教室里还有空位,你又不扰乱课堂,你就可以旁听任何课。
Tens of thousands of working-class Japanese found refuge in an empty patch of ground near the river.
成千上万的日本工薪阶层在河旁边找到了一处避难的空地。
应用推荐