您可以创建STL容器存储对象或对象的指针。
You can create STL containers that store either objects or pointer to objects.
通常你会通过保存动态生成对象的指针来实现。
Usually, you do this by storing Pointers to dynamically allocated objects.
这些事件标识了更改的类型,并包含指向所更改对象的指针。
These events identify the type of the change and contain a pointer to the object that was changed.
不过,若你是用容器来保存对象的指针,上面的代码需要做如下修改。
However, if you are storing Pointers into the container, then the previous code fragment has to be modified to the following.
在建立连接(无论安全与否)之前,要创建一个指向BIO对象的指针。
Prior to setting up a connection, whether secure or not, a pointer for a BIO object needs to be created.
铸造帮助编译器知道什么样的对象的指针是指向,并生成错误或警告。
The casting helps the compiler to know what kind of object the pointer is pointing to, and generate errors or warnings.
DataObjectPtr实际上是包含指向数据对象的指针的包装类。
A DataObjectPtr is really a wrapper class holding a pointer to the DataObject.
非托管客户端在获取指向对象的指针后,将依赖于该对象来保持其位置不变。
Unmanaged clients, having obtained a pointer to an object, rely on the object to remain at the same location.
数组变量保存指向数组对象的指针,而数组对象保存的是数组元素、秩和长度信息。
An array variable holds a pointer to an array object, which holds the array elements and the rank and length information.
pthread _ mutex_lock接受一个指向互斥对象的指针作为参数以将其锁定。
Pthread_mutex_lock accepts a single pointer to a mutex to lock.
如果我有一个对象的指针,转换到它的基类指针对象上,我能通过基类指针调用合适的成员函数。
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.
这是一项昂贵的操作,因为可能会移动每个活动对象,每个经过移动的对象的指针都必须更新为新位置。
This is an expensive operation because every live object might be moved, and every pointer to a moved object must be updated to the new location.
对于为W3C和Microsoft事件模型定义的匿名函数,都可以将FadingTooltip对象的指针封闭在其中。
You could have enclosed a pointer to your FadingTooltip object in the anonymous functions you defined for the W3C and Microsoft event models as well.
这样就不必将对象的指针保存在HTML元素中,并可以在所有事件模型中应用同样的 HTML元素定位技术。
This would eliminate the need to save pointers to your objects in the HTML elements, and employ the same technique for locating the HTML element in all event models.
DLL检查请求类的数字,如果能够提供出来类,它返回出来一个对象的指针,这个对象实现了某些实际对象创建上的方法。
The DLL checks the number of the class that is requested, and if it provides that class, it returns a pointer to an object that implements the creation method for the actual object.
但是,如果对象是使用一台机器的资源(处理文件,命名管道,SOCKET或类似),然后这是比较适合让列表存储对象的指针。
However, if the object is using a machine resource (handle to file, named pipe, socket or similar), then it is more appropriate to use lists that stores Pointers to objects.
你可以简单地返回一个标准C++对象的指针(如果你不需要访问函数),任何函数查询表的其它类型指针,或你需要的任何类型的指针。
You could simply return a pointer to a standard C++ object (if you don't need to access functions), any other type of function lookup table, or whatever you wanted.
遗憾的是,许多设计者并没有认识到空指针或空对象带来的危害。
Unfortunately, many designers have still not learnt that the special null pointer or null object is an equally bad idea.
一旦恢复,线程将重新读取对象指针并重新获取其先前占用的JVM相关结构。
Upon resumption, threads reread object Pointers and reacquire the JVM-related structures they previously held.
每个在GC堆中分配的对象有一个8字节的头(同步块+方法表指针)。
Each object allocated on the GC heap has an 8-byte overhead (sync block + method table pointer).
可以将方法指针当作调用对象方法的方便机制。
Think of the method pointer as a short-hand convenience mechanism for invoking methods along an object graph.
第一个指针bio是主要的bio对象,它可以从SSL环境中创建。
The first one, bio, is the main bio object that will be created from the SSL context.
对象的间接指针地址部分。
当鼠标指针下的对象是一个表示CMIS知识库,或者CM IS文件夹的节点,它就返回true;否则,就返回false。
It answers true when the object below the mouse pointer is a node representing a CMIS repository or a CMIS folder; otherwise, it answers false.
通过调用 DL_Dxf对象的in函数并将指针传递给一个继承 DL_CreationAdapter抽象类来打开此文件。
You open the file by calling the in function of the DL_Dxf object and passing a pointer to a class that inherits from the DL_CreationAdapter abstract class.
这样做的方法是,Perl对象包含一个只读的整数,此整数与函数newsession()返回的空指针相对应。
The way this is set up, the Perl object contains a read-only integer that corresponds to the void pointer returned by newsession().
SunJDK使用一种称为卡片标记(card marking)算法的改进算法以标识对老一代对象的字段中包含的指针的修改。
The Sun JDKs use an optimized variant of an algorithm called card marking to identify modifications to pointers held in fields of old-generation objects.
除此之外,我们还给出了一个简单的结构定义:里面有两个指针,以及要拷贝的很多对象。
Apart from that, we have a pretty straightforward structure definition: two Pointers and a number of objects to copy.
除此之外,我们还给出了一个简单的结构定义:里面有两个指针,以及要拷贝的很多对象。
Apart from that, we have a pretty straightforward structure definition: two Pointers and a number of objects to copy.
应用推荐