destructor
美 [dɪ'strʌktə]
英 [dɪs'trʌktə] 
- n.〈英〉垃圾焚化炉;破坏器;爆破装置
- 网络析构函数;解构式;析构器
词形变化
复数:destructors
英汉解释
英英解释
例句
The root class of an inheritance hierarchy should define a virtual destructor even if the destructor has no work to do.
继承层次关系的根类应该定义虚函数性质的析构函数,即使这个析构函数不做任何的事情。
The programmer has no control over when the destructor is called because this is determined by the garbage collector .
程序员无法控制何时调用析构函数,因为这是由垃圾回收器决定的。
If it considers an object eligible for destruction, it calls the destructor (if any) and reclaims the memory used to store the object.
如果垃圾回收器认为某个对象符合析构,则调用析构函数(如果有)并回收用来存储此对象的内存。
When the lock object goes out of scope and is destroyed, the object's destructor calls Unlock for you, releasing the resource.
当锁定对象超出范围并被销毁时,该对象的析构函数调用Unlock以释放资源。
The destructor is called just before your component is destroyed by garbage collection and its memory is reclaimed.
在垃圾回收销毁组件并回收其内存之前调用析构函数。
Similarly, a subclass destructor must call its superclass destructor after it has completed its own resource reclamation.
类似地,子类析构函数在它完成其资源释放之后,也要调用基类的析构函数。
The constructor and destructor of the queue class are responsible for the creation and destruction of the mutex, as shown in Listing 1.
队列类的构造函数和析构函数负责创建和销毁互斥锁,见清单1。
object to release resources and perform other cleanup operations before its destructor is called.
物件在呼叫其解构函式之前,释放资源并执行其他清除作业。
A destructor is named in a similar manner, except that it has a ~ (tilde) followed by the parent's name.
析构方法按类似的方式命名,除了它的母体名前有一个~(否定号)。
A. A matrix class in which the actual matrix is allocated dynamically within the constructor and is deleted within its destructor.
动态分配,对象的建立是利用构造函数,删除是利用析构函数。
A brutal Pit Lord and servant of Mannoroth the Destructor, Magtheridon found his way to Draenor after its cataclysm.
玛瑟里顿是破坏者玛诺罗斯的仆人--一个残忍的深渊领主,玛瑟里顿在灾难之后发现了德拉诺。
ConclusionThe CT is the diagnosis fungi the importance means of nasosinusitis, particularly erupt bone substance destructor of diagnosis.
结论CT是诊断真菌性鼻窦炎的重要手段,尤其是并发骨质破坏者的诊断。
To release resources and perform other clean-up operations before its destructor is called.
在调用其析构函数之前释放资源并执行其他清理操作。
Also enable the Named Return Value optimization , which eliminates the copy constructor and destructor of a stack based return value .
也支持命名返回值优化,它消除了基于堆栈的返回值的复制构造函数和析构函数。
Og also enables the Named Return Value optimization, which eliminates the copy constructor and destructor of a stack based return value.
Og还会启用命名的返回值优化,此优化可消除基于堆栈的返回值的复制构造函数和析构函数。
To see what happens when a Cardgame object is destroyed, view the destructor for the Cardgame class.
若要明白在Cardgame对象销毁时会发生什么,请查看Cardgame类的析构函数。
The other way to say it is, never define a global (static global) instance of a class whose constructor or destructor may throw exceptions.
换一种说法就是永远都不要为那些其构造函数和析构函数可能抛出异常的类定义全局(静态全局)实例。
Local handles are held on a stack and are deleted when the appropriate destructor is called.
本地句柄。本地句柄在栈上,并且当指定的析构函数被调用时删除。
When the handle scope's destructor is called all handles created within that scope are removed from the stack.
当句柄范围的析构函数被调用时,所有在那个范围中创建的句柄都将被从栈中移除。
First, the destructor of the object that's being deleted is called.
首先,调用将要被删除的对象的析构函数。
This destructor would have to be called specifically before unsetting the parent class reference.
这种解构器必须在解除父类引用之前进行调用。
CONSTRUCTOR AND DESTRUCTOR Let's discuss the implementation of the thumbnail class, starting with the constructor and destructor.
让我们从构造函数和析构函数开始来讨论略缩图类的实现。
A return type should not be set for a UML operation representing either a constructor or a destructor.
不应该为表示构造方法或析构方法的UML操作设置返回类型。
This destructor is what our Managed Extensions user programs invoke either directly or through an application of the delete expression.
托管扩展用户程序将直接调用此析构函数,或通过应用delete表达式进行调用。
If the BIO is embedded in a class, this would be used in the class' destructor.
如果将BIO嵌入于一个类中,那么应该在类的析构函数中使用这个调用。
You tried to modify a method, property, indexer, operator, constructor, destructor, or event containing a stackalloc operator.
您试图修改包含stackalloc运算符的方法、属性、索引器、运算符、构造函数、析构函数或事件。
Destructors for local objects are run; resources allocated by class-type objects ordinarily are freed by their destructor.
运行局部对象的析构函数,由类类型对象分配的资源通常由它们的析构函数释放。
This section discusses modeling the constructor, destructor, and copy constructor for a C++ class.
这个部分讨论了为一个C++类建模构造函数,分析构造函数,以及拷贝构造函数。
Hook's destructor checks if the hook is in the well-known default state. If not, an assertion is raised.
钩子的析构函数检查钩子是否处于缺省状态。如否,则引发断言。
If an exception occurs, the destructor cannot be called.
如果发生了例外状况,解构函式无法被呼叫。
In Listing 24, the constructor of F is called before F2; likewise for the destructor.
在清单24中,先调用F的构造函数,然后是F2的;对于销毁函数也是这样。
Secondly, within the class destructor, we release the resource acquired when the object was created.
其次,在类析构函数内,释放创建对象时获得的资源。
When the destructor is called, the garbage collector is invoked to process the queue.
调用析构函数时,将调用垃圾回收器来处理该队列。
Object. By implementing a destructor you can perform cleanup just before your component is removed from memory.
通过实现析构函数,可以在将组件从内存移除前执行清除操作。
Is the object destructor, but it should not be used unless you really, really need it.
是对象析构器,但是除非您确实非常非常需要,否则不应该使用它。
The resource-managing class should be designed so that the constructor acquires the resource and the destructor frees it.
应该设计资源管理类,以便构造函数分配资源而析构函数释放资源。
Specifies whether the class destructor is virtual.
指定类析构函数是否是虚的。
However, in the sand and glycerol, all populations of Ditylenchus destructor could not survive at low temperature.
试验发现在细沙和不同甘油浓度条件下,所有线虫群体在低温处理下均未查到活虫。
A client block is a special type of memory block used by MFC programs for objects that require a destructor.
“客户端块”是由MFC程序用于需要析构函数的对象的特殊类型内存块。
When a class contains a destructor, an entry is created in the Finalize queue.
如果类包含析构函数,Finalize队列中则会创建一个项。