Class

gopher.channels

FoldSelectorBuilderImpl

Related Doc: package channels

Permalink

class FoldSelectorBuilderImpl extends AnyRef

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FoldSelectorBuilderImpl
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new FoldSelectorBuilderImpl(c: Context)

    Permalink

Type Members

  1. case class FoldParse(stateVal: scala.reflect.macros.Universe.ValDef, projections: List[scala.reflect.macros.blackbox.Context.Symbol], selectValName: scala.reflect.macros.blackbox.Context.TermName, selectCases: List[scala.reflect.macros.Universe.CaseDef]) extends Product with Serializable

    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 afold[S](s: scala.reflect.macros.blackbox.Context.Expr[S])(op: scala.reflect.macros.blackbox.Context.Expr[(S, FoldSelect[S]) ⇒ S])(implicit arg0: scala.reflect.macros.blackbox.Context.WeakTypeTag[S]): scala.reflect.macros.blackbox.Context.Expr[Future[S]]

    Permalink

    selector.afold(s0) { (s, selector) => selector.match { case x1: in1.read => f1 case x2: in2.read => f2 case x3: out3.write if (x3==v) => f3 case _ => f4 } } will be transformed to

    selector.afold(s0) { (s, selector) => selector.match { case x1: in1.read => f1 case x2: in2.read => f2 case x3: out3.write if (x3==v) => f3 case _ => f4 } } will be transformed to

    var s = s0
    val bn = new FoldSelector
    bn.reading(in1)(x1 => f1 map {s=_; s; writeBarrier})
    bn.reading(in2)(x2 => f2 map {s=_; s; writeBarrier})
    bn.writing(out3,v)(x2 => f2 map {s=_; s})
    bn.idle(f4 map {s=_; s})

    also supported partial function syntax:

    selector.afold((0,1)){
       case ((x,y),s) => s match {
         case x1: in1.read => f1
         case x2: in2.read => f2
         case x3: out3.write if (x3==v) => f3
         case _  => f4
       }

    will be transformed to:

    var s = s0
    val bn = new FoldSelector
    bn.reading(in1)(x1 => async{ val x = s._1;
                                 val y = s._2;
                                 s = f1; writeBarrier; s} })
    bn.reading(in2)(x2 => { val x = s._1;
                            val y = s._2;
                            s=f2; s} })
    bn.writing(out3,v[x/s._1;y/s._2])
                        (x2 => s=f2; s})
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. val c: Context

    Permalink
  7. def clone(): AnyRef

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

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. def fold[S](s: scala.reflect.macros.blackbox.Context.Expr[S])(op: scala.reflect.macros.blackbox.Context.Expr[(S, FoldSelect[S]) ⇒ S])(implicit arg0: scala.reflect.macros.blackbox.Context.WeakTypeTag[S]): scala.reflect.macros.blackbox.Context.Expr[S]

    Permalink
  12. final def getClass(): Class[_]

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

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

    Permalink
    Definition Classes
    Any
  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. def parseFold[S](op: scala.reflect.macros.blackbox.Context.Expr[(S, FoldSelect[S]) ⇒ S]): FoldParse

    Permalink
  19. def preTransformCaseDef(fp: FoldParse, cd: scala.reflect.macros.Universe.CaseDef): scala.reflect.macros.Universe.CaseDef

    Permalink
  20. def preTransformCaseDefBody(fp: FoldParse, patSymbol: scala.reflect.macros.Universe.Symbol, body: scala.reflect.macros.blackbox.Context.Tree): scala.reflect.macros.blackbox.Context.Tree

    Permalink
  21. def substProj(projections: List[scala.reflect.macros.blackbox.Context.Symbol], stateSymbol: scala.reflect.macros.blackbox.Context.Symbol, body: scala.reflect.macros.blackbox.Context.Tree): scala.reflect.macros.blackbox.Context.Tree

    Permalink
  22. def substProj(fp: FoldParse, body: scala.reflect.macros.blackbox.Context.Tree): scala.reflect.macros.blackbox.Context.Tree

    Permalink
  23. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  25. def transformSelectMatch(bn: scala.reflect.macros.Universe.TermName, cases: List[scala.reflect.macros.Universe.CaseDef]): List[scala.reflect.macros.Universe.Tree]

    Permalink
  26. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. def withProjAssignments(fp: FoldParse, patSymbol: scala.reflect.macros.Universe.Symbol, body: scala.reflect.macros.blackbox.Context.Tree): scala.reflect.macros.blackbox.Context.Tree

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped