C++ mpi module for stochmagnet_main Package
EXPR_UnionOperator.h
1 #ifndef EXPR_UnionOperator_H
2 #define EXPR_UnionOperator_H
3 
4 
5 #include "EXPR_OperatorNode.h"
6 
15 
16 private:
17 
18 
19 
20 private:
21 
22 protected:
23  //builders
24 
28  setName('+');
29  }
30 
31  //deleters
34  virtual ~EXPR_UnionOperator() {
35  }
36 
37 public:
38  //methods
39 
43  virtual CORE_SharedInstance<EXPR_OperatorNode> newInstance() const {
44  CORE_SharedInstance<EXPR_UnionOperator> p(new EXPR_UnionOperator(),
46 
47  return p;
48  }
49 
53  static inline CORE_UniqueInstance<EXPR_UnionOperator> New() {
54  CORE_UniqueInstance<EXPR_UnionOperator> p(new EXPR_UnionOperator(),
56 
57  return p;
58  }
59 
60  //MEMORY
61 public:
62 
70  virtual tMemSize getMemorySize() const override {
71  return sizeof(*this)+getContentsMemorySize();
72  }
73 
82  virtual tMemSize getContentsMemorySize() const override {
84  return mem;
85  }
86 
87 
92  virtual tBoolean isInside(std::array<tReal,3> p) const override ;
93 
97  virtual void computeBoundingBox(std::map<tString,tBoolean>& alreadyComputed) override;
98 
99 public:
100 
104  virtual tString toString() const override;
105 };
106 
107 
108 
109 
110 #endif
111 
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:113
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
This class is the union operator.
Definition: EXPR_UnionOperator.h:14
EXPR_UnionOperator()
create the class
Definition: EXPR_UnionOperator.h:27
virtual tMemSize getMemorySize() const override
return the memory size of the class
Definition: EXPR_UnionOperator.h:70
virtual tString toString() const override
return the string representation of this
Definition: EXPR_UnionOperator.cpp:86
static CORE_UniqueInstance< EXPR_UnionOperator > New()
crete the new instance of this
Definition: EXPR_UnionOperator.h:53
virtual tBoolean isInside(std::array< tReal, 3 > p) const override
return true if the point is in the node
Definition: EXPR_UnionOperator.cpp:6
virtual tMemSize getContentsMemorySize() const override
return nthe memory size of the included associations
Definition: EXPR_UnionOperator.h:82
virtual CORE_SharedInstance< EXPR_OperatorNode > newInstance() const
creat a new instance of the operator
Definition: EXPR_UnionOperator.h:43
virtual ~EXPR_UnionOperator()
delete the class
Definition: EXPR_UnionOperator.h:34
virtual void computeBoundingBox(std::map< tString, tBoolean > &alreadyComputed) override
compute the bounding box of the node
Definition: EXPR_UnionOperator.cpp:26