106 m_queue =
new std::queue<BinaryTreeIntNode*>;
107 for(
MInt i = 0; i < num_procs; i++) {
108 auto* ins_int =
new MInt();
166 m_log <<
"L " << level <<
":" << *(node->
getObject()) << std::endl;
178 if(
m_queue->front()->getLeftChild() !=
nullptr &&
m_queue->front()->getRightChild() !=
nullptr) {
186 if(
m_queue->front()->getLeftChild() ==
nullptr) {
187 m_queue->front()->setLeftChild(node);
189 m_queue->front()->setRightChild(node);
BinaryTreeNode< MInt > BinaryTreeIntNode
std::queue< BinaryTreeIntNode * > * m_queue
void insertBalancedNode(BinaryTreeIntNode *node)
static void printTreeRoot(BinaryTreeIntNode *node, MInt level)
BinaryTreeIntNode * getMyMPILocation()
BinaryPropertyMPITree(MInt num_procs)
BinaryTreeIntNode * m_myMPILocation
BinaryTreeIntNode * getMyMPIReceiver()
BinaryTreeIntNode * getMyLeftMPISender()
BinaryTreeIntNode * getMyRightMPISender()
MInt getNodeDepth(BinaryTreeNode< T > *node)
BinaryTreeNode< T > * getRoot()
BinaryTreeNode< T > * m_root
BinaryTreeNode< T > * m_leftChild
BinaryTreeNode< T > * m_father
BinaryTreeNode< T > * getRightChild()
BinaryTreeNode< T > * getLeftChild()
BinaryTreeNode< T > * getFather()
void setLeftChild(BinaryTreeNode< T > *node)
void setRightChild(BinaryTreeNode< T > *node)
BinaryTreeNode< T > * m_rightChild
void setFather(BinaryTreeNode< T > *node)
MInt globalDomainId()
Return global domain id.