public final class FromParentToChildIterator extends Object
Leaving elements. Traverse into.| Constructor and Description |
|---|
FromParentToChildIterator(Tensor tensor) |
FromParentToChildIterator(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 FromParentToChildIterator(Tensor tensor, TraverseGuide guide)
public FromParentToChildIterator(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.