我怎样为这个派生类编写移动赋值函数?
How do I write the move assignment function for this derived class?
在基于D-S推理的信息融合中,其关键问题是基本概率赋值函数的构造。
The key problem to D-S reasoning is basic probability assignment function, so the algorithm implementation of D-S reasoning is a esrious problem.
这为赋值函数(mutator)和垃圾收集器带来了大量的额外工作,但是可以得到更短的收集暂停。
This creates significant extra work for the mutator and garbage collector, but permits much shorter collection pauses.
赋值函数(mutator)和垃圾收集器可以共同工作以在创建老到年轻的引用时维护它们的完整列表。
The mutator and garbage collector can work together to maintain a comprehensive list of old-to-young references as they are created.
引用计数很简单,但是需要编译器的重要配合,并且增加了赋值函数(mutator)的开销(这个术语是针对用户程序的,是从垃圾收集器的角度来看的)。
Reference counting is simple, but requires significant assistance from the compiler and imposes overhead on the mutator (the term for the user program, from the perspective of the garbage collector).
对于浮点变量的操作只限于简单的赋值表达式和作为VUE函数的变量。
Operations for floating point variables are limited to simple assignment expressions and as arguments to VUE functions.
在“main”函数里的改变更有意思,在这里我们首先映射我们文件的了吧到一个异步工作流的列表上,并把它赋值给一个“tasks”标识符(即变量)。
The changes to the "main" function are more interesting, here first we map our list of files to a list of asynchronous workflow and bind it to the identifier "tasks".
告诉我们,接下来的赋值过程将使用异步的方式,而ReadAsync函数为BeginRead和EndRead方法如何被调用提供了规范。
"Tells us that the bind will be made asynchronously, and the ReadAsync function provides the specification of how the BeginRead and EndRead methods should be called."
纯粹的函数性语言不依赖保存或检索状态的操作,因此不允许破坏性赋值。
Pure functional languages do not rely on operations that save or retrieve state and do not allow destructive assignments.
函数是FP 的一类公民,这意味着它们可以被赋值给变量,被传递给其他函数等,就像普通的值一样。
Functions are “first-class” citizens in FP, meaning they can be assigned to variables, passed to other functions, etc., just like other values.
使用赋值上下文,如简单架构中那样,还使用构造函数参数的类型(称为复杂结构)。
Use assignment context, as in the simple scheme, and also use the type of constructor arguments (call this complex).
注意一个函数赋值或对象赋值语句也是赋值语句,应该以分号结尾。
Note that an assignment statement which is assigning a function literal or object literal is still an assignment statement and must end with a semicolon.
接下来的函数确定每个赋值项的lvalue的长度,这通过将strlen函数映射到已过滤的函数的副本上来实现。
Next the function determines the length of each assignment's lvalue, by mapping the strlen function over a copy of the filtered lines.
为了避免别名效应,您需要调用内置的copy函数来复制列表,然后改为对副本进行赋值。
To avoid this aliasing effect, you need to call the built-in copy function to duplicate the list, and then assign the copy instead.
如果必须传入抽象工厂对象,那么您必须添加一个新的公用构造函数或赋值(mutator)方法。
If an abstract factory object must be passed in, then you must add a new public constructor or mutator.
函数String()接收一个字符串 string,将其封装到一个表({value =sor ''})中,并将元表 mt赋值给这个表。
The function String() takes a string, string, wraps it in a table ({value = s or ''}), and assigns the metatable mt to the table.
每个都可以赋值给一个变量,作为参数传递,或作为返回值从函数中返回。
Each can be assigned to a variable, passed as an argument, or returned from a function. For instance, here's an example of storing a function.
或者,我们可以声明一个使用通用实例的对象,它可能要用常量来定义内部结构,然后我们可以选择一个常量来为这个函数赋值,以使其具备变量的特征。
Alternately, you can declare a kind of object using the all-purpose instantiator var, which may use literals to define internal structures.
当用外部的x对closuredemoparentfunction进行调用时,外部函数变量a就会被赋值为外部的x。
When a call is made to closureDemoParentFunction with a parameter of outer x, the outer function variable a is assigned the value outer x.
如果你想给全局变量重新赋值,结果会很意外。下面的例子中,本来是想要追踪确定函数是否被调用了。
If you try to reassign a global variable, you might be surprised. The following example is supposed to keep track of whether the function has been called.
在函数里面,实际参数会被赋值给形式参数。下面就是一个使用单个实际参数的函数的定义。
Inside the function, the arguments are assigned to variables called parameters. Here is a definition for a function that takes an argument.
如何从复制赋值运算符调用复制构造函数?
How to call to the copy constructor from the copy-assignment operator?
和表达式一样,避免写复杂的模板语句。常规是函数调用或者属性赋值。
As with expressions, avoid writing complex template statements. A method call or simple property assignment should be the norm.
对象不需要复制构造函数或赋值操作符来保存到介入式容器中。
Objects don't need copy-constructors or assignment operators to be stored in intrusive containers.
每个类(其实例要在容器内使用)必须至少实现拷贝构造函数(实现赋值运算符,也是好习惯)。
Each class whose instance will go into the container must implement at least the copy constructor it is good to implement also the assignment operator.
上下文是简单的变量和表达式所需的函数,将返回一个值,并且赋值给标识,包括在符号表中的。
A context is simply the variables and functions that are needed by the expression to return a value, and are assigned to the identified included inside the Symbol Table.
避免在条件中直接调用返回布尔值的函数。把返回值赋值给一个局部变量来使用。
Avoid function calls in Boolean conditional statements. Assign into local variables and check on them.
使用:给对象或者类的原型赋值上你的新函数。
Use: : to assign your new function to the prototype of the object or class.
使用:给对象或者类的原型赋值上你的新函数。
Use: : to assign your new function to the prototype of the object or class.
应用推荐