class CComDynamicUnkArray
CComDynamicUnkArray holds a dynamically allocated array of IUnknown pointers, each an interface on a connection point. CComDynamicUnkArray can be used as a parameter to the IConnectionPointImpl template class.
The CComDynamicUnkArray method begin and end can be used to loop through all connection points (for example, when an event is fired).
See the article The Proxy Generator for details on automating the creation of connection point proxies.
#include <atlcom.h>
See Also CComUnkArray
Methods | |
begin | Returns a pointer to the first IUnknown pointer in the collection. |
CComDynamicUnkArray | Constructor. Initializes the collection values to NULL and the collection size to zero. |
end | Returns a pointer to one past the last IUnknown pointer in the collection. |
IUnknown** begin( );
Return Value
A pointer to an IUnknown interface pointer.
Remarks
Returns a pointer to the beginning of the collection of IUnknown interface pointers.
The collection contains pointers to interfaces stored locally as IUnknown. You cast each IUnknown interface to the real interface type and then call through it. You do not need to query for the interface first.
Before using the IUnknown interface you should check that it is not NULL.
CComDynamicUnkArray Overview | Class Members
See Also CComDynamicUnkArray::end, CComUnkArray::begin
CComDynamicUnkArray( );
Remarks
The constructor. Sets the collection size to zero and initializes the values to NULL. The destructor frees collection, if necessary.
CComDynamicUnkArray Overview | Class Members
IUnknown** end( );
Return Value
A pointer to an IUnknown interface pointer.
Remarks
Returns a pointer to one past the last IUnknown pointer in the collection.
CComDynamicUnkArray Overview | Class Members
See Also CComDynamicUnkArray::begin, CComUnkArray::end