How a member function changes the object?
成员函数如何更改对象?
What and why the member function does what it does
成员函数所做的事情以及这样做的理由
For a class member function, it starts from __arg2.
对于类成员函数,从__arg2开始。
First, it is a global function, not a member function.
第一,这是一个全局函数而不是成员函数。
Examples of how to invoke the member function when appropriate.
如何在适当时调用成员函数的示例?
Any exceptions that a member function brings to your attention.
成员函数带来的任何异常。
Usually there's no need to override the GetSite member function.
一般情况下,没有必要重载成员函数GetSite 。
This member function ensures that every message is processed.
这个成员函数确保每个消息都被处理。
Synthesizes a member function pointer type from given properties.
根据给定的属性合成一个成员函数指针。
If a member function changes an object, then this needs to be indicated.
如果成员函数更改对象,则这需要指出。
This information lets other programmers know what to pass to a member function.
该信息能让其它程序员知道传给成员函数的是什么。
You also need to indicate how any parameters to a member function will be used.
您还需要表示将如何使用成员函数的任何参数。
Blitz's Uniform class provides a member function that returns a double in 0, 1.
Blitz的Unifor m类提供返回在0,1间的双精度数的成员函数。
For example, the withdraw member function of a bank account modifies the account balance.
例如,银行帐户的withdraw成员函数修改帐户余额。
Casting from member function pointer to another type and back, strict-aliasing issue?
铸造成员函数指针到另一个类型和背部,严格的混叠问题?
path operator / (char* lhs, const path& rhs): This routine is a non-member function of path.
pathoperator / (char*lhs,const path&rhs):此例程是 path 的非成员函数。
If the previous function was a class member function, then you would have used an __arg2 variable.
如果前面的函数是类成员函数,那么应该使用__arg2变量。
If neither of the two is defined, the compiler provides an implicit version that is a public member function.
如果二者都未定义,那么编译器会提供一种作为公共成员函数的隐式版本。
A member function with public visibility can be invoked by any other member function in any other object or class.
在任何其它对象或类中的任何其它成员函数都可以调用具有公有可视性的成员函数。
By documenting what a member function does, you make it easier for others to determine if they can reuse your code.
通过对成员函数所做的事情编制文档,其他人就可以更容易地确定他们是否可以重用您的代码。
Finally, if you override or overload a member function and change its synchronization, you should also document why.
最后,如果覆盖或过载成员函数并更改其同步,则也应该写明原因。
There's a virtual table for each class, which contains a list of Pointers to the implementation of each member function.
有一个为每个类的虚表,其中包含每个成员的功能的实现的指针列表。
Note that when you try to access an argument of a class member function the actual argument count starts from 2 instead of 1.
注意,在访问类成员函数的参数时,实际的参数编号从2而不是从1 开始。
Like any other member function, a constructor is declared inside the class and may be defined there or outside the class.
和其他成员函数一样,构造函数也必须在类中声明,但是可以在类中或类外定义。
Determines whether a given type is a member function pointer, possibly with additional properties as specified by a property tag.
判定一个给定的类型是否为成员函数指针,可以通过属性标签额外指定属性。
We define member functions similarly to how we define ordinary functions. As with any function, a member function consists of four parts.
成员函数的定义与普通函数的定义类似。和任何函数一样,成员函数也包含下面四个部分。
As you can see, the rules and notations for field visibility are consistent with those for member function visibility, as discussed last week.
您可以看到,字段可见性的规则和标记都与成员函数可见性的规则和标记一致。后者在上周讨论过。
As you can see, the rules and notations for field visibility are consistent with those for member function visibility, as discussed last week.
您可以看到,字段可见性的规则和标记都与成员函数可见性的规则和标记一致。后者在上周讨论过。
应用推荐