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.

41 lines
1.0 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Copyright (C) Microsoft Corporation, 1992 - 1997
  4. //
  5. // File: occtable.hxx
  6. //
  7. // Contents: Occurrence table for wids
  8. //
  9. // History: 20-June-96 SitaramR Created
  10. //
  11. //--------------------------------------------------------------------------
  12. #pragma once
  13. #include <occarray.hxx>
  14. const OCCURRENCE_DIVISOR = 512; // Max occurrence is divided by this
  15. //+---------------------------------------------------------------------------
  16. //
  17. // Class: CMaxOccTable
  18. //
  19. // Purpose: Keep max occurrence count for (wid,pid)
  20. //
  21. // History: 20-June-96 SitaramR Created
  22. //
  23. //----------------------------------------------------------------------------
  24. class CMaxOccTable
  25. {
  26. public:
  27. CMaxOccTable() {}
  28. void PutOcc( WORKID wid, PROPID pid, OCCURRENCE occ );
  29. OCCURRENCE GetMaxOcc( WORKID wid, PROPID pid );
  30. private:
  31. CSparseOccArray _aOccArray[CI_MAX_DOCS_IN_WORDLIST];
  32. };