Packages

class WorkList[T] extends AnyRef

Fast, small, and dirty implementation of a linked list that removes transient work entries once they are processed. The list is not thread safe! However it is expected to be reentrant. This means a processing function can add/remove entries from the list while processing. Most important, a processing function can remove its own entry from the list. The first remove must return true and any subsequent removes must return false.

Source
Aggregator.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. WorkList
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new WorkList()

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from WorkList[T] to any2stringadd[WorkList[T]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (WorkList[T], B)
    Implicit
    This member is added by an implicit conversion from WorkList[T] to ArrowAssoc[WorkList[T]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. def add(ref: T, permanent: Boolean): WorkList[T]

    Appends an entry to the work list.

    Appends an entry to the work list.

    ref

    The entry.

    returns

    The updated work list.

  7. def addAll(other: WorkList[T]): WorkList[T]

    Appends another WorkList to this WorkList.

    Appends another WorkList to this WorkList.

    other

    The other WorkList

    returns

    This WorkList

  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def ensuring(cond: (WorkList[T]) ⇒ Boolean, msg: ⇒ Any): WorkList[T]
    Implicit
    This member is added by an implicit conversion from WorkList[T] to Ensuring[WorkList[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: (WorkList[T]) ⇒ Boolean): WorkList[T]
    Implicit
    This member is added by an implicit conversion from WorkList[T] to Ensuring[WorkList[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: Boolean, msg: ⇒ Any): WorkList[T]
    Implicit
    This member is added by an implicit conversion from WorkList[T] to Ensuring[WorkList[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: Boolean): WorkList[T]
    Implicit
    This member is added by an implicit conversion from WorkList[T] to Ensuring[WorkList[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  16. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from WorkList[T] to StringFormat[WorkList[T]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  18. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  19. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  20. val head: Entry[T]
  21. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  22. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. final def notify(): Unit
    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  25. def process(processFn: (T) ⇒ Boolean): Boolean

    Tries to process each entry using the processing function.

    Tries to process each entry using the processing function. Stops at the first entry processing succeeds. If the entry is not permanent, the entry is removed.

    processFn

    The processing function, returns true if processing succeeds.

    returns

    true if an entry has been processed, false if no entries are processed successfully.

  26. def remove(ref: T): Boolean

    Removes an entry from the work list

    Removes an entry from the work list

    ref

    The entry.

    returns

    True if the entry is removed, false if the entry is not found.

  27. def removeAll(): Boolean

    Removes all entries from this WorkList

    Removes all entries from this WorkList

    returns

    True if at least one entry is removed. False if none is removed.

  28. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  29. var tail: Entry[T]
  30. def toString(): String
    Definition Classes
    AnyRef → Any
  31. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. def [B](y: B): (WorkList[T], B)
    Implicit
    This member is added by an implicit conversion from WorkList[T] to ArrowAssoc[WorkList[T]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from WorkList[T] to any2stringadd[WorkList[T]]

Inherited by implicit conversion StringFormat from WorkList[T] to StringFormat[WorkList[T]]

Inherited by implicit conversion Ensuring from WorkList[T] to Ensuring[WorkList[T]]

Inherited by implicit conversion ArrowAssoc from WorkList[T] to ArrowAssoc[WorkList[T]]

Ungrouped