Complete the SHAMap rewrite.

This commit is contained in:
JoelKatz
2012-02-06 15:39:06 -08:00
parent 04cc08748e
commit 01983330d8
4 changed files with 78 additions and 117 deletions

View File

@@ -282,6 +282,11 @@ bool SHAMapTreeNode::setItem(SHAMapItem::pointer& i, TNType type)
return getNodeHash()==hash;
}
SHAMapItem::pointer SHAMapTreeNode::getItem() const
{
return boost::make_shared<SHAMapItem>(*mItem);
}
int SHAMapTreeNode::getBranchCount() const
{
int ret=0;