trait Trees extends AnyRef
- Alphabetic
- By Inheritance
- Trees
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
implicit
class
CleanedTree[A] extends AnyRef
This implicit can be used to remove None nodes in a Tree
-
implicit
class
TreeLocx[T] extends AnyRef
Implicit definition to add more functionalities to the TreeLoc class
-
implicit
class
Treex[A] extends AnyRef
Implicit definition to add more functionalities to the Tree trait
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
allPaths[A](tree: Tree[A]): List[List[A]]
- returns
all the paths from root to leaves
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
bottomUp[A, B](t: Tree[A], f: (A, Stream[B]) ⇒ B): Tree[B]
map a Tree from leaves to root by replacing each node with the result of a function taking that node and the mapping of all its children.
map a Tree from leaves to root by replacing each node with the result of a function taking that node and the mapping of all its children.
This is used in JUnit to map a Tree[Description] where no Description objects are related to a Tree[Description] where each node returns the children nodes on the "getChildren" method
-
def
clean[A](t: Tree[Option[A]])(implicit initial: A): Tree[A]
remove None nodes from a tree
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
flattenLeft[A](tree: Tree[A]): Stream[A]
flatten the tree using a foldLeft to avoid SOF
- def flattenSubForests[A](tree: Tree[A]): Tree[A]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
parentLocs[T](t: TreeLoc[T], ps: Seq[TreeLoc[T]] = Vector()): Seq[TreeLoc[T]]
- returns
the list of all parent locs from a given TreeLoc
-
def
prune[A](t: Tree[A], f: (Tree[A]) ⇒ Option[A])(implicit initial: A): Tree[A]
remove nodes from a tree if they are None according to a function f
-
def
prune[A, B](t: Tree[A], f: (A) ⇒ Option[B]): Option[Tree[B]]
remove nodes from a tree if they are None according to a function f
-
def
size[A](t: TreeLoc[A]): Int
- returns
the number of nodes in a TreeLoc
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- implicit def treeIsSized[T]: Sized[Tree[T]]
- implicit def treeLocIsSized[T]: Sized[TreeLoc[T]]
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )