cc.redberry.core.tensor.iterator
Interface TreeIterator
-
- All Known Implementing Classes:
- FromChildToParentIterator, FromParentToChildIterator, SubstitutionIterator
public interface TreeIteratorParent interface for tree iterators.- Since:
- 1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description intdepth()Returns the current depth in the tree.Tensornext()Returns the next tensor in tree or null if iteration is finishedTensorresult()Returns the result after iteration finished (or stopped).voidset(Tensor tensor)Set current tensor in tree.
-
-
-
Method Detail
-
next
Tensor next()
Returns the next tensor in tree or null if iteration is finished- Returns:
- the next tensor in tree or null if iteration is finished
-
set
void set(Tensor tensor)
Set current tensor in tree.- Parameters:
tensor- tensor
-
result
Tensor result()
Returns the result after iteration finished (or stopped). After this step the iterator becomes broken.- Returns:
- the result after iteration finished (or stopped)
-
depth
int depth()
Returns the current depth in the tree.- Returns:
- current depth in the tree
-
-
DataMelt 3.0 © DataMelt by jWork.ORG