Class/Object

io.reactors.container

MonoidCatamorph

Related Docs: object MonoidCatamorph | package container

Permalink

class MonoidCatamorph[T, S] extends RCatamorph[T, S] with Modifiable

Stores elements of a monoid.

Incrementally computes an aggregation of the stored elements, using a binary associative operator. The aggregation can be accessed with the signal method.

Linear Supertypes
Modifiable, RCatamorph[T, S], RContainer[S], Subscription, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MonoidCatamorph
  2. Modifiable
  3. RCatamorph
  4. RContainer
  5. Subscription
  6. AnyRef
  7. 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 MonoidCatamorph(get: (S) ⇒ T, zero: T, op: (T, T) ⇒ T)

    Permalink

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 MonoidCatamorph[T, S] to any2stringadd[MonoidCatamorph[T, S]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def +=(v: S): Boolean

    Permalink
    Definition Classes
    MonoidCatamorphRCatamorph
  5. def -=(v: S): Boolean

    Permalink
    Definition Classes
    MonoidCatamorphRCatamorph
  6. def ->[B](y: B): (MonoidCatamorph[T, S], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from MonoidCatamorph[T, S] to ArrowAssoc[MonoidCatamorph[T, S]] 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 acquireModify(): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Modifiable
  9. def andThen(action: ⇒ Unit): Subscription

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

    Permalink
    Definition Classes
    Any
  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[S, S])(implicit e: <:<[S, 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 container: MonoidCatamorph[T, S]

    Permalink
  15. def count(p: (S) ⇒ 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
  16. def ensuring(cond: (MonoidCatamorph[T, S]) ⇒ Boolean, msg: ⇒ Any): MonoidCatamorph[T, S]

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  22. def exists(p: (S) ⇒ 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
  23. def filter(p: (S) ⇒ Boolean): RContainer[S]

    Permalink

    Incrementally filters elements from the current container.

    Incrementally filters elements from the current container.

    Definition Classes
    RContainer
  24. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  25. def forall(p: (S) ⇒ 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
  26. def foreach(f: (S) ⇒ Unit): Unit

    Permalink

    Traverses the elements of the container.

    Traverses the elements of the container.

    Definition Classes
    MonoidCatamorphRContainer
  27. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from MonoidCatamorph[T, S] to StringFormat[MonoidCatamorph[T, S]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  28. val get: (S) ⇒ T

    Permalink
  29. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  31. def init(mc: MonoidCatamorph[T, S]): Unit

    Permalink
  32. def inserts: Events[S]

    Permalink

    Event stream with inserted elements.

    Event stream with inserted elements.

    Definition Classes
    MonoidCatamorphRContainer
  33. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  34. def map[S](f: (S) ⇒ 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
  35. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  36. def newLeaf(v: S, f: (S) ⇒ T): Leaf[T]

    Permalink
    Attributes
    protected
  37. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  39. val op: (T, T) ⇒ T

    Permalink
  40. def push(v: S): Boolean

    Permalink
    Definition Classes
    MonoidCatamorphRCatamorph
  41. def reduce[S](z: S)(op: (S, S) ⇒ S)(inv: (S, S) ⇒ 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
  42. def releaseModify(): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Modifiable
  43. def removes: Events[S]

    Permalink

    Event stream with removed elements.

    Event stream with removed elements.

    Definition Classes
    MonoidCatamorphRContainer
  44. def signal: Signal[T]

    Permalink
    Definition Classes
    MonoidCatamorphRCatamorph
  45. def size: Int

    Permalink

    Returns the number of elements in the container.

    Returns the number of elements in the container.

    Definition Classes
    MonoidCatamorphRContainer
  46. def sizes(implicit s: Spec[S]): Events[Int]

    Permalink

    Stream with the sizes of this container.

    Stream with the sizes of this container.

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

    Permalink
    Definition Classes
    AnyRef
  48. def to[That](implicit factory: Factory[S, 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
  49. def toAggregate(z: S)(op: (S, S) ⇒ S): Signal[S]

    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
  50. def toCommuteAggregate(z: S)(op: (S, S) ⇒ S): Signal[S]

    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
  51. def toSignalAggregate[S](z: S)(op: (S, S) ⇒ S)(implicit e: <:<[S, 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
  52. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  53. def union(that: RContainer[S])(implicit a: Arrayable[S], h: Hash[S]): RContainer[S]

    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
  54. def unsubscribe(): Unit

    Permalink

    Unsubscribes the container from its input event streams.

    Unsubscribes the container from its input event streams.

    Definition Classes
    MonoidCatamorphRContainer → Subscription
  55. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  58. val zero: T

    Permalink
  59. def [B](y: B): (MonoidCatamorph[T, S], B)

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

Inherited from Modifiable

Inherited from RCatamorph[T, S]

Inherited from RContainer[S]

Inherited from Subscription

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from MonoidCatamorph[T, S] to any2stringadd[MonoidCatamorph[T, S]]

Inherited by implicit conversion StringFormat from MonoidCatamorph[T, S] to StringFormat[MonoidCatamorph[T, S]]

Inherited by implicit conversion Ensuring from MonoidCatamorph[T, S] to Ensuring[MonoidCatamorph[T, S]]

Inherited by implicit conversion ArrowAssoc from MonoidCatamorph[T, S] to ArrowAssoc[MonoidCatamorph[T, S]]

Ungrouped