Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
DumpElements
TRY
Collapse the table of content
Expand the table of content

DumpElements

Provides stream-oriented diagnostic output in text form for the elements of your collection when overridden.

template<class TYPE>
void AFXAPI DumpElements(
   CDumpContext& dc,
   const TYPE* pElements,
   INT_PTR nCount 
);

Parameters

dc
Dump context for dumping elements.
TYPE
Template parameter specifying the type of the elements.
pElements
Pointer to the elements to be dumped.
nCount
Number of elements to be dumped.

Remarks

The CArray::Dump, CList::Dump, and CMap::Dump functions call this if the depth of the dump is greater than 0.

The default implementation does nothing. If the elements of your collection are derived from CObject, your override will typically iterate through the collection's elements, calling Dump for each element in turn.

For information on diagnostics and on the Dump function, see Debugging MFC Applications.

See Also

MFC Macros and Globals | CDumpContext::SetDepth | CObject::Dump | CArray | CList | CMap

Show:
© 2015 Microsoft