对于在可重用软件组件设计中的COM对象循环引用问题,当前的各种解决方法都存在不足之处。
To remedy the shortcomings in the existing methods for the problem of circular reference count in COM object this study presents an indirect reference method.
在一个循环中恢复所有其他对象。
得到请求对象之后就可以进入请求/响应循环了。
Once you have your request object, you can begin the request/response cycle.
输出完成后,通过向客户端流写入一个NULL对象,而且循环等待下一个客户端,从而刷新流。
When the output is complete, the stream is flushed by writing a NULL object to the client stream and loop awaiting the next client.
一个循环对象图不能够转换为树结构。
A cyclic object graph cannot be transformed into a tree structure.
当两个对象互相引用时,就构成了循环引用,其中每个对象的引用计数值都被赋1。
A circular reference is formed when two objects reference each other, giving each object a reference count of 1.
当逻辑在本质上是循环逻辑(也就是说,对象或系统的一部分重复执行一系列状态)时,状态机也非常有用。
State machines are also useful when the logic is cyclic in nature; that is, where an object or part of the system goes through a series of states repeatedly.
这很让人意外,因为循环引用几乎出现在所有的持久化对象图中。
This is a surprising fact, given that circular references are a common occurrence for almost any persistent object graph.
只有JEST可以将增强的JSON表现重新解析而创建一个具有循环引用的对象图。
Only JEST can reinterpret the enhanced JSON representation to recreate an object graph with cyclic references.
当事件发生时,与这个事件对应的对象发出信号,通知主循环事件已经发生。
When an event occurs, the object associated with that event emits a signal to inform the main loop that it has occurred.
循环关系对于RDF和对象模型非常常见。
Cyclic relationships are a common situation in RDF and in object models.
如果脚本正在编写,用于创建用变量定义的大量网桥对象,这些对象的创建可以放在一个循环中。
If a script is being written to create a number of bridge objects defined by a variable, the creation of those objects can be placed inside a loop.
有些内存泄漏是由于程序错误发生的,在存在此类错误的情况下,应用程序代码中的无限循环会分配新的对象,并将其添加到可从程序循环范围外面访问的数据结构中。
Some memory leaks occur due to program errors in which infinite loop in the application code allocates new objects and adds them to a data structure accessible from outside the program loop scope.
如果没有其他人同时更新分发器对象,我们随后的更新仅需一次循环。
If nobody else has updated the dispenser object in the meantime, our later updates will only cost a single round-trip.
它在收集循环开始时在概念上记录堆的状态并保留当时的和当前循环中分配的所有活对象。
It conceptually records the heap's state at the beginning of a collection cycle and preserves all live objects at that point as well as those allocated during the current cycle.
清单11显示如何实现一个for - each循环来在数组中的每个对象上重复同一个动作。
Listing 11 shows how to implement a for-each loop to repeat the same action on every object in the array.
StringCreator类进入到一个无限循环中并且使用值“hello”在 //1 处创建String对象。
The StringCreator class enters an infinite loop and creates String objects with the value "hello" at //1.
您使用foreach()循环来迭代通过得到的对象集合,如清单3中所示,以产生等价于 清单 4中的输出。
You use a foreach() loop to iterate over the resulting object collection, as in Listing 3, to produce output equivalent to that of Listing 4.
不过,现在需要显式地对数据库查询结果对象进行循环以便创建这些表的行并添加Edit选项。
However, you will now need to explicitly loop over the database query result object to create the table rows and add the Edit option.
然后请注意,在循环体中,我使用callback来调用传递的参数函数对象。
Notice that then, in the body of the loop, I use callback to invoke the passed parameter function object.
简单地说,使用for循环,可以迭代中对象集合的项目。
Simply put, the for loop lets you iterate through the items in a collection of objects.
如果你对STL不熟悉,去看看有关迭代器反引用操作符的内容,它返回当前指向的对象,上面代码段中,for循环里的代码等同于。
In case you're not up on your STL, recall that for iterators the dereference operator returns the current object, so the line inside the for loop in the preceding snippet is equivalent to.
标准的PHP循环结构可以遍历 QueryPath对象选择的元素。
The standard PHP looping structures can loop through a QueryPath object's selected elements.
在底层,您可以看到返回了JDBCResultSet对象,它的内容被传递进for循环。
Underneath, you can visualize a JDBC ResultSet object being returned and its contents being passed into a for loop.
在该代码片段中,创建了单个PatientRecord对象,并且Clear方法重置了内容以便可以在循环内部重新使用它。
In this excerpt, a single PatientRecord object is created and a Clear method resets the contents so it can be reused within the loop.
for循环有一个简单的语法,使您可以从容器对象中提取单个项目并对其进行某些操作。
The for loop fundamentally has a simple syntax, allowing you to extract a single item from a container object and do something with it.
在获得的词汇对象数组上执行 foreach循环,找到词汇ID $tid。
The term ID, $tid, is found using a foreach loop on the array term object array retrieved.
循环或列表中的变量包括了列表或对象集合的所有元素。
A variable in a loop or list comprehension ranges over the elements of a list, or a collection of objects.
然后,for循环解析文本行并创建StockBean对象,该对象被存入数据库中。
A for loop then parses text rows and creates StockBean objects that are stored to the database. The CSV file's format is as follows.
第三个for循环迭代通过调用string对象的lower方法返回的临时string。
The third for loop, however, iterates over a temporary string returned by a call to the string object's lower method.
应用推荐