C++ mpi module for stochmagnet_main Package
EXPR_IntersectionOperator.h
1 #ifndef EXPR_IntersectionOperator_H
2 #define EXPR_IntersectionOperator_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
37  }
38 
39 public:
40  //methods
41 
45  virtual CORE_SharedPointer<EXPR_OperatorNode> newInstance() const {
46  CORE_SharedPointer<EXPR_IntersectionOperator> p(new EXPR_IntersectionOperator(),
48  return p;
49  }
50 
54  static inline CORE_UniquePointer<EXPR_IntersectionOperator> New() {
55  CORE_UniquePointer<EXPR_IntersectionOperator> p(new EXPR_IntersectionOperator(),
57  return p;
58  }
59 
60  //MEMORY
61 public:
69  virtual tMemSize getMemorySize() const override {
70  return sizeof(*this)+getContentsMemorySize();
71  }
72 
81  virtual tMemSize getContentsMemorySize() const override {
83  return mem;
84  }
85 
86 
91  virtual tBoolean isInside(std::array<tReal,3> p) const override ;
92 
97  virtual void computeBoundingBox(std::map<tString,tBoolean>& alreadyComputed) override;
98 
99 public:
103  virtual tString toString() const override;
104 
105 };
106 
107 
108 
109 
110 #endif
111 
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:113
This class is the union operator.
Definition: EXPR_IntersectionOperator.h:15
virtual void computeBoundingBox(std::map< tString, tBoolean > &alreadyComputed) override
compute the bounding box of the node
Definition: EXPR_IntersectionOperator.cpp:26
virtual CORE_SharedPointer< EXPR_OperatorNode > newInstance() const
creat a new instance of the operator
Definition: EXPR_IntersectionOperator.h:45
EXPR_IntersectionOperator()
create the class
Definition: EXPR_IntersectionOperator.h:29
virtual ~EXPR_IntersectionOperator()
delete the class
Definition: EXPR_IntersectionOperator.h:36
virtual tBoolean isInside(std::array< tReal, 3 > p) const override
return true if the point is in the node
Definition: EXPR_IntersectionOperator.cpp:5
virtual tMemSize getContentsMemorySize() const override
return nthe memory size of the included associations
Definition: EXPR_IntersectionOperator.h:81
virtual tString toString() const override
return the string representation of this
Definition: EXPR_IntersectionOperator.cpp:114
static CORE_UniquePointer< EXPR_IntersectionOperator > New()
crete the new instance of this
Definition: EXPR_IntersectionOperator.h:54
virtual tMemSize getMemorySize() const override
return the memory size of the class
Definition: EXPR_IntersectionOperator.h:69
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