destructor是什么意思   destructor怎么读

英式:[dɪs'trʌktə]    美式:[dɪs'trʌktə]

destructor单词基本解析:

n.破坏者,垃圾焚毁炉,爆炸装置
n. 破坏者, 垃圾焚毁炉
n.破坏者,垃圾焚毁炉,爆炸装置;

destructor变化用词:



destructor英英释义:

DestructorIn object-oriented programming, a destructor (sometimes shortened to dtor) is a method which is automatically invoked when the object is destroyed. It can happen when its lifetime is bound to scope and the execution leaves the scope, when it is embedded into another object whose lifetime ends, or when it was allocated dynamically and is released explicitly.

以上来源于:Wikipedia

destructor中文词源:

destructor用法和例句:

destructor


Our results are additional evidence that RAPD variability is not a reliable criterion for taxonomical inference and provide support for allopatric distribution of M. destructor and M. hordei species, in Tunisia.

destructor和M. hordei属于异域分布的观点提供了补充证据。


Peronospora destructor

n. 葱霜霉


Og also enables the Named Return Value optimization, which eliminates the copy constructor and destructor of a stack based return value.

Og还会启用命名的返回值优化,此优化可消除基于堆栈的返回值的复制构造函数和析构函数。


A client block is a special type of memory block used by MFC programs for objects that require a destructor.

“客户端块”是由MFC程序用于需要析构函数的对象的特殊类型内存块。


A destructor must be coded to release all the resources that an object owns.

一个合格的析构函数,必须将对象自己拥有的内存资源完全释放干净。


Shorthand for the rule of thumb that if a class needs a nontrivial destructor then it almost surely also needs to define its own copy constructor and an assignment operator.

一个经验原则的简写形式,即,如果一个类需要析构函数,则该类几乎也必然需要定义自己的复制构造函数和赋值操作符。


Al-Sadr castigated Bush for keeping troops in Iraq and compared the occupation to the regime of "the destructor," Saddam Hussein.

一名跟萨德尔有联盟关系的伊拉克议员在星期六与激进的什叶派宣读了一封严厉的公开信.


A destructor, in general, can perform any operation that the class designer wishes to have executed subsequent to the last use of an object of that class.

一般而言,析构函数可以执行任意操作,该操作是类设计者希望在该类对象的使用完毕之后执行的。


Here is an example of a destructor implementation.

下面是析构器实现的例子。


But what if a contained object's destructor were allowed to throw?

不过如果允许被包含的对象的析构函数抛出异常会怎样?


To manage a class with pointer members, we must define all three copy-control members: the copy constructor, assignment operator, and the destructor.

为了管理具有指针成员的类,必须定义三个复制控制成员:复制构造函数、赋值操作符和析构函数。


Whenever you provide any one of a destructor, copy constructor or assignment operator, you will generally need to provide all three.

主题:关于析构函数,拷贝构造函数和赋值函数的一句话怎么理解?


When an exception is caught, the compiler invokes the class destructor or destructors for the object or objects that are in the same scope as the exception.

优化不会影响此行为。当捕获异常时,编译器将为与该异常在同一范围内的对象调用类析构函数。


However, in this case, you know that the destructor must have been called by the garbage collector and you should not attempt to access other managed objects ....

但是在这种情况下,析构函数必须由垃圾收集器调用,而且不应访问其他托管的对象....


You need this definition, because the way virtual destructors work is that the most derived class's destructor is called first, then the destructor of each base class is called.

你需要这个定义,因为虚销毁函数的工作方式是最后的派生类的销毁函数先被调用,然后是每一个基类的销毁函数。


Using virtual destructors helps ensure that the correct destructor is called when instances of derived classes are deleted.

使用虚析构函数帮助确保当删除导出类的实例时调用正确的析构函数。


For example,given the following function,where class X defines a copy constructor,virtual destructor, and virtual function foo();

关于对象模型如何影响程序:(注意:下面的模型是采用了上面的模型)


Key words: Ditylenchus destructor; acetylcholinesterase; eserine; aldicarb; molecular polymorphism

关键词:甘薯茎线虫;乙酰胆碱酯酶;毒扁豆碱;涕灭威;分子型


When we delete a pointer that points to a dynamically allocated object, the destructor is run to clean up the object before the memory for that object is freed.

删除指向动态分配对象的指针时,需要运行析构函数在释放对象的内存之前清除对象。


Kinetic Energy Penetrator Destructor

动能钻探武器自毁器


Even with this explicit control over resources, the destructor becomes a safeguard to clean up resources if the call to the Dispose method failed.

即使有这种对资源的显式控制,析构函数也是一种保护措施,可用来在对Dispose方法的调用失败时清理资源。


The root class of an inheritance hierarchy should define a virtual destructor even if the destructor has no work to do.

即使析构函数没有工作要做,继承层次的根类也应该定义一个虚析构函数。


glycyphagus destructor desmopressin

去氨加压素


In addition, it's worth noting that C++/CLI automatically calls the destructor of local variables when exiting a method.

另外,值得注意的是,C++/CLI 在退出方法时会自动调用局部变量的析构函数。


We can directly call an object's destructor to destroy the object. Running the destructor does not free the memory in which the object resides.

可以直接调用对象的析构函数来撤销对象。运行析构函数并不释放对象所在的内存。


The destructor must be virtual if a pointer to a base is ever deleted when it actually addresses a derived-type object.

因为派生类对象包含基类部分,所以可以将派生类型的引用或指针转换为基类类型的引用或指针。


The destructor is called just before your component is destroyed by garbage collection and its memory is reclaimed.

在垃圾回收销毁组件并回收其内存之前调用析构函数。


Of the copy-control members, only the destructor should be defined as virtual.Constructors cannot be defined as virtual.

在复制控制成员中,只有析构函数应定义为虚函数,构造函数不能定义为虚函数。


In Managed Extensions, the destructor of a reference class is implemented through the following two steps: The user-supplied destructor is renamed internally to

在托管扩展中,引用类的析构函数是通过以下两个步骤来实现的


Including the same pointer to the same destructor in each list node looks like a waste of memory space.

在每个链表节点中包含同一个解除函数的同一个指针似乎是浪费内存空间。


the destructor parameter can be NULL or a pointer to an optional destructor function to be associated with key.

在类定义时类体内写的好像都是内联函数的。应该可以带参数。大部分参数都为空。


In the class destructor we will print out the final value of the counter.

在类的析构函数里面,我们打印出计数器最终的值.


To release resources and perform other clean-up operations before its destructor is called.

在调用其析构函数之前释放资源并执行其他清理操作。


destructor plant

垃圾处理厂 垃圾焚化厂


refuse destructor

垃圾焚化炉


destructor room

垃圾焚化间


Layered Fuzzy Control System of Destructor

垃圾焚烧炉的分层模糊控制系统


A fuzzy control system for stabilizing combustion of destructor

垃圾焚烧炉稳定燃烧的模糊控制系统研究


refuse destructor plant

垃圾焚烧炉装置


Research on the Combustion Stability Control in Destructor

垃圾焚烧稳定性控制研究


Keywords city rubbish destructor's burning substance contamination Let's standard environmental protection continuable developing;

城市垃圾;垃圾焚烧(炉);燃烧物;污染物;排放标准;环境保护;可持续发展;


If we delete a pointer to base, then the base-class destructor is run and the members of the base are cleaned up.If the object really is a derived type, then the behavior is undefined.

如果删除基类指针,则需要运行基类析构函数并清除基类的成员,如果对象实际是派生类型的,则没有定义该行为。


It is unclear what should happen if a destructor itself throws a new exception during this process.

如果在这个过程中析构函数本身抛出新的异常,又会发生什么呢?


If it considers an object eligible for destruction, it calls the destructor (if any) and reclaims the memory used to store the object.

如果垃圾回收器认为某个对象符合析构,则调用析构函数(如果有)并回收用来存储此对象的内存。


If the member is a built-in type or a pointer, the member is copied or assigned directly;the destructor does nothing to destroy members of built-in or pointer type.

如果成员为内置类型或指针,则直接复制或赋值,析构函数对撤销内置类型或指针类型的成员没有影响。


If that is the case, you'll probably be tempted to avoid paying the overhead cost of a call to an empty function by declaring your destructor inline.

如果是这种情况,你可能会通过将它声明成内联函数来避免函数调用的消耗。


If several threads are using the same container the destructor of the auto-unlink hook will be called without any thread synchronization so removing the object is thread-unsafe.

如果有多个线程使用同一个容器,由于自断钩子的析构函数被调用时没有线程同步,所以移除对象不是线程安全的。


If the destructor is empty, this just causes a needless loss of performance.

如果析构函数为空,只会导致不必要的性能损失。


If the destructor is empty, this simply results in a loss of performance.

如果析构函数为空,只会导致性能降低。


When a class contains a destructor, an entry is created in the Finalize queue.

如果类包含析构函数,Finalize队列中则会创建一个项。


A useful rule of thumb is that if a class needs a destructor, it will also need the assignment operator and a copy constructor.

如果类需要析构函数,则它也需要赋值操作符和复制构造函数,这是一个有用的经验法则。


It also acts like the destructor in that we first have to decrement the use count of the left-hand operand and then delete the pointers if the use count goes to zero.

它也像析构函数一样,首先必须将左操作数的使用计数减1,如果使用计数减至0就删除指针。


We'll explain virtual destructors in Section 15.4.4 (p. 587), but for now it is worth noting that classes used as the root class of an inheritance hierarchy generally define a virtual destructor.

它定义了一个构造函数以及我们已描述过的函数,该构造函数使用默认实参(第7.4.1节),允许用0个、1个或两个实参进行调用,它用这些实参初始化数据成员。


safety destructor

安全自毁器


The copy constructor and destructor but no assignment operator.

定义了复制构造函数和析构函数但没有定义赋值操作符。


timing destructor

定时灭雷器


In fact, many people summarize the situation this way: declare a virtual destructor in a class if and only if that class contains at least one virtual function.

实际上,许多人总结出的结果是:声明虚销毁函数当且仅当类包含至少一个虚函数。


Add output statements to the constructor, destructor and copy constructor to see the effect of the Named Return Value optimization when you run the program.

将输出语句添加到构造函数、析构函数和复制构造函数,以查看在运行程序时命名返回值优化的效果。


There is no guarantee that the destructor will ever get called, even once memory is released.

就算内存被收集,你的析构函数也不一定会被调用。


Should the exception in the destructor be ignored?

应该忽略析构函数中的异常吗?


The resource-managing class should be designed so that the constructor acquires the resource and the destructor frees it.

应该设计资源管理类,以便构造函数分配资源而析构函数释放资源。


refuse destructor furnace

废渣焚烧炉


When a destructor is called, actions specified in the destructor implementation are performed first.

当一个析构器被调用时,析构器实现中指定的动作将被首先执行。


When implementing a constructor or destructor in assembler, be sure to preserve the DL register.

当在内嵌汇编程序中实现构造器或析构器时,应确认保持DL寄存器。


When we inherit from one of these classes, then our destructor must also promise not to throw any exceptions.

当继承这两个类中的一个时,我们的析构函数也必须承诺不抛出任何异常。


When the lock object goes out of scope and is destroyed, the object's destructor calls Unlock for you, releasing the resource.

当锁定对象超出范围并被销毁时,该对象的析构函数调用Unlock以释放资源。


And since to establish the invariant you often have to acquire resources, you have the destructor to pull down the operating environment and release any resources required.

换句话来说,构造函数建立了不变式。而为了建立不变式,你通常需要分配一些资源。


The pathogenicity of sweet potato stem nematode (Ditylenchus destructor) to peanut (Arachis hypogaea) was confirmed by inoculation test in pot with peanut plants.

摘要盆栽接种试验表明,侵染甘薯的腐烂茎线虫对花生具有显著的致病性。


Method, retain the destructor while carrying out the first item.

方法,则在执行第一项时保留析构函数。


Close method on a file object instead of closing the file in the class destructor or with

方法,而不是在类析构函数中关闭该文件或者使用


Is the object destructor, but it should not be used unless you really, really need it.

是对象析构器,但是除非您确实非常非常需要,否则不应该使用它。


The effect of calling the destructor explicitly is that the object itself is properly cleaned up.

显式调用析构函数的效果是适当地清除对象本身。


Finally, when the destructor is called, it decrements the use count and deletes the underlying object if the count goes to zero.

最后,调用析构函数时,析构函数减少使用计数的值,如果计数减至0,则删除基础对象。


This solution defines the class CList as a class derived from the LIST structure and it stores a single destructor value to handle a single stored type.

本解决方案将CList类定义为从LIST结构导出的一个类,它通过存储解除函数的单个值来处理单个存储类型。


Destructor for class required in conditional expression

条件表达式需要析构函数类


Destructors cannot have parameters, they cannot have accessibility modifiers, and they cannot be invoked explicitly. The destructor for an instance is invoked automatically during garbage collection.

析构函数不能有参数,不能有访问级别修饰符,不能被显式调用.实例的析构函数在垃圾收集时自动调用.


Destructor cannot have a return type specification

析构函数不能有返回类型说明


The destructor is used to free resources acquired when the object was constructed or during the lifetime of the object.

析构函数可用于释放对象时构造或在对象的生命期中所获取的资源。


The destructor is a special member function that can be used to do whatever resource deallocation is needed.It serves as the complement to the constructors of the class.

析构函数就是这样的一个特殊函数,它可以完成所需的资源回收,作为类构造函数的补充。


A destructor is not limited only to relinquishing resources.

析构函数并不仅限于用来释放资源。