Source code of Windows XP (NT5)
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.

40 lines
693 B

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 2000.
  5. //
  6. // File: NotXpr.cxx
  7. //
  8. // Contents: Negation expression
  9. //
  10. // Classes: CNotXpr
  11. //
  12. // History: 27-Nov-93 KyleP Created
  13. //
  14. //--------------------------------------------------------------------------
  15. #include <pch.cxx>
  16. #pragma hdrstop
  17. #include "notxpr.hxx"
  18. CNotXpr::~CNotXpr()
  19. {
  20. delete _pxpr;
  21. }
  22. CXpr * CNotXpr::Clone()
  23. {
  24. return( new CNotXpr( _pxpr->Clone() ) );
  25. }
  26. BOOL CNotXpr::IsMatch( CRetriever & obj )
  27. {
  28. return( !_pxpr->IsMatch( obj ) );
  29. }
  30. BOOL CNotXpr::IsLeaf() const
  31. {
  32. return FALSE;
  33. }