Leaked source code of windows server 2003
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.4 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1991 - 1992.
  5. //
  6. // File: UNIONCUR.HXX
  7. //
  8. // Contents: Merge Cursor
  9. //
  10. // Classes: CUnionCursor
  11. //
  12. // History: 26-Sep-91 BartoszM Created.
  13. //
  14. //----------------------------------------------------------------------------
  15. #pragma once
  16. #ifdef DISPLAY_INCLUDES
  17. #pragma message( "#include <" __FILE__ ">..." )
  18. #endif
  19. #include <wcurheap.hxx>
  20. #include <curstk.hxx>
  21. //+---------------------------------------------------------------------------
  22. //
  23. // Class: CUnionCursor
  24. //
  25. // Purpose: Merge cursor, merges several cursors into one ordered cursor
  26. //
  27. // History: 26-Sep-91 BartoszM Created.
  28. //
  29. //----------------------------------------------------------------------------
  30. class CUnionCursor: public CCursor
  31. {
  32. public:
  33. CUnionCursor( int cCursor, CCurStack& curStack );
  34. ~CUnionCursor() {} // heaps are deleted
  35. WORKID WorkId();
  36. WORKID NextWorkId();
  37. ULONG WorkIdCount();
  38. ULONG HitCount();
  39. LONG Rank();
  40. ULONG GetRankVector( LONG * plVector, ULONG cElements );
  41. void RatioFinished ( ULONG& denom, ULONG& num );
  42. private:
  43. CWidHeap _widHeap;
  44. };