44 lines
961 B
C++
44 lines
961 B
C++
#ifndef _OTB_TRISKELE_TREE_BUILDER_TPP
|
|
#define _OTB_TRISKELE_TREE_BUILDER_TPP
|
|
|
|
#include "Tree.hpp"
|
|
#include "triskeleBase.hpp"
|
|
|
|
inline void
|
|
TreeBuilder::buildTree (Tree &tree, TreeBuilder &builder) {
|
|
builder.buildTree (tree);
|
|
}
|
|
|
|
inline void
|
|
TreeBuilder::buildTree (Tree &tree, TreeBuilder &&builder) {
|
|
builder.buildTree (tree);
|
|
}
|
|
|
|
inline void
|
|
TreeBuilder::buildTree (Tree &tree) {
|
|
std::cout << "Test" << std::endl;
|
|
}
|
|
|
|
inline void
|
|
TreeBuilder::updateAttributes (Tree &tree) {
|
|
leafCount = tree.leafCount;
|
|
nodeCount = tree.nodeCount;
|
|
leafParents = tree.leafParents;
|
|
compParents = tree.compParents;
|
|
children = tree.children;
|
|
childCount = tree.childCount;
|
|
}
|
|
|
|
inline DimNodeId
|
|
TreeBuilder::getCompCount () const {
|
|
return nodeCount-leafCount;
|
|
}
|
|
|
|
inline void
|
|
TreeBuilder::setNodeCount (Tree &tree, DimNodeId nodeCount) {
|
|
tree.setNodeCount (nodeCount);
|
|
this->nodeCount = nodeCount;
|
|
}
|
|
|
|
#endif // _OTB_TRISKELE_TREE_BUILDER_TPP
|