public final class FromChildToParentIterator extends Object
Entering elements. Traverse from out.| Constructor and Description |
|---|
FromChildToParentIterator(Tensor tensor) |
FromChildToParentIterator(Tensor tensor,
TraverseGuide guide) |
| Modifier and Type | Method and Description |
|---|---|
int |
depth()
Returns the current depth in the tree.
|
Tensor |
next()
Returns the next tensor in tree or null if iteration is finished
|
Tensor |
result()
Returns the result after iteration finished (or stopped).
|
void |
set(Tensor tensor)
Set current tensor in tree.
|
public FromChildToParentIterator(Tensor tensor, TraverseGuide guide)
public FromChildToParentIterator(Tensor tensor)
public int depth()
TreeIteratordepth in interface TreeIteratorpublic Tensor next()
TreeIteratornext in interface TreeIteratorpublic Tensor result()
TreeIteratorresult in interface TreeIteratorpublic void set(Tensor tensor)
TreeIteratorset in interface TreeIteratortensor - tensorCopyright © 2014. All Rights Reserved.