trait TreeLike[T] extends Serializable
Can be navigated like a tree. Has a Value
at branches and
leaves, and edges are labelled with Key
.
- Annotations
- @implicitNotFound()
Linear Supertypes
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- TreeLike
- Serializable
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Abstract Value Members
- abstract def appendWith(a: T, key: Key): T
- abstract def empty: T
a null-graph (no verticies/K0)
- abstract def getClass(): Class[_ <: AnyRef]
- Definition Classes
- Any
- abstract def listSubtrees(a: T): List[Key]
- abstract def one(in: Value): T
create a tree with a single vertex (a singleton graph)
- abstract def prefixWith(a: T, key: Key): T
Add an key to the start of each existing key, effectively creating a new tree with the existing tree as a single subtree
- abstract def subTree(a: T, key: Key): T
gives the subtree at a given key
- abstract def subTreeOpt(a: T, key: Key): Option[T]
- abstract def valueAtRoot(a: T): Option[Value]
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##: Int
- Definition Classes
- Any
- def /(a: T, key: Key): T
gives the subtree at a given key
- def /?(a: T, key: Key): Option[T]
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def atPath(a: T, path: List[Key]): T
gives the subtree at a given path
- def definedAt(a: T, key: Key): Boolean
returns 'true' if there is a subtree at the given key
- def definedAtPath(a: T, key: List[Key]): Boolean
returns 'true' if there is a subtree at the given path
- def definedAtRoot(a: T): Boolean
returns 'true' if there is a subtree at the given path
- def equals(arg0: Any): Boolean
- Definition Classes
- Any
- def hashCode(): Int
- Definition Classes
- Any
- def isEmpty(a: T): Boolean
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isNonEmpty(a: T): Boolean
- def prefixWithMany(value: T, key: List[Key]): T
- def toString(): String
- Definition Classes
- Any
- def valueAt(a: T, key: Key): Option[Value]
- def valueAtPath(a: T, key: List[Key]): Option[Value]