C++ mpi module for stochmagnet_main Package
EXPR_NotOperator.h
1 #ifndef EXPR_NotOperator_H
2 #define EXPR_NotOperator_H
3 
4 
5 #include "EXPR_OperatorNode.h"
6 
7 
16 
17 private:
18 
19 
20 
21 private:
22 
23 
24 protected:
25  //builders
26 
30  setName('!');
31  }
32 
33  //deleters
36  virtual ~EXPR_NotOperator() {
37  }
38 
39 public:
40  //methods
41 
45  virtual CORE_SharedPointer<EXPR_OperatorNode> newInstance() const {
46  CORE_SharedPointer<EXPR_NotOperator> p(new EXPR_NotOperator(),
48  return p;
49  }
50 
54  static inline CORE_UniquePointer<EXPR_NotOperator> New() {
55  CORE_UniquePointer<EXPR_NotOperator> p(new EXPR_NotOperator(),
57  return p;
58  }
59 
60  //MEMORY
61  //======
62 public:
70  virtual tMemSize getMemorySize() const override {
71  return sizeof(*this)+getContentsMemorySize();
72  }
73 
82  virtual tMemSize getContentsMemorySize() const override {
84  return mem;
85  }
90  virtual tBoolean isInside(std::array<tReal,3> p) const override ;
91 
95  virtual void computeBoundingBox(std::map<tString,tBoolean>& alreadyComputed) override;
96 
97 public:
98 
102  virtual tString toString() const override;
103 };
104 
105 
106 
107 
108 #endif
109 
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:113
This class is the notoperator.
Definition: EXPR_NotOperator.h:15
virtual tMemSize getContentsMemorySize() const override
return nthe memory size of the included associations
Definition: EXPR_NotOperator.h:82
virtual void computeBoundingBox(std::map< tString, tBoolean > &alreadyComputed) override
compute the bounding box of the node
Definition: EXPR_NotOperator.cpp:22
virtual tMemSize getMemorySize() const override
return the memory size of the class
Definition: EXPR_NotOperator.h:70
virtual tBoolean isInside(std::array< tReal, 3 > p) const override
return true if the point is in the node
Definition: EXPR_NotOperator.cpp:6
EXPR_NotOperator()
create the class
Definition: EXPR_NotOperator.h:29
virtual tString toString() const override
return the string representation of this
Definition: EXPR_NotOperator.cpp:43
static CORE_UniquePointer< EXPR_NotOperator > New()
crete the new instance of this
Definition: EXPR_NotOperator.h:54
virtual ~EXPR_NotOperator()
delete the class
Definition: EXPR_NotOperator.h:36
virtual CORE_SharedPointer< EXPR_OperatorNode > newInstance() const
creat a new instance of the operator
Definition: EXPR_NotOperator.h:45
This class describes an operator.
Definition: EXPR_OperatorNode.h:14
void setName(const tChar &c)
set the name of the operator
Definition: EXPR_OperatorNode.h:79
virtual tMemSize getContentsMemorySize() const override
return nthe memory size of the included associations
Definition: EXPR_OperatorNode.h:70