#include "NTreeHelper.h"
Go to the source code of this file.
Function Documentation
std::ostream& operator<< |
( |
std::ostream & |
Stream, |
|
|
const NTreeNode & |
node | |
|
) |
| | |
Definition at line 146 of file NTreeHelper.cc.
{
Stream << node.scope << "\nParent: " << node.parent.getIp();
if( node.group ) {
Stream << "\nNode is leaf";
} else {
for( unsigned int i = 0; i < 4; ++i ){
Stream << "\nChild " << i << ": " << node.children[i];
}
}
return Stream;
}
std::ostream& operator<< |
( |
std::ostream & |
Stream, |
|
|
const NTreeGroup & |
group | |
|
) |
| | |
Definition at line 94 of file NTreeHelper.cc.
{
Stream << group.scope << " Leader: " << group.leader;
for( std::set<NodeHandle>::iterator it = group.members.begin(); it != group.members.end(); ++it ){
Stream << "\n" << it->getIp();
}
return Stream;
}
std::ostream& operator<< |
( |
std::ostream & |
Stream, |
|
|
const NTreeScope & |
scope | |
|
) |
| | |