Trait

diode

ModelRW

Related Doc: package diode

Permalink

trait ModelRW[M, S] extends ModelR[M, S]

Base trait for all model writers

M

Type of the base model

S

Type of the reader/writer value

Linear Supertypes
ModelR[M, S], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ModelRW
  2. ModelR
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def eval(model: M): S

    Permalink

    Evaluates the reader against a supplied model

    Evaluates the reader against a supplied model

    Definition Classes
    ModelR
  2. abstract def updated(newValue: S): M

    Permalink

    Updatews the model using the value provided and returns the updated model.

  3. abstract def value: S

    Permalink

    Returns the value of the reader

    Returns the value of the reader

    Definition Classes
    ModelR
  4. abstract def zip[SS](that: ModelR[M, SS])(implicit cts: ClassTag[S], ctss: ClassTag[SS]): ModelR[M, (S, SS)]

    Permalink

    Combines this reader with another reader to provide a new reader returning a tuple of the values of the two original readers.

    Combines this reader with another reader to provide a new reader returning a tuple of the values of the two original readers.

    that

    The other reader

    Definition Classes
    ModelR
  5. abstract def zoom[T](get: (S) ⇒ T): ModelR[M, T]

    Permalink

    Zooms into the model using the provided accessor function

    Zooms into the model using the provided accessor function

    get

    Function to go from current reader to a new value

    Definition Classes
    ModelR
  6. abstract def zoomFlatMap[F[_], A, B](fa: (S) ⇒ F[A])(f: (A) ⇒ F[B])(implicit monad: Monad[F], ct: ClassTag[B]): ModelR[M, F[B]]

    Permalink

    Zooms into the model and flatMaps over the zoomed value, which must be of type F[A]

    Zooms into the model and flatMaps over the zoomed value, which must be of type F[A]

    fa

    Zooming function

    f

    The function to apply, must return a value of type F[B]

    Definition Classes
    ModelR
  7. abstract def zoomFlatMapRW[F[_], A, B](fa: (S) ⇒ F[A])(f: (A) ⇒ F[B])(set: (S, F[B]) ⇒ S)(implicit monad: Monad[F], ct: ClassTag[B]): ModelRW[M, F[B]]

    Permalink

    Zooms into the model and flatMaps over the zoomed value, which must be of type F[A].

    Zooms into the model and flatMaps over the zoomed value, which must be of type F[A]. The set function is used to update the model with a new value.

    fa

    Zooming function

    f

    The function to apply

    set

    Function to update the model with a new value

  8. abstract def zoomMap[F[_], A, B](fa: (S) ⇒ F[A])(f: (A) ⇒ B)(implicit monad: Monad[F], ct: ClassTag[B]): ModelR[M, F[B]]

    Permalink

    Zooms into the model and maps over the zoomed value, which must be of type F[A]

    Zooms into the model and maps over the zoomed value, which must be of type F[A]

    fa

    Zooming function

    f

    The function to apply

    Definition Classes
    ModelR
  9. abstract def zoomMapRW[F[_], A, B](fa: (S) ⇒ F[A])(f: (A) ⇒ B)(set: (S, F[B]) ⇒ S)(implicit monad: Monad[F], ct: ClassTag[B]): ModelRW[M, F[B]]

    Permalink

    Zooms into the model and maps over the zoomed value, which must be of type F[A].

    Zooms into the model and maps over the zoomed value, which must be of type F[A]. The set function is used to update the model with a new value.

    fa

    Zooming function

    f

    The function to apply

    set

    Function to update the model with a new value

  10. abstract def zoomRW[T](get: (S) ⇒ T)(set: (S, T) ⇒ S): ModelRW[M, T]

    Permalink

    Zooms into the model using the provided get function.

    Zooms into the model using the provided get function. The set function is used to update the model with a new value.

    get

    Function to go from current reader to a new value

    set

    Function to update the model with a new value

Concrete Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def apply(): S

    Permalink

    Returns the value of the reader

    Returns the value of the reader

    Definition Classes
    ModelR
  5. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. def flatMap[F[_], A, B](f: (A) ⇒ F[B])(implicit ev: =:=[S, F[A]], monad: Monad[F], ct: ClassTag[B]): ModelR[M, F[B]]

    Permalink

    FlatMaps over current reader into a new value provided by f.

    FlatMaps over current reader into a new value provided by f. Reader type S must be of type F[A], for example Option[A].

    f

    The function to apply, must return a value of type F[B]

    Definition Classes
    ModelR
  11. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. def map[F[_], A, B](f: (A) ⇒ B)(implicit ev: =:=[S, F[A]], monad: Monad[F], ct: ClassTag[B]): ModelR[M, F[B]]

    Permalink

    Maps over current reader into a new value provided by f.

    Maps over current reader into a new value provided by f. Reader type S must be of type F[A], for example Option[A].

    f

    The function to apply

    Definition Classes
    ModelR
  15. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  18. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  20. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from ModelR[M, S]

Inherited from AnyRef

Inherited from Any

Ungrouped