de.sciss.collection.txn

SkipList

trait SkipList[S <: Sys[S], A] extends Mutable[S]

Linear Supertypes
Mutable[S], Disposable[Tx], Writer, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. SkipList
  2. Mutable
  3. Disposable
  4. Writer
  5. AnyRef
  6. Any
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def +=(elem: A)(implicit tx: Tx): SkipList.this.type

  2. abstract def -=(elem: A)(implicit tx: Tx): SkipList.this.type

  3. abstract def add(v: A)(implicit tx: Tx): Boolean

    Inserts a new key into the list.

    Inserts a new key into the list.

    v

    the key to insert

    returns

    true if the key was successfully inserted, false if a node with the given key already existed

  4. abstract def contains(v: A)(implicit tx: Tx): Boolean

    Searches for the Branch of a given key.

    Searches for the Branch of a given key.

    v

    the key to search for

    returns

    true if the key is in the list, false otherwise

  5. abstract def debugPrint(implicit tx: Tx): String

  6. abstract def disposeData()(implicit tx: Tx): Unit

    Attributes
    protected
    Definition Classes
    Mutable
  7. abstract def height(implicit tx: Tx): Int

    The number of levels in the skip list.

  8. abstract def id: ID

    Definition Classes
    Mutable
  9. abstract def isEmpty(implicit tx: Tx): Boolean

  10. abstract def isomorphicQuery(ord: Ordered[Tx, A])(implicit tx: Tx): (A, Int)

    Finds the nearest item equal or greater than an unknown item from an isomorphic set.

    Finds the nearest item equal or greater than an unknown item from an isomorphic set. The isomorphism is represented by a comparison function which guides the binary search.

    ord

    a function that guides the search. should return -1 if the argument is smaller than the search key, 0 if both are equivalent, or 1 if the argument is greater than the search key. E.g., using some mapping, the function could look like mapping.apply(_).compare(queryKey)

    returns

    the nearest item, or the maximum item

  11. abstract def iterator(implicit tx: Tx): Iterator[Tx, A]

  12. abstract def maxGap: Int

    The maximum gap within elements of each skip level

  13. abstract def minGap: Int

    The minimum gap within elements of each skip level

  14. abstract def notEmpty(implicit tx: Tx): Boolean

  15. implicit abstract def ordering: Ordering[Tx, A]

    The ordering used for the keys of this list.

  16. abstract def remove(v: A)(implicit tx: Tx): Boolean

  17. abstract def size(implicit tx: Tx): Int

    The number of keys in the skip list (size of the bottom level).

    The number of keys in the skip list (size of the bottom level). This operation may take up to O(n) time, depending on the implementation.

  18. abstract def toIndexedSeq(implicit tx: Tx): IndexedSeq[A]

  19. abstract def toList(implicit tx: Tx): List[A]

  20. abstract def toSeq(implicit tx: Tx): Seq[A]

  21. abstract def toSet(implicit tx: Tx): Set[A]

  22. abstract def writeData(out: DataOutput): Unit

    Attributes
    protected
    Definition Classes
    Mutable

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[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  8. final def dispose()(implicit tx: Tx): Unit

    Definition Classes
    Mutable → Disposable
  9. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  10. def equals(that: Any): Boolean

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

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  12. final def getClass(): java.lang.Class[_]

    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int

    Definition Classes
    Mutable → AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  18. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  19. def toString(): String

    Definition Classes
    Mutable → AnyRef → Any
  20. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  23. final def write(out: DataOutput): Unit

    Definition Classes
    Mutable → Writer

Inherited from Mutable[S]

Inherited from Disposable[Tx]

Inherited from Writer

Inherited from AnyRef

Inherited from Any