Commit 7d1520f5 authored by berenger-bramas's avatar berenger-bramas
Browse files

Add a getLeaf method for the octree iterator.

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/scalfmm/scalfmm/trunk@228 2616d619-271b-44dc-8df4-d4a8f33a7222
parent 79ecab01
...@@ -513,6 +513,13 @@ public: ...@@ -513,6 +513,13 @@ public:
return this->currentLocalLevel + this->current.tree->getSubOctreePosition(); return this->currentLocalLevel + this->current.tree->getSubOctreePosition();
} }
/** Get the current pointed leaf
* @return current leaf element
*/
LeafClass* getCurrentLeaf() {
return this->current.leafTree->getLeaf(this->currentLocalIndex);
}
/** To access the current particles list /** To access the current particles list
* You have to be at the leaf level to call this function! * You have to be at the leaf level to call this function!
* @return current element list * @return current element list
......
...@@ -362,6 +362,9 @@ public: ...@@ -362,6 +362,9 @@ public:
return (leaf ? leaf->getTargets() : 0); return (leaf ? leaf->getTargets() : 0);
} }
LeafClass* getLeaf(const int index){
return this->leafs[index];
}
}; };
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment