Class

diode

MapModelR

Related Doc: package diode

Permalink

class MapModelR[F[_], M, A, B] extends BaseModelR[M, F[B]] with MappedModelR[F, M, B]

Model reader for a mapped value

Linear Supertypes
MappedModelR[F, M, B], ValueRefEq, BaseModelR[M, F[B]], ModelR[M, F[B]], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. MapModelR
  2. MappedModelR
  3. ValueRefEq
  4. BaseModelR
  5. ModelR
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MapModelR(root: ModelR[M, M], get: (M) ⇒ F[A], f: (A) ⇒ B)(implicit monad: Monad[F], ct: ClassTag[B])

    Permalink

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(): F[B]

    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 chooseEq[A](ct: ClassTag[A]): (A, A) ⇒ Boolean

    Permalink

    Choose an equality function based on the type (AnyVal vs.

    Choose an equality function based on the type (AnyVal vs. AnyRef)

    ct

    ClassTag for the type

    Definition Classes
    ValueRefEq
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. implicit val ct: ClassTag[B]

    Permalink
    Definition Classes
    MapModelRMappedModelR
  9. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  11. def eval(model: M): F[B]

    Permalink

    Evaluates the reader against a supplied model

    Evaluates the reader against a supplied model

    Definition Classes
    BaseModelRModelR
  12. def finalize(): Unit

    Permalink
    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: =:=[F[B], 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
  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def getF(model: M): F[B]

    Permalink
    Attributes
    protected
    Definition Classes
    MappedModelR
  16. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  18. def map[F[_], A, B](f: (A) ⇒ B)(implicit ev: =:=[F[B], 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
  19. def mapValue: F[B]

    Permalink
    Attributes
    protected
    Definition Classes
    MapModelRMappedModelR
  20. implicit val monad: Monad[F]

    Permalink
    Definition Classes
    MapModelRMappedModelR
  21. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  24. def refEq[A](v1: A, v2: A): Boolean

    Permalink
    Definition Classes
    ValueRefEq
  25. val root: ModelR[M, M]

    Permalink
    Attributes
    protected
    Definition Classes
    MapModelRBaseModelR
  26. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  28. def value: F[B]

    Permalink

    Returns the value of the reader

    Returns the value of the reader

    Definition Classes
    BaseModelRModelR
  29. def valueEq[A](v1: A, v2: A): Boolean

    Permalink
    Definition Classes
    ValueRefEq
  30. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. def zip[SS](that: ModelR[M, SS])(implicit cts: ClassTag[F[B]], ctss: ClassTag[SS]): ZipModelR[M, F[B], 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
    BaseModelRModelR
  34. def zoom[T](get: (F[B]) ⇒ T): ZoomModelR[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
    BaseModelRModelR
  35. def zoomFlatMap[F[_], A, B](fa: (F[B]) ⇒ 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
    BaseModelRModelR
  36. def zoomMap[F[_], A, B](fa: (F[B]) ⇒ 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
    BaseModelRModelR

Inherited from MappedModelR[F, M, B]

Inherited from ValueRefEq

Inherited from BaseModelR[M, F[B]]

Inherited from ModelR[M, F[B]]

Inherited from AnyRef

Inherited from Any

Ungrouped