H5Cpublic.h 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  2. * Copyright by The HDF Group. *
  3. * Copyright by the Board of Trustees of the University of Illinois. *
  4. * All rights reserved. *
  5. * *
  6. * This file is part of HDF5. The full HDF5 copyright notice, including *
  7. * terms governing use, modification, and redistribution, is contained in *
  8. * the COPYING file, which can be found at the root of the source code *
  9. * distribution tree, or in https://www.hdfgroup.org/licenses. *
  10. * If you do not have access to either file, you may request a copy from *
  11. * help@hdfgroup.org. *
  12. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
  13. /*-------------------------------------------------------------------------
  14. *
  15. * Created: H5Cpublic.h
  16. * June 4, 2005
  17. * John Mainzer
  18. *
  19. * Purpose: Public include file for cache functions.
  20. *
  21. *-------------------------------------------------------------------------
  22. */
  23. #ifndef H5Cpublic_H
  24. #define H5Cpublic_H
  25. /* Public headers needed by this file */
  26. #include "H5public.h"
  27. #ifdef __cplusplus
  28. extern "C" {
  29. #endif
  30. enum H5C_cache_incr_mode {
  31. H5C_incr__off,
  32. /**<Automatic cache size increase is disabled, and the remaining increment fields are ignored.*/
  33. H5C_incr__threshold
  34. /**<Automatic cache size increase is enabled using the hit rate threshold algorithm.*/
  35. };
  36. enum H5C_cache_flash_incr_mode {
  37. H5C_flash_incr__off,
  38. /**<Flash cache size increase is disabled.*/
  39. H5C_flash_incr__add_space
  40. /**<Flash cache size increase is enabled using the add space algorithm.*/
  41. };
  42. enum H5C_cache_decr_mode {
  43. H5C_decr__off,
  44. /**<Automatic cache size decrease is disabled.*/
  45. H5C_decr__threshold,
  46. /**<Automatic cache size decrease is enabled using the hit rate threshold algorithm.*/
  47. H5C_decr__age_out,
  48. /**<Automatic cache size decrease is enabled using the ageout algorithm. */
  49. H5C_decr__age_out_with_threshold
  50. /**<Automatic cache size decrease is enabled using the ageout with hit rate threshold algorithm.*/
  51. };
  52. #ifdef __cplusplus
  53. }
  54. #endif
  55. #endif