Class

rescala.operator.DefaultImplementations

ChangeEventImpl

Related Doc: package DefaultImplementations

Permalink

class ChangeEventImpl[T] extends Operators.Base[(Pulse[T], Pulse[Diff[T]])] with Operators.Derived with Operators.Event[Diff[T]] with Operators.DisconnectableImpl

Linear Supertypes
Ordering
  1. Grouped
  2. Alphabetic
  3. By Inheritance
Inherited
  1. ChangeEventImpl
  2. DisconnectableImpl
  3. Event
  4. Disconnectable
  5. EventCompat
  6. ReadableMacro
  7. MacroAccess
  8. ReadAs
  9. Derived
  10. Base
  11. ReSource
  12. AnyRef
  13. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ChangeEventImpl(_bud: Operators.State[(Pulse[T], Pulse[Diff[T]])], signal: Operators.Signal[T], name: ReName)

    Permalink

Type Members

  1. final type ReIn = Operators.ReevTicket[Value]

    Permalink
    Definition Classes
    Derived
  2. final type Rout = Operators.Result[Value]

    Permalink
    Definition Classes
    Derived
  3. type Value = (Pulse[T], Pulse[Diff[T]])

    Permalink
    Definition Classes
    ChangeEventImplBaseReSource

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. final macro def &&(expression: (Diff[T]) ⇒ Boolean)(implicit ticket: Operators.CreationTicket): Operators.Event[Diff[T]]

    Permalink

    Filters the event, only propagating the value when the filter is true.

    Filters the event, only propagating the value when the filter is true.

    Definition Classes
    EventCompat
    Annotations
    @cutOutOfUserComputation()
    See also

    filter

  4. final def +=(handler: (Diff[T]) ⇒ Unit)(implicit ticket: Operators.CreationTicket): Operators.Disconnectable

    Permalink

    Adds an observer.

    Adds an observer.

    Definition Classes
    Event
    See also

    observe

  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. final def \[U](except: Operators.Event[U])(implicit ticket: Operators.CreationTicket): Operators.Event[Diff[T]]

    Permalink

    Propagates the event only when except does not fire.

    Propagates the event only when except does not fire.

    Definition Classes
    Event
    Annotations
    @cutOutOfUserComputation()
  7. final def and[U, R](other: Operators.Event[U])(merger: (Diff[T], U) ⇒ R)(implicit ticket: Operators.CreationTicket): Operators.Event[R]

    Permalink

    Merge the event with the other, if both fire simultaneously.

    Merge the event with the other, if both fire simultaneously.

    Definition Classes
    Event
    Annotations
    @cutOutOfUserComputation()
  8. final def apply(): Option[Diff[T]]

    Permalink

    Makes the enclosing reactive expression depend on the current value of the reactive.

    Makes the enclosing reactive expression depend on the current value of the reactive. Is an alias for value.

    Definition Classes
    MacroAccess
    Annotations
    @compileTimeOnly( ... )
    See also

    value

  9. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  10. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @throws( ... )
  11. final macro def collect[U](expression: PartialFunction[Diff[T], U])(implicit ticket: Operators.CreationTicket): Operators.Event[U]

    Permalink

    Collects the results from a partial function

    Collects the results from a partial function

    Definition Classes
    EventCompat
    Annotations
    @cutOutOfUserComputation()
  12. def commit(base: (Pulse[T], Pulse[Diff[T]])): (Pulse[T], Pulse[Diff[T]])

    Permalink
    Attributes
    protected[rescala]
    Definition Classes
    ChangeEventImplReSource
  13. final def count()(implicit ticket: Operators.CreationTicket): Operators.Signal[Int]

    Permalink

    Counts the occurrences of the event.

    Counts the occurrences of the event. The argument of the event is discarded. Always starts from 0 when the count is created (no matter how often the event has activated in the past).

    Definition Classes
    Event
    Annotations
    @cutOutOfUserComputation()
  14. final def disconnect(): Unit

    Permalink
    Definition Classes
    DisconnectableImplDisconnectable
  15. final def dropParam(implicit ticket: Operators.CreationTicket): Operators.Event[Unit]

    Permalink

    Drop the event parameter; equivalent to map((_: Any) => ())

    Drop the event parameter; equivalent to map((_: Any) => ())

    Definition Classes
    Event
    Annotations
    @cutOutOfUserComputation()
  16. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  18. final macro def filter(expression: (Diff[T]) ⇒ Boolean)(implicit ticket: Operators.CreationTicket): Operators.Event[Diff[T]]

    Permalink

    Filters the event, only propagating the value when the filter is true.

    Filters the event, only propagating the value when the filter is true.

    Definition Classes
    EventCompat
    Annotations
    @cutOutOfUserComputation()
  19. final def flatten[R](implicit flatten: Operators.Flatten[Operators.Event[Diff[T]], R]): R

    Permalink

    Flattens the inner value.

    Flattens the inner value.

    Definition Classes
    Event
    Annotations
    @cutOutOfUserComputation()
  20. final macro def fold[A](init: A)(op: (A, Diff[T]) ⇒ A)(implicit ticket: Operators.CreationTicket): Operators.Signal[A]

    Permalink

    Folds events with a given operation to create a Signal.

    Folds events with a given operation to create a Signal.

    Definition Classes
    EventCompat
    Annotations
    @cutOutOfUserComputation()
  21. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate()
  22. def guardedReevaluate(rein: ReIn): Rout

    Permalink
    Attributes
    protected[rescala]
    Definition Classes
    ChangeEventImplDisconnectableImpl
  23. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate()
  24. def internalAccess(v: (Pulse[T], Pulse[Diff[T]])): Pulse[Diff[T]]

    Permalink
    Definition Classes
    ChangeEventImplEvent
  25. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  26. final def iterate[A](init: A)(f: (A) ⇒ A)(implicit ticket: Operators.CreationTicket): Operators.Signal[A]

    Permalink

    Applies a function on the current value of the signal every time the event occurs, starting with the init value before the first event occurrence

    Applies a function on the current value of the signal every time the event occurs, starting with the init value before the first event occurrence

    Definition Classes
    Event
    Annotations
    @cutOutOfUserComputation()
  27. final def last[A >: Diff[T]](n: Int)(implicit ticket: Operators.CreationTicket): Operators.Signal[LinearSeq[A]]

    Permalink

    Returns a signal which holds the last n events in a list.

    Returns a signal which holds the last n events in a list. At the beginning the list increases in size up to when n values are available

    Definition Classes
    Event
    Annotations
    @cutOutOfUserComputation()
  28. final def latest[A >: Diff[T]]()(implicit ticket: Operators.CreationTicket): Operators.Signal[A]

    Permalink

    returns a signal holding the latest value of the event.

    returns a signal holding the latest value of the event.

    Definition Classes
    Event
    Annotations
    @cutOutOfUserComputation()
  29. final def latest[A >: Diff[T]](init: A)(implicit ticket: Operators.CreationTicket): Operators.Signal[A]

    Permalink

    returns a signal holding the latest value of the event.

    returns a signal holding the latest value of the event.

    init

    initial value of the returned signal

    Definition Classes
    Event
    Annotations
    @cutOutOfUserComputation()
  30. final def latestOption[A >: Diff[T]]()(implicit ticket: Operators.CreationTicket): Operators.Signal[Option[A]]

    Permalink

    Holds the latest value of an event as an Option, None before the first event occured

    Holds the latest value of an event as an Option, None before the first event occured

    Definition Classes
    Event
    Annotations
    @cutOutOfUserComputation()
  31. final def list[A >: Diff[T]]()(implicit ticket: Operators.CreationTicket): Operators.Signal[List[A]]

    Permalink

    collects events resulting in a variable holding a list of all values.

    collects events resulting in a variable holding a list of all values.

    Definition Classes
    Event
    Annotations
    @cutOutOfUserComputation()
  32. final macro def map[A](expression: (Diff[T]) ⇒ A)(implicit ticket: Operators.CreationTicket): Operators.Event[A]

    Permalink

    Transform the event.

    Transform the event.

    Definition Classes
    EventCompat
    Annotations
    @cutOutOfUserComputation()
  33. val name: ReName

    Permalink

    the name of the reactive, useful for debugging as it often contains positional information

    the name of the reactive, useful for debugging as it often contains positional information

    Definition Classes
    BaseReSource
  34. final def ne(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate()
  36. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate()
  37. final def observe(onValue: (Diff[T]) ⇒ Unit, onError: (Throwable) ⇒ Unit = null, fireImmediately: Boolean = false)(implicit ticket: Operators.CreationTicket): Operators.Disconnectable

    Permalink

    Add an observer.

    Add an observer.

    returns

    the resulting rescala.operator.ObserveBundle.Observe can be used to remove the observer.

    Definition Classes
    Event
  38. def read(v: Value): Option[Diff[T]]

    Permalink

    Interprets the pulse of the event by converting to an option

    Interprets the pulse of the event by converting to an option

    Definition Classes
    ChangeEventImplEventReadAs
  39. final def recover[R >: Diff[T]](onFailure: PartialFunction[Throwable, Option[R]])(implicit ticket: Operators.CreationTicket): Operators.Event[R]

    Permalink

    Uses a partial function onFailure to recover an error carried by the event into a value when returning Some(value), or filters the error when returning None

    Uses a partial function onFailure to recover an error carried by the event into a value when returning Some(value), or filters the error when returning None

    Definition Classes
    Event
  40. final def reduce[A](reducer: (⇒ A, ⇒ Diff[T]) ⇒ A)(implicit ticket: Operators.CreationTicket): Operators.Signal[A]

    Permalink

    reduces events with a given reduce function to create a Signal

    reduces events with a given reduce function to create a Signal

    Definition Classes
    Event
    Annotations
    @cutOutOfUserComputation()
  41. final def reevaluate(rein: ReIn): Rout

    Permalink

    called if any of the dependencies (rescala.core.Core.ReSources) changed in the current update turn, after all (known) dependencies are updated

    called if any of the dependencies (rescala.core.Core.ReSources) changed in the current update turn, after all (known) dependencies are updated

    Attributes
    protected[rescala]
    Definition Classes
    DisconnectableImplDerived
  42. def resource: Operators.ReadAs[Option[Diff[T]]]

    Permalink
    Definition Classes
    EventMacroAccess
  43. val state: Operators.State[(Pulse[T], Pulse[Diff[T]])]

    Permalink

    the initial state passed by the scheduler

    the initial state passed by the scheduler

    Attributes
    protected[rescala]
    Definition Classes
    BaseReSource
  44. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  45. def toString(): String

    Permalink
    Definition Classes
    Base → AnyRef → Any
  46. final def toggle[A](a: Operators.Signal[A], b: Operators.Signal[A])(implicit ticket: Operators.CreationTicket): Operators.Signal[A]

    Permalink

    Switch back and forth between two signals on occurrence of event e

    Switch back and forth between two signals on occurrence of event e

    Definition Classes
    Event
    Annotations
    @cutOutOfUserComputation()
  47. final def value: Option[Diff[T]]

    Permalink

    Makes the enclosing reactive expression depend on the current value of the reactive.

    Makes the enclosing reactive expression depend on the current value of the reactive. Is an alias for rescala.macros.MacroAccess.apply.

    Definition Classes
    MacroAccess
    Annotations
    @compileTimeOnly( ... )
    See also

    apply

  48. final def wait(arg0: Long, arg1: Int): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  50. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  51. final def zip[U](other: Operators.Event[U])(implicit ticket: Operators.CreationTicket): Operators.Event[(Diff[T], U)]

    Permalink

    Merge the event with the other into a tuple, if both fire simultaneously.

    Merge the event with the other into a tuple, if both fire simultaneously.

    Definition Classes
    Event
    Annotations
    @cutOutOfUserComputation()
    See also

    and

  52. final def zipOuter[U](other: Operators.Event[U])(implicit ticket: Operators.CreationTicket): Operators.Event[(Option[Diff[T]], Option[U])]

    Permalink

    Merge the event with the other into a tuple, even if only one of them fired.

    Merge the event with the other into a tuple, even if only one of them fired.

    Definition Classes
    Event
    Annotations
    @cutOutOfUserComputation()
  53. final def ||[U >: Diff[T]](other: Operators.Event[U])(implicit ticket: Operators.CreationTicket): Operators.Event[U]

    Permalink

    Events disjunction.

    Events disjunction. Propagates the values if any of the events fires. Only propagates the left event if both fire.

    Definition Classes
    Event
    Annotations
    @cutOutOfUserComputation()

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from Operators.Event[Diff[T]]

Inherited from Operators.Disconnectable

Inherited from Operators.EventCompat[Diff[T]]

Inherited from Operators.ReadableMacro[Option[Diff[T]]]

Inherited from MacroAccess[Option[Diff[T]], Operators.ReadAs[Option[Diff[T]]]]

Inherited from Operators.ReadAs[Option[Diff[T]]]

Inherited from Operators.Derived

Inherited from Operators.Base[(Pulse[T], Pulse[Diff[T]])]

Inherited from Operators.ReSource

Inherited from AnyRef

Inherited from Any

internal

Accessor and observers

Event operators

Event to Signal conversions

Ungrouped