scalaz

TreeLoc

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.

Attributes
sealed
Source
TreeLoc.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. TreeLoc
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Abstract Value Members

  1. val lefts : Stream[Tree[A]]

    The left siblings of the current node.

    The left siblings of the current node.

    Attributes
    abstract
  2. val parents : Stream[(Stream[Tree[A]], A, Stream[Tree[A]])]

    The parent contexts of the current node.

    The parent contexts of the current node.

    Attributes
    abstract
  3. val rights : Stream[Tree[A]]

    The right siblings of the current node.

    The right siblings of the current node.

    Attributes
    abstract
  4. val tree : Tree[A]

    The currently selected node.

    The currently selected node.

    Attributes
    abstract

Concrete Value Members

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

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

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

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

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

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

    Attributes
    final
    Definition Classes
    Any
  7. def clone (): AnyRef

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

    Delete the current node and all its children.

  9. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  10. def equals (arg0: Any): Boolean

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

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

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

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

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

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

    Select the leftmost child of the current node.

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

    Select the nth child of the current node.

  16. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef → Any
  17. def getLabel : A

    Get the label of the current node.

  18. def hasChildren : Boolean

    True if the current node has children.

  19. def hashCode (): Int

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

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

  21. def insertDownFirst [AA >: A] (t: Tree[AA]): TreeLoc[AA]

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

  22. def insertDownLast [AA >: A] (t: Tree[AA]): TreeLoc[AA]

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

  23. def insertLeft [AA >: A] (t: Tree[AA]): TreeLoc[AA]

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

  24. def insertRight [AA >: A] (t: Tree[AA]): TreeLoc[AA]

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

  25. def isChild : Boolean

    True if the current node is not the root node.

  26. def isFirst : Boolean

    True if the current node has no left siblings.

  27. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  28. def isLast : Boolean

    True if the current node has no right siblings.

  29. def isLeaf : Boolean

    True if the current node has no children.

  30. def isRoot : Boolean

    True if the current node is the root node.

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

    Select the rightmost child of the current node.

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

    Select the left sibling of the current node.

  33. def modifyLabel [AA >: A] (f: (AA) ⇒ AA): TreeLoc[AA]

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

  34. def modifyTree [AA >: A] (f: (Tree[AA]) ⇒ Tree[AA]): TreeLoc[AA]

    Modify the current node with the given function.

  35. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  36. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  37. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  38. def parent : Option[TreeLoc[A]]

    Select the parent of the current node.

  39. def path : Stream[A]

    The path from the focus to the root.

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

    Select the right sibling of the current node.

  41. def root : TreeLoc[A]

    Select the root node of the tree.

  42. def setLabel [AA >: A] (a: AA): TreeLoc[AA]

    Set the label of the current node.

  43. def setTree [AA >: A] (t: Tree[AA]): TreeLoc[AA]

    Replace the current node with the given one.

  44. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  45. def toForest : Stream[Tree[A]]

    Get the entire forest represented by this zipper.

  46. def toString (): String

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

    Get the entire tree represented by this zipper.

  48. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any