Which member functions must be passed as parameters?
哪些成员函数必须作为参数传递。
All member functions are now cleanly accessed through vtables.
所有成员函数通过vtables清晰地访问了。
Member and nonmember functions with the same name do not overload one another.
具有同一名字的成员函数和非成员函数不会相互重载。
Finally, let's see how the use of non-member functions affects object coupling.
最后,让我们来看看如何使用非成员函数的影响对象耦合。
Protected and private members may be accessed only from other member functions.
仅可从其他成员函数访问受保护的和私有的成员。
The member functions that define how initialization works are known as constructors .
定义如何进行初始化的成员函数称为构造函数。
As we see in Listing 1, the member functions of the Example object are defined as closures.
如清单1中所示,Example对象的成员函数被定义为闭包。
These unions may not have member functions and may not have private or protected members.
这些联合不能具有成员函数,也不能具有私有或受保护成员。
This header file should ideally contain all the class definitions, member functions, and variables.
在理想情况下,头文件应该包含所有类定义、成员函数和变量。
Grasp the definition of class member functions methods, preservation methods, and call methods.
掌握类的成员函数的定义方法、保存方法及调用方法。
The function of using VC6 Debug trace constructor, destructor and member functions are executed.
用VC6的Debug的功能跟踪构造函数、析构函数和成员函数的执行顺序。
Therefore, we could set up a table of Pointers to all the (exported) member functions of the object.
这样,我们能设置一个指针表指向所有(导出)成员函数。
We refer to these operations as member functions because they (usually) operate on a specific object.
我们将这些操作称为成员函数,是因为它们(通常)在特定对象上操作。
Standard algorithms and all member functions that work with a range of iterators use this convention.
使用迭代器的标准算法和成员函数都遵守这个约定。
Most overloaded operators may be defined as ordinary nonmember functions or as class member functions.
大多数重载操作符可以定义为普通非成员函数或类的成员函数。
If those other constructors access any members or call member functions on this, the result will be undefined.
如果其他建构函式在此存取任何成员或呼叫成员函式,结果会是未定义的。
The fact that member and nonmember functions are possible changes how the set of candidate functions is selected.
成员函数和非成员函数都是可能的,这一事实改变了选择候选函数集的方式。
And it's especially ugly if you want to use member functions as the event handlers, as opposed to static extern functions.
相对于静态外部函数来说,用成员函数作为事件处理器是最丑陋的做法。
The actual "work" performed in the member functions takes orders of magnitude longer than these two additional memory accesses.
在成员函数里执行的实际“工作”和2个步骤的额外内在存取工作,效率不在一个数量级上。
Such tasks include creating new classes, adding new member functions and variables, and adding Automation methods and properties.
这类任务包括创建新类,添加新成员函数和变量,以及添加自动化方法和属性。
A constructor is a special member function that is distinguished from other member functions by having the same name as its class.
构造函数是特殊的成员函数,与其他成员函数不同,构造函数和类同名,而且没有返回类型。
We define member functions similarly to how we define ordinary functions. As with any function, a member function consists of four parts.
成员函数的定义与普通函数的定义类似。和任何函数一样,成员函数也包含下面四个部分。
If I have a pointer to an object cast to one of its base classes, I can call the correct member functions through the abstract base class.
如果我有一个对象的指针,转换到它的基类指针对象上,我能通过基类指针调用合适的成员函数。
Each class may define one or more special member functions (Section 1.5.2, p. 24) that say how we can initialize variables of the class type.
每个类都可能会定义一个或几个特殊的成员函数(第1.5.2节)来告诉我们如何初始化类类型的变量。
A member function with private visibility can only be invoked by other member functions in the class in which it is defined, but not in the subclasses.
具有私有可视性的成员函数只能由与该成员函数在同一个类中定义的其它成员函数调用,而在子类中的成员函数不能调用该成员函数。
The Properties window enables you to bind message handlers (member functions of MFC user-interface classes) to the messages generated by your application's resources.
视窗让您能够将讯息处理常式 (MFC 使用者介面类别的成员函式)系结到应用程式资源所产生的讯息。
Moreover, it can optimize the whole design program by making use of inheritance relations of data members and member functions between the basic class and its derived class.
同时利用父类与子类间数据成员、成员函数的继承关系,可以优化曲线测设程序的整体设计。
Moreover, it can optimize the whole design program by making use of inheritance relations of data members and member functions between the basic class and its derived class.
同时利用父类与子类间数据成员、成员函数的继承关系,可以优化曲线测设程序的整体设计。
应用推荐