Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

61 lines
1.3 KiB

//+---------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1991 - 1992.
//
// File: UNIONCUR.HXX
//
// Contents: Merge Cursor
//
// Classes: CUnionCursor
//
// History: 26-Sep-91 BartoszM Created.
//
//----------------------------------------------------------------------------
#pragma once
#ifdef DISPLAY_INCLUDES
#pragma message( "#include <" __FILE__ ">..." )
#endif
#include <wcurheap.hxx>
#include <curstk.hxx>
//+---------------------------------------------------------------------------
//
// Class: CUnionCursor
//
// Purpose: Merge cursor, merges several cursors into one ordered cursor
//
// History: 26-Sep-91 BartoszM Created.
//
//----------------------------------------------------------------------------
class CUnionCursor: public CCursor
{
public:
CUnionCursor( int cCursor, CCurStack& curStack );
~CUnionCursor() {} // heaps are deleted
WORKID WorkId();
WORKID NextWorkId();
ULONG WorkIdCount();
ULONG HitCount();
LONG Rank();
ULONG GetRankVector( LONG * plVector, ULONG cElements );
void RatioFinished ( ULONG& denom, ULONG& num );
private:
CWidHeap _widHeap;
};