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.

43 lines
596 B

  1. /*++
  2. Copyright (C) 1996-2000 Microsoft Corporation
  3. Module Name:
  4. DBAVL.CPP
  5. Abstract:
  6. Class CDbAvlTree
  7. --*/
  8. #ifndef _DBAVL_H_
  9. #define _DBAVL_H_
  10. struct AVLNode;
  11. struct AVLNode
  12. {
  13. int nBal;
  14. INT_PTR nKey;
  15. DWORD_PTR poData;
  16. AVLNode *poLeft;
  17. AVLNode *poRight;
  18. AVLNode *poIterLeft;
  19. AVLNode *poIterRight;
  20. };
  21. typedef AVLNode *PAVLNode;
  22. class CDbAvlTree
  23. {
  24. friend class CDbAvlTreeIterator;
  25. AVLNode *m_poRoot;
  26. AVLNode *m_poIterStart;
  27. AVLNode *m_poIterEnd;
  28. int m_nKeyType;
  29. int m_nNodeCount;
  30. };
  31. #endif