c

diode

RootModelRW

class RootModelRW[M <: AnyRef] extends RootModelR[M] with BaseModelRW[M, M]

Model reader/writer for the root value

Linear Supertypes
BaseModelRW[M, M], ModelRW[M, M], RootModelR[M], BaseModelR[M, M], ModelR[M, M], ModelRO[M], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RootModelRW
  2. BaseModelRW
  3. ModelRW
  4. RootModelR
  5. BaseModelR
  6. ModelR
  7. ModelRO
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RootModelRW(get: ⇒ M)

Type Members

  1. type NewR[T] = ModelR[M, T]

    Type of a new reader returned by functions such as zoom

    Type of a new reader returned by functions such as zoom

    Definition Classes
    ModelRModelRO

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def =!=(that: M): Boolean
    Definition Classes
    ModelRO
  4. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. def ===(that: M): Boolean

    Checks if that is equal to this using an appropriate equality check

    Checks if that is equal to this using an appropriate equality check

    that

    Value to compare with

    Definition Classes
    RootModelRModelRO
  6. def apply(): M

    Returns the value of the reader

    Returns the value of the reader

    Definition Classes
    ModelRO
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  11. def eval(model: M): M

    Evaluates the reader against a supplied model

    Evaluates the reader against a supplied model

    Definition Classes
    RootModelRBaseModelRModelR
  12. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. def flatMap[F[_], A, B](f: (A) ⇒ F[B])(implicit ev: =:=[M, F[A]], monad: Monad[F], feq: FastEq[_ >: B]): NewR[F[B]]

    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
    ModelRO
  14. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. def map[F[_], A, B](f: (A) ⇒ B)(implicit ev: =:=[M, F[A]], monad: Monad[F], feq: FastEq[_ >: B]): NewR[F[B]]

    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
    ModelRO
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. def root: RootModelR[M]

    Returns the root model reader of this reader

    Returns the root model reader of this reader

    Definition Classes
    RootModelRModelR
  22. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  23. def toString(): String
    Definition Classes
    AnyRef → Any
  24. def updated(newValue: M): M

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

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

    Definition Classes
    BaseModelRWModelRW
  25. def updatedWith(model: M, value: M): M

    Updates the supplied model with the value provided and returns the updated model.

    Updates the supplied model with the value provided and returns the updated model.

    Definition Classes
    RootModelRWModelRW
  26. def value: M

    Returns the value of the reader

    Returns the value of the reader

    Definition Classes
    RootModelRBaseModelRModelRO
  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  30. def zip[SS](that: ModelR[M, SS])(implicit feqS: FastEq[_ >: M], feqSS: FastEq[_ >: SS]): ZipModelR[M, M, SS]

    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
    BaseModelRModelR
  31. def zoom[T](get: (M) ⇒ T)(implicit feq: FastEq[_ >: T]): ZoomModelR[M, T]

    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
    BaseModelRModelRO
  32. def zoomFlatMap[F[_], A, B](fa: (M) ⇒ F[A])(f: (A) ⇒ F[B])(implicit monad: Monad[F], feq: FastEq[_ >: B]): ModelR[M, F[B]]

    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
    BaseModelRModelRO
  33. def zoomFlatMapRW[F[_], A, B](fa: (M) ⇒ F[A])(f: (A) ⇒ F[B])(set: (M, F[B]) ⇒ M)(implicit monad: Monad[F], feq: FastEq[_ >: B]): FlatMapModelRW[F, M, A, B]

    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

    Definition Classes
    BaseModelRWModelRW
  34. def zoomMap[F[_], A, B](fa: (M) ⇒ F[A])(f: (A) ⇒ B)(implicit monad: Monad[F], feq: FastEq[_ >: B]): ModelR[M, F[B]]

    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
    BaseModelRModelRO
  35. def zoomMapRW[F[_], A, B](fa: (M) ⇒ F[A])(f: (A) ⇒ B)(set: (M, F[B]) ⇒ M)(implicit monad: Monad[F], feq: FastEq[_ >: B]): MapModelRW[F, M, A, B]

    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

    Definition Classes
    BaseModelRWModelRW
  36. def zoomRW[T](get: (M) ⇒ T)(set: (M, T) ⇒ M)(implicit feq: FastEq[_ >: T]): ZoomModelRW[M, T]

    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

    Definition Classes
    RootModelRWBaseModelRWModelRW
  37. macro def zoomTo[T](field: (M) ⇒ T): ModelRW[M, T]

    An easier way to zoom into a RW model by just specifying a single chained accessor for the field.

    An easier way to zoom into a RW model by just specifying a single chained accessor for the field. This works for cases like zoomTo(_.a.b.c) but not for more complex cases such as zoomTo(_.a.b(0)). Uses a macro to generate appropriate update function.

    field

    Field to access in the model

    Definition Classes
    ModelRW

Inherited from BaseModelRW[M, M]

Inherited from ModelRW[M, M]

Inherited from RootModelR[M]

Inherited from BaseModelR[M, M]

Inherited from ModelR[M, M]

Inherited from ModelRO[M]

Inherited from AnyRef

Inherited from Any

Ungrouped