VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
vrfObjectPredicate.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2001 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 #pragma once
6 
7 
8 
10 
11 
12 #include <vlutil/vlMachineTypes.h>
13 
14 class DtVrfObject;
15 
21 {
22 public:
23 
25  DtVrfObjectPredicate(bool negate = false);
26 
28  virtual ~DtVrfObjectPredicate();
29 
32 
34  DtVrfObjectPredicate& operator=(const DtVrfObjectPredicate& orig);
35 
37  virtual DtVrfObjectPredicate* clone() const = 0;
38 
42  bool operator==(const DtVrfObjectPredicate& orig) const;
43  bool operator!=(const DtVrfObjectPredicate& orig) const;
44 
45  virtual bool negated() const;
46  virtual void setNegate(bool negate);
47 
50  bool isTrue(const DtVrfObject* vrfObject);
51 
52 public:
53 
55  static const DtVrfObjectPredicate& nullPredicate();
56 
57 protected:
58 
61  virtual bool eval(const DtVrfObject* vrfObject) = 0;
62 
72  virtual bool predicateEqual(const DtVrfObjectPredicate& orig) const;
73 
74 protected:
75 
76  bool myNegated;
77 };

Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)