scalaz

TreeLoc

sealed trait TreeLoc[A] extends AnyRef

A rose-tree zipper. Represents a scalaz.Tree together with a position in that tree. Provides navigation, persistent update, insertion, and deletes.

Source
TreeLoc.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. TreeLoc
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract val lefts: TreeLoc.TreeForest[A]

    The left siblings of the current node.

  2. abstract val parents: TreeLoc.Parents[A]

    The parent contexts of the current node.

  3. abstract val rights: TreeLoc.TreeForest[A]

    The right siblings of the current node.

  4. abstract val tree: Tree[A]

    The currently selected node.

Concrete Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def cojoin: TreeLoc[TreeLoc[A]]

  9. def delete: Option[TreeLoc[A]]

    Delete the current node and all its children.

  10. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. def find(p: (TreeLoc[A]) ⇒ Boolean): Option[TreeLoc[A]]

    Select the first descendant node of the current node that satisfies the given predicate.

  14. def findChild(p: (Tree[A]) ⇒ Boolean): Option[TreeLoc[A]]

    Select the first immediate child of the current node that satisfies the given predicate.

  15. def firstChild: Option[TreeLoc[A]]

    Select the leftmost child of the current node.

  16. def getChild(n: Int): Option[TreeLoc[A]]

    Select the nth child of the current node.

  17. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  18. def getLabel: A

    Get the label of the current node.

  19. def hasChildren: Boolean

    True if the current node has children.

  20. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  21. def insertDownAt(n: Int, t: Tree[A]): Option[TreeLoc[A]]

    Insert the given node as the nth child of the current node and give it focus.

  22. def insertDownFirst(t: Tree[A]): TreeLoc[A]

    Insert the given node as the first child of the current node and give it focus.

  23. def insertDownLast(t: Tree[A]): TreeLoc[A]

    Insert the given node as the last child of the current node and give it focus.

  24. def insertLeft(t: Tree[A]): TreeLoc[A]

    Insert the given node to the left of the current node and give it focus.

  25. def insertRight(t: Tree[A]): TreeLoc[A]

    Insert the given node to the right of the current node and give it focus.

  26. def isChild: Boolean

    True if the current node is not the root node.

  27. def isFirst: Boolean

    True if the current node has no left siblings.

  28. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  29. def isLast: Boolean

    True if the current node has no right siblings.

  30. def isLeaf: Boolean

    True if the current node has no children.

  31. def isRoot: Boolean

    True if the current node is the root node.

  32. def lastChild: Option[TreeLoc[A]]

    Select the rightmost child of the current node.

  33. def left: Option[TreeLoc[A]]

    Select the left sibling of the current node.

  34. def map[B](f: (A) ⇒ B): TreeLoc[B]

    Maps the given function over the elements.

  35. def modifyLabel(f: (A) ⇒ A): TreeLoc[A]

    Modify the label at the current node with the given function.

  36. def modifyTree(f: (Tree[A]) ⇒ Tree[A]): TreeLoc[A]

    Modify the current node with the given function.

  37. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  38. final def notify(): Unit

    Definition Classes
    AnyRef
  39. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  40. def parent: Option[TreeLoc[A]]

    Select the parent of the current node.

  41. def path: Stream[A]

    The path from the focus to the root.

  42. def right: Option[TreeLoc[A]]

    Select the right sibling of the current node.

  43. def root: TreeLoc[A]

    Select the root node of the tree.

  44. def setLabel(a: A): TreeLoc[A]

    Set the label of the current node.

  45. def setTree(t: Tree[A]): TreeLoc[A]

    Replace the current node with the given one.

  46. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  47. def toForest: TreeLoc.TreeForest[A]

    Get the entire forest represented by this zipper.

  48. def toString(): String

    Definition Classes
    AnyRef → Any
  49. def toTree: Tree[A]

    Get the entire tree represented by this zipper.

  50. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  51. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  52. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped