C++ mpi module for stochmagnet_main Package
EXPR_LeafNode.h
1 #ifndef EXPR_LeafNode_H
2 #define EXPR_LeafNode_H
3 
4 #include "EXPR_ChildNode.h"
5 
6 
7 
15 class EXPR_LeafNode : public EXPR_ChildNode {
16 
17 private:
18  //attributes
19 
20 
21 private:
22  //associations
23 protected:
24  //builders
25 
29  }
30  //deleters
33  virtual ~EXPR_LeafNode() {
34  }
35 public:
36  //methods
37 
38 public:
39 
40 
41  //MEMORY
42  //======
50  virtual tMemSize getMemorySize() const override {
51  return sizeof(*this)+getContentsMemorySize();
52  }
53 
62  virtual tMemSize getContentsMemorySize() const override {
64  return mem;
65  }
66 
67 protected:
68 
69 
70 
71 
72 };
73 
74 
75 
76 
77 #endif
78 
79 
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
This class describes a leaf node of the tree without children.
Definition: EXPR_LeafNode.h:15
EXPR_LeafNode()
create the class
Definition: EXPR_LeafNode.h:28
virtual tMemSize getContentsMemorySize() const override
return nthe memory size of the included associations
Definition: EXPR_LeafNode.h:62
virtual ~EXPR_LeafNode()
delete the class
Definition: EXPR_LeafNode.h:33
virtual tMemSize getMemorySize() const override
return the memory size of the class
Definition: EXPR_LeafNode.h:50