다음을 통해 공유


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  
);

매개 변수

  • 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.

설명

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

기본적으로 구현해도 수행되는 작업은 없습니다. 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.

요구 사항

Header: afxtempl.h

참고 항목

참조

CDumpContext::SetDepth

CObject::Dump

CArray 클래스

CList 클래스

CMap 클래스

개념

MFC 매크로 및 전역