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.

67 lines
1.2 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 2000.
  5. //
  6. // File: NotXpr.hxx
  7. //
  8. // Contents: Negation expression
  9. //
  10. // Classes: CNotXpr
  11. //
  12. // History: 27-Nov-93 KyleP Created
  13. //
  14. //--------------------------------------------------------------------------
  15. #pragma once
  16. #include <xpr.hxx>
  17. //+-------------------------------------------------------------------------
  18. //
  19. // Class: CNotXpr
  20. //
  21. // Purpose: Negation expression
  22. //
  23. // History: 27-Nov-93 KyleP Created
  24. //
  25. //--------------------------------------------------------------------------
  26. class CNotXpr : public CXpr
  27. {
  28. public:
  29. //
  30. // Construction-related methods
  31. //
  32. inline CNotXpr( CXpr * );
  33. virtual ~CNotXpr();
  34. virtual CXpr * Clone();
  35. //
  36. // Index-related methods
  37. //
  38. virtual BOOL IsMatch( CRetriever & obj );
  39. //
  40. // Node-related methods
  41. //
  42. virtual BOOL IsLeaf() const;
  43. private:
  44. CXpr * _pxpr;
  45. };
  46. CNotXpr::CNotXpr( CXpr * pxpr )
  47. : CXpr( CXpr::NTNot ),
  48. _pxpr( pxpr )
  49. {
  50. }