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.
 
 
 
 
 
 

65 lines
1.4 KiB

//+---------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1991 - 1992.
//
// File: ORCURSOR.HXX
//
// Contents: Merge Cursor
//
// Classes: COrCursor
//
// History: 26-Sep-91 BartoszM Created.
//
//----------------------------------------------------------------------------
#pragma once
#include <curstk.hxx>
#include <heap.hxx>
#include <curheap.hxx>
//+---------------------------------------------------------------------------
//
// Class: COrCursor
//
// Purpose: Boolean OR cursor, OR's cursors from the same index
//
// History: 26-Sep-91 BartoszM Created.
// 28-Feb-92 AmyA Added HitCount()
// 13-Apr-92 AmyA Added Rank()
//
//----------------------------------------------------------------------------
class COrCursor: public CCursor
{
public:
COrCursor( int cCursor, CCurStack& curStack );
~COrCursor() {} // heaps are deleted
WORKID WorkId();
WORKID NextWorkId();
ULONG WorkIdCount();
ULONG HitCount();
LONG Rank();
LONG Hit();
LONG NextHit();
void RatioFinished ( ULONG& denom, ULONG& num );
protected:
CWidHeap _widHeap;
LONG _lMaxWeight; // Max Weight of any child
WORKID _wid;
int _iCur;
};