Adds a reference count to an existing chapter.
向现有的章节添加引用数。
Each object has an associated reference count — the number of active references to that object.
每一个对象都有一个关联的引用计数——对该对象的活跃引用的数量。
If no other reference points to the object, then its reference count reaches 0 and it is deallocated.
如果没有其他的引用指向对象,那么它的引用计数达到0,这是释放。
If an object's reference count is zero, it is garbage (unreachable from the user program) and can be recycled.
如果对象的引用计数是零,那么它就是垃圾(用户程序不可到达它),并可以回收。
In a reference counting system, each object referenced maintains a count of how many objects are referencing it.
在引用计数系统,每个所引用的对象都会保留一个计数,以获悉有多少对象正在引用它。
A circular reference is formed when two objects reference each other, giving each object a reference count of 1.
当两个对象互相引用时,就构成了循环引用,其中每个对象的引用计数值都被赋1。
This method enables you to force an RCW reference count release so that it occurs precisely when you want it to.
此方法使您能够强制RCW引用计数释放,以便它按照您的所需准确发生。
The use of the reference count is a simple but effective mechanism to avoid freeing still-referenced data structures.
叁考计数的使用作为一个简单而有效的机制-避免释放静止的叁考数据结构。
In a reference counting system, however, neither of the objects can be destroyed, because the reference count never reaches zero.
而在引用计数系统,这两个对象都不能被销毁,原因是引用计数永远不能为零。
This is a "shallow" copy, which increments the reference count of the encapsulated BSTR object instead of creating a new one.
这个是一个浅拷贝,这个封装的BSTR对象的递增的引用计数器而不是创建一个新的。
First, this program also decrements the reference count on objects passed to it from Python, using the Py_DECREF call introduced in Chapter 22.
首先,这个程序使用第22章介绍的Py _ DECREF函数,减小了从Python传来的对象的引用计数。
The ownershippolicy is implemented through reference counting—typically called "retaincount" after the retain method. Each object has a retain count.
所有权政策是实现通过引用计数通常称为“保留计数”后保留方法。每一个对象都有一个保持计数。
Once the object has been removed from that set, the reference count is decreased by one, making it zero, and therefor queuing the object for deallocation.
一旦对象已经从集合中移除,则引用计数减一,使其为零,因此排队对象释放。
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.
对于在可重用软件组件设计中的COM对象循环引用问题,当前的各种解决方法都存在不足之处。
Reference counting involves keeping a count of how many references to a given object are extant, then deleting the object automatically after the last one is released.
引用计数(reference counting)是对一个给定的对象当前有多少指向它的引用保留有一个计数,然后当最后一个引用被释放时自动删除该对象。
By maintaining a correct reference count for existing legacy files, the installer can determine whether to delete legacy files when it uninstalls the application.
通过为现有旧式文件维护正确的引用数,安装程序可在卸载应用程序时确定是否删除旧式文件。
When the timer is fired, the reference count on the structure is incremented, because the last thing you want is for the data structure to be freed before the timer expires.
当定时器被开启的时候,叁考计数在结构上被增加,最后一件事,在定时器期满之前,你需要释放这个数据结构。
This may cause the reference count for the object previously bound to the name to reach zero, causing the object to be deallocated and its destructor (if it has one) to be called.
这可能导致早先约束到该名字的对象的引用计数降为零,导致释放该对象的分配空间并调用其析构器,如果它有一个的话。
If object B was not owned by anyone else, this is its last reference count which means this last unref runs B's dispose handler which, in turn, releases B's reference on object A.
如果对象B已经不被其他所占有,这就是最后一次由B的处理函数进行的引用计数,释放在对象A上的引用。
Each area of scoped memory has a reference count; when a thread enters an area of scoped memory, the reference count is incremented, and when it leaves, the reference count is decremented.
作用域内存的每个区域都有一个引用计数;一个线程进入scoped内存的一个区域时,该引用计数将递增,当该线程离开时,引用计数则递减。
Therefore, the object actually exposes another function to increment the reference count: Whoever has a pointer to the object can tell the object that she or he just gave the pointer to somebody else.
所以,对象实际上导出另外的函数来增加引用计数:对象指针的拥有者能够告诉对象它把指针给别人用了。
So count on what is detailed here to be correct in concept, if not exactly in detail, by the time JAXP 1.1 goes final in both its specification and reference implementation.
因此,如果在JAXP 1.1的规范和参考实现都完成之时发现细节部分不完全正确,请认为本文所述的细节部分在概念上是正确的。
Afferent coupling represents the count of how many other classes reference the current class, via either fields or parameters.
而传入耦合则表示其他类通过字段或参数引用当前类的次数。
Twitter search results are returned in a hash reference with a page count and other fields besides the search results themselves.
Twitter搜索结果以一个散列引用的方式返回,除搜索结果本身外,还包含一个页面计数和其他字段。
The result value is returned as a reference, so you have to de-reference it to get the word count you requested.
结果值被返回为一个引用,所以您必须对它解除引用,以得到您所请求的单词计数。
Thompson's projection used a day-by-day count to cross -reference the Mayan to the European calendar rather than a count of years.
汤普森的设想是作用逐天计算去勾划——涉及了玛雅到欧洲的历法,而不是年的计算。
From the view of judicial practice, the paper picks out the existing problems and their reason, in the same time, provides our count measures to meet the judicial study needs or just act as reference.
本篇论文站在面向司法实践的立场上,指出重婚罪当前存在的问题以及原因,并在立足于实践的基础上提出应对方案,以资理论探讨之需与司法实践之参考。
From the view of judicial practice, the paper picks out the existing problems and their reason, in the same time, provides our count measures to meet the judicial study needs or just act as reference.
本篇论文站在面向司法实践的立场上,指出重婚罪当前存在的问题以及原因,并在立足于实践的基础上提出应对方案,以资理论探讨之需与司法实践之参考。
应用推荐