mirror of https://github.com/tongzx/nt5src
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.1 KiB
67 lines
1.1 KiB
//+-------------------------------------------------------------------------
|
|
//
|
|
// Microsoft Windows
|
|
// Copyright (C) Microsoft Corporation, 1992 - 2000.
|
|
//
|
|
// File: NotXpr.hxx
|
|
//
|
|
// Contents: Negation expression
|
|
//
|
|
// Classes: CNotXpr
|
|
//
|
|
// History: 27-Nov-93 KyleP Created
|
|
//
|
|
//--------------------------------------------------------------------------
|
|
|
|
#pragma once
|
|
|
|
#include <xpr.hxx>
|
|
|
|
//+-------------------------------------------------------------------------
|
|
//
|
|
// Class: CNotXpr
|
|
//
|
|
// Purpose: Negation expression
|
|
//
|
|
// History: 27-Nov-93 KyleP Created
|
|
//
|
|
//--------------------------------------------------------------------------
|
|
|
|
class CNotXpr : public CXpr
|
|
{
|
|
public:
|
|
|
|
//
|
|
// Construction-related methods
|
|
//
|
|
|
|
inline CNotXpr( CXpr * );
|
|
|
|
virtual ~CNotXpr();
|
|
|
|
virtual CXpr * Clone();
|
|
|
|
//
|
|
// Index-related methods
|
|
//
|
|
|
|
virtual BOOL IsMatch( CRetriever & obj );
|
|
|
|
//
|
|
// Node-related methods
|
|
//
|
|
|
|
virtual BOOL IsLeaf() const;
|
|
|
|
private:
|
|
|
|
CXpr * _pxpr;
|
|
};
|
|
|
|
CNotXpr::CNotXpr( CXpr * pxpr )
|
|
: CXpr( CXpr::NTNot ),
|
|
_pxpr( pxpr )
|
|
{
|
|
}
|
|
|
|
|