C++ mpi module for stochmagnet_main Package
EXPR_ChildNode.h
1 #ifndef EXPR_ChildNode_H
2 #define EXPR_ChildNode_H
3 
4 #include "EXPR_Node.h"
5 
12 class EXPR_ChildNode : public virtual EXPR_Node {
13 
14 private:
15  //attributes
16 
17 
18 private:
19  //associations
20 protected:
21  //builders
22 
26  }
27 
28  //deleters
31  virtual ~EXPR_ChildNode() {
32  }
33 
34 
35 
36  //MEMORY
37  //======
38 public:
46  virtual tMemSize getMemorySize() const override {
47  return sizeof(*this)+getContentsMemorySize();
48  }
49 
58  virtual tMemSize getContentsMemorySize() const override {
59  tMemSize mem=EXPR_Node::getContentsMemorySize();
60  return mem;
61  }
62 
63 
64 
65 };
66 
67 
68 
69 
70 #endif
71 
72 
This class describes a child node of the tree.
Definition: EXPR_ChildNode.h:12
virtual tMemSize getContentsMemorySize() const override
return nthe memory size of the included associations
Definition: EXPR_ChildNode.h:58
virtual ~EXPR_ChildNode()
delete the class
Definition: EXPR_ChildNode.h:31
EXPR_ChildNode()
create the class
Definition: EXPR_ChildNode.h:25
virtual tMemSize getMemorySize() const override
return the memory size of the class
Definition: EXPR_ChildNode.h:46
This class is a base class of the binary tree.
Definition: EXPR_Node.h:16
virtual tMemSize getContentsMemorySize() const override
return nthe memory size of the included associations
Definition: EXPR_Node.h:79