ReactiveDeltaSeq

rescala.extra.incremental.IncrementalBundle.ReactiveDeltaSeq

Attributes

S

Structure of Reactive Sequence source

T

Type of values inside Deltas

Graph
Supertypes
trait Derived
trait ReSource
class Object
trait Matchable
class Any
Known subtypes
class IncSeq[T]
class MapDeltaSeq[T, A]

Members list

Concise view

Type members

Types

override type State[V] = State[V]
override type Value = Delta[T]

the value of deltas send through the set

the value of deltas send through the set

Attributes

Inherited types

final type ReIn = ReevTicket[State, Value]

Attributes

Inherited from:
Derived
final type Rout = of[State, Value]

Attributes

Inherited from:
Derived

Value members

Concrete methods

def ++(that: ReactiveDeltaSeq[T])(implicit ticket: CreationTicket): ReactiveDeltaSeq[T]

Concatenates the ReactiveDeltaSeq with another (that) ReactiveDeltaSeq by returning a new ReactiveDeltaSeq (ConcatenateDeltaSeq)

Concatenates the ReactiveDeltaSeq with another (that) ReactiveDeltaSeq by returning a new ReactiveDeltaSeq (ConcatenateDeltaSeq)

Attributes

that

the ReactiveDeltaSeq which will be concatenated with this

ticket

used for the creation of the concatenated ReactiveDeltaSeq

Returns:

ConcatenateDeltaSeq

def asEvent(implicit ticket: CreationTicket): Event[Delta[T]]

Returns current ReactiveDeltaSeq as an Event

Returns current ReactiveDeltaSeq as an Event

Attributes

ticket

a creation ticket as a new event will be created which has the ReactiveDeltaSeq as dependency

def contains(element: T)(implicit ticket: CreationTicket, ord: Ordering[T]): Signal[Boolean]

To check if an element is in the sequence

To check if an element is in the sequence

Attributes

element

element to search for

resInt

needed by REScala API for Signal/Event holding Ints

ticket

for creating the Signal holding the boolean value

def count(fulfillsCondition: T => Boolean)(implicit ticket: CreationTicket): Signal[Int]

Counts number of elements fulfilling the condition provided

Counts number of elements fulfilling the condition provided

Attributes

fulfillsCondition

the condition values of deltas have to fulfill to be taken in consideration

resInt

needed by REScala API for Signal/Event holding Ints

ticket

for creating the Signal holding the value of counted elements

def exists(fulfillsCondition: T => Boolean)(implicit ticket: CreationTicket): Signal[Boolean]

To check if elements fulfilling the condition exists

To check if elements fulfilling the condition exists

Attributes

fulfillsCondition

the condition values of deltas have to fulfill to be taken in consideration

resInt

needed by REScala API for Signal/Event holding Ints

ticket

for creating the Signal holding the boolean value

def filter(filterOperation: T => Boolean)(implicit ticket: CreationTicket): ReactiveDeltaSeq[T]

Filters the sequence , basing on filterExpression and returns the new filtered sequence

Filters the sequence , basing on filterExpression and returns the new filtered sequence

Attributes

filterOperation

the operation used for filtering

ticket

for creating the new source

Returns:

the filtered ReactiveDeltaSeq

def foldUndo[A](initial: A)(fold: (A, Delta[T]) => A)(unfold: (A, Delta[T]) => A)(implicit ticket: CreationTicket): Signal[A]

Based on the concept of reversible Folds Used to fold the deltas basing on fold for Addition-Delta and unfold for Removal-Delta

Based on the concept of reversible Folds Used to fold the deltas basing on fold for Addition-Delta and unfold for Removal-Delta

Attributes

A

the value returned by applying fold or unfold on the value T of Deltas

fold

the function used when an Addition occurs

initial

is the initial value the foldUndo folds to

ticket

as we will create

unfold

the function used when a Removal occurs

def map[A](mapOperation: T => A)(implicit ticket: CreationTicket): ReactiveDeltaSeq[A]

Maps the elements of ReactiveDeltaSeq and returns a new ReactiveDeltaSeq with the mapped deltas with the old ReactiveDeltaSeq as dependency

Maps the elements of ReactiveDeltaSeq and returns a new ReactiveDeltaSeq with the mapped deltas with the old ReactiveDeltaSeq as dependency

Attributes

A

new Value type for deltas in the mapped ReactiveDeltaSeq

mapOperation

the operation used for mapping the values of ReactiveDeltaSeq to MapDeltaSeq

ticket

Ticket for creating the new ReactiveDeltaSeq

Returns:

the mapped ReactiveDeltaSeq

def max(implicit ticket: CreationTicket, ord: Ordering[T]): Signal[Option[T]]

Attributes

ord

the ordering needed to compare values of deltas for finding the minimum

res

...

ticket

used for creation of new sources

Returns:

Signal holding the optional minimum (as it could be None if the seqeunce is empty)

def min(implicit ticket: CreationTicket, ord: Ordering[T]): Signal[Option[T]]

Attributes

ord

the ordering needed to compare values of deltas for finding the minimum

res

...

ticket

used for creation of new sources

Returns:

Signal holding the optional minimum (as it could be None if the seqeunce is empty)

def size(implicit ticket: CreationTicket): Signal[Int]

Returns the sizeOfSeq of the ReactiveDeltaSeq

Returns the sizeOfSeq of the ReactiveDeltaSeq

Attributes

resInt

needed by REScala API for Signal/Event holding Ints //TODO check

ticket

for creating the Signal holding the value of sizeOfSeq

Inherited methods

final def disconnect(): Unit

Attributes

Inherited from:
DisconnectableImpl

Attributes

Inherited from:
ReSource