#include <binarytree.h>
Definition at line 102 of file binarytree.h.
◆ BinaryPropertyMPITree()
BinaryPropertyMPITree::BinaryPropertyMPITree |
( |
MInt |
num_procs | ) |
|
|
inlineexplicit |
Definition at line 104 of file binarytree.h.
106 m_queue =
new std::queue<BinaryTreeIntNode*>;
107 for(
MInt i = 0; i < num_procs; i++) {
108 auto* ins_int =
new MInt();
109 *ins_int = i;
111 if(i == 0) {
114 } else {
116 }
117
118 if(i == rank) {
120 }
121 }
122 }
BinaryTreeNode< MInt > BinaryTreeIntNode
std::queue< BinaryTreeIntNode * > * m_queue
void insertBalancedNode(BinaryTreeIntNode *node)
BinaryTreeIntNode * m_myMPILocation
BinaryTreeNode< T > * m_root
MInt globalDomainId()
Return global domain id.
◆ ~BinaryPropertyMPITree()
BinaryPropertyMPITree::~BinaryPropertyMPITree |
( |
| ) |
|
|
inline |
◆ getMyLeftMPISender()
Definition at line 148 of file binarytree.h.
148 {
151 }
152 return nullptr;
153 }
BinaryTreeNode< T > * getLeftChild()
◆ getMyMPILocation()
Definition at line 134 of file binarytree.h.
134 {
136 return nullptr;
137 }
139 }
◆ getMyMPIReceiver()
Definition at line 141 of file binarytree.h.
141 {
144 }
145 return nullptr;
146 }
BinaryTreeNode< T > * getFather()
◆ getMyRightMPISender()
Definition at line 154 of file binarytree.h.
154 {
157 }
158 return nullptr;
159 }
BinaryTreeNode< T > * getRightChild()
◆ insertBalancedNode()
Definition at line 175 of file binarytree.h.
175 {
177
178 if(
m_queue->front()->getLeftChild() !=
nullptr &&
m_queue->front()->getRightChild() !=
nullptr) {
182 }
183
184 else {
186 if(
m_queue->front()->getLeftChild() ==
nullptr) {
187 m_queue->front()->setLeftChild(node);
188 } else {
189 m_queue->front()->setRightChild(node);
190 }
191
192 break;
193 }
194 }
195 }
void setFather(BinaryTreeNode< T > *node)
◆ printTree()
void BinaryPropertyMPITree::printTree |
( |
| ) |
|
|
inline |
Definition at line 132 of file binarytree.h.
static void printTreeRoot(BinaryTreeIntNode *node, MInt level)
◆ printTreeRoot()
◆ m_myMPILocation
◆ m_queue
The documentation for this class was generated from the following file:
- /home/gitlab-runner/scratch/builds/oxpnswJ6/1/aia/m-AIA/m-AIA/src/UTIL/binarytree.h