Class/Object

io.reactors.container

SignalCatamorph

Related Docs: object SignalCatamorph | package container

Permalink

class SignalCatamorph[T] extends RCatamorph[T, Signal[T]]

Catamorph of signal values.

Aggregates a bunch of signals using a regular catamorph. A regular catamorph aggregates a set of values of one type, and exposes a signal that is their aggregation. A signal catamorph aggregates a set of signals of some type, and exposes a signal that is the aggregation of the signals it contains. The difference is that when any of the signal values changes, the output signal also changes. This is not the case with a regular catamorph, which only updates itself when a value is inserted or removed.

Example:

Signal(1)--|
           +--Signal(3)
Signal(2)--|

-- after change --

Signal(3)--|
           +--Signal(5) -> updated!
Signal(2)--|
T

type of values inside the signals

Linear Supertypes
RCatamorph[T, Signal[T]], RContainer[Signal[T]], Subscription, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SignalCatamorph
  2. RCatamorph
  3. RContainer
  4. Subscription
  5. AnyRef
  6. 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 SignalCatamorph(catamorph: RCatamorph[T, Signal[T]])

    Permalink

    catamorph

    regular catamorph of the signals

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from SignalCatamorph[T] to any2stringadd[SignalCatamorph[T]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def +=(s: Signal[T]): Boolean

    Permalink
    Definition Classes
    SignalCatamorphRCatamorph
  5. def -=(s: Signal[T]): Boolean

    Permalink
    Definition Classes
    SignalCatamorphRCatamorph
  6. def ->[B](y: B): (SignalCatamorph[T], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from SignalCatamorph[T] to ArrowAssoc[SignalCatamorph[T]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  7. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def andThen(action: ⇒ Unit): Subscription

    Permalink
    Definition Classes
    Subscription
  9. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  10. val catamorph: RCatamorph[T, Signal[T]]

    Permalink

    regular catamorph of the signals

  11. def chain(other: Subscription): Subscription

    Permalink
    Definition Classes
    Subscription
  12. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. def collect[S <: AnyRef](pf: PartialFunction[Signal[T], S])(implicit e: <:<[Signal[T], AnyRef]): RContainer[S]

    Permalink

    Incrementally collects and transforms elements on which the function is defined.

    Incrementally collects and transforms elements on which the function is defined.

    The partial function must be an injection.

    Definition Classes
    RContainer
  14. def count(p: (Signal[T]) ⇒ Boolean): Events[Int]

    Permalink

    Stream with the current number of elements satisfying a predicate.

    Stream with the current number of elements satisfying a predicate.

    Definition Classes
    RContainer
  15. def ensuring(cond: (SignalCatamorph[T]) ⇒ Boolean, msg: ⇒ Any): SignalCatamorph[T]

    Permalink
    Implicit information
    This member is added by an implicit conversion from SignalCatamorph[T] to Ensuring[SignalCatamorph[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. def ensuring(cond: (SignalCatamorph[T]) ⇒ Boolean): SignalCatamorph[T]

    Permalink
    Implicit information
    This member is added by an implicit conversion from SignalCatamorph[T] to Ensuring[SignalCatamorph[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. def ensuring(cond: Boolean, msg: ⇒ Any): SignalCatamorph[T]

    Permalink
    Implicit information
    This member is added by an implicit conversion from SignalCatamorph[T] to Ensuring[SignalCatamorph[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  18. def ensuring(cond: Boolean): SignalCatamorph[T]

    Permalink
    Implicit information
    This member is added by an implicit conversion from SignalCatamorph[T] to Ensuring[SignalCatamorph[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  19. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  21. def exists(p: (Signal[T]) ⇒ Boolean): Events[Boolean]

    Permalink

    Stream with boolean values indicating if some element satisfied a predicate.

    Stream with boolean values indicating if some element satisfied a predicate.

    Definition Classes
    RContainer
  22. def filter(p: (Signal[T]) ⇒ Boolean): RContainer[Signal[T]]

    Permalink

    Incrementally filters elements from the current container.

    Incrementally filters elements from the current container.

    Definition Classes
    RContainer
  23. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  24. def forall(p: (Signal[T]) ⇒ Boolean): Events[Boolean]

    Permalink

    Stream with boolean values indicating if all elements satisfy a predicate.

    Stream with boolean values indicating if all elements satisfy a predicate.

    Definition Classes
    RContainer
  25. def foreach(f: (Signal[T]) ⇒ Unit): Unit

    Permalink

    Traverses the elements of the container.

    Traverses the elements of the container.

    Definition Classes
    SignalCatamorphRContainer
  26. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from SignalCatamorph[T] to StringFormat[SignalCatamorph[T]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  27. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  29. def init(c: RCatamorph[T, Signal[T]]): Unit

    Permalink
  30. def inserts: Events[Signal[T]]

    Permalink

    Event stream with inserted elements.

    Event stream with inserted elements.

    Definition Classes
    SignalCatamorphRContainer
  31. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  32. def map[S](f: (Signal[T]) ⇒ S): RContainer[S]

    Permalink

    Incrementally maps elements from the current container.

    Incrementally maps elements from the current container.

    Function f for the map must be an injection, that is, for any two elements x and y that are not equal (x != y), f(x) **cannot be equal to** f(y).

    Definition Classes
    RContainer
  33. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  34. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  35. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  36. def push(s: Signal[T]): Boolean

    Permalink
    Definition Classes
    SignalCatamorphRCatamorph
  37. def reduce[S](z: S)(op: (S, Signal[T]) ⇒ S)(inv: (S, Signal[T]) ⇒ S): Events[S]

    Permalink

    Stream with the reduction of the current set of elements in this container.

    Stream with the reduction of the current set of elements in this container.

    Parameters op, inv and z must for an Abelian group, that is, z is the neutral element, and inv is the inverse operation of op, in the sense that inv(op(s, t), t) == op(inv(s, t), t) == s is always true.

    Definition Classes
    RContainer
  38. def removes: Events[Signal[T]]

    Permalink

    Event stream with removed elements.

    Event stream with removed elements.

    Definition Classes
    SignalCatamorphRContainer
  39. def signal: Signal[T]

    Permalink
    Definition Classes
    SignalCatamorphRCatamorph
  40. def size: Int

    Permalink

    Returns the number of elements in the container.

    Returns the number of elements in the container.

    Definition Classes
    SignalCatamorphRContainer
  41. def sizes(implicit s: Spec[Signal[T]]): Events[Int]

    Permalink

    Stream with the sizes of this container.

    Stream with the sizes of this container.

    Definition Classes
    RContainer
  42. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  43. def to[That](implicit factory: Factory[Signal[T], That]): That

    Permalink

    Incrementally copies this container to another container type.

    Incrementally copies this container to another container type.

    Materializes another container, such that all the elements from this container are visible in the target container.

    Users may call unsubscribe on the resulting container to stop incremental updates. Losing the container and failing to call unsubscribe may result in a time leak.

    Definition Classes
    RContainer
  44. def toAggregate(z: Signal[T])(op: (Signal[T], Signal[T]) ⇒ Signal[T]): Signal[Signal[T]]

    Permalink

    Creates a signal that is the fold of the elements in the container.

    Creates a signal that is the fold of the elements in the container.

    Neutral element z and the associative operator op must form a monoid.

    Definition Classes
    RContainer
  45. def toCommuteAggregate(z: Signal[T])(op: (Signal[T], Signal[T]) ⇒ Signal[T]): Signal[Signal[T]]

    Permalink

    Creates a signal that is the commutative fold of the elements in the container.

    Creates a signal that is the commutative fold of the elements in the container.

    Neutral element z and the commutative, associative operator op must for a monoid.

    Definition Classes
    RContainer
  46. def toSignalAggregate[S](z: S)(op: (S, S) ⇒ S)(implicit e: <:<[Signal[T], Signal[S]]): Signal[S]

    Permalink

    Converts this container of signals into a signal aggregate.

    Converts this container of signals into a signal aggregate.

    Definition Classes
    RContainer
  47. def toString(): String

    Permalink
    Definition Classes
    SignalCatamorph → AnyRef → Any
  48. def union(that: RContainer[Signal[T]])(implicit a: Arrayable[Signal[T]], h: Hash[Signal[T]]): RContainer[Signal[T]]

    Permalink

    Incrementally produces a union of the elements in the two containers.

    Incrementally produces a union of the elements in the two containers.

    This container combinator creates a subscription on the source combinators, so calling unsubscribe will stop incremental updates.

    Definition Classes
    RContainer
  49. def unsubscribe(): Unit

    Permalink

    Unsubscribes the container from its input event streams.

    Unsubscribes the container from its input event streams.

    Definition Classes
    SignalCatamorphRContainer → Subscription
  50. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  53. def [B](y: B): (SignalCatamorph[T], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from SignalCatamorph[T] to ArrowAssoc[SignalCatamorph[T]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from RCatamorph[T, Signal[T]]

Inherited from RContainer[Signal[T]]

Inherited from Subscription

Inherited from AnyRef

Inherited from Any

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

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

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

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

Ungrouped