epic.parser.projections

ProjectionIndexer

final class ProjectionIndexer[C, F] extends (Int) ⇒ Int with Serializable

For computing projections from a fine grammar to a coarse grammar.

There are two indexes maintained for the fine symbols: a globally unique id, and a local per-symbol id (in the range 0...numRefinements(coarseSym).

Yuck.

Annotations
@SerialVersionUID( 1 )
Linear Supertypes
Serializable, Serializable, (Int) ⇒ Int, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ProjectionIndexer
  2. Serializable
  3. Serializable
  4. Function1
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def andThen[A](g: (Int) ⇒ A): (Int) ⇒ A

    Definition Classes
    Function1
    Annotations
    @unspecialized()
  7. def apply(f: Int): Int

    Same as project(f)

    Same as project(f)

    Definition Classes
    ProjectionIndexer → Function1
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. val coarseEncoder: Encoder[C]

  11. val coarseIndex: Index[C]

  12. def coarseSymbol(f: Int): C

  13. def compose[F2](finerProjections: ProjectionIndexer[F, F2]): ProjectionIndexer[C, F2]

    From a PI[C, F] and a PI[F, F2], makes a PI[C, F2]

  14. def compose[A](g: (A) ⇒ Int): (A) ⇒ Int

    Definition Classes
    Function1
    Annotations
    @unspecialized()
  15. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. val fineIndex: Index[F]

  19. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  20. val globalRefinements: Array[Array[Int]]

  21. def globalize(c: C, f: Int): F

  22. def globalize(c: Int, f: Int): Int

  23. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  24. def indexAndLocalize(f: F): (Int, Int)

  25. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  26. def localRefinements(c: Int): Array[Int]

  27. val localizationArray: Array[Int]

  28. def localize(f: F): (C, Int)

  29. def localize(f: Int): Int

  30. def localizeArray[T](array: Array[T])(implicit arg0: ClassTag[T]): Array[Array[T]]

  31. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  32. final def notify(): Unit

    Definition Classes
    AnyRef
  33. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  34. def numRefinements(c: Int): Int

  35. val perSymbolRefinements: Array[Array[Int]]

  36. def project(f: F): C

  37. def project(f: Int): Int

    Computes the projection of the indexed fine label f to an indexed coarse label.

  38. def refinementsOf(c: C): IndexedSeq[F]

  39. def refinementsOf(c: Int): Array[Int]

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

    Definition Classes
    AnyRef
  41. def toString(): String

    Definition Classes
    ProjectionIndexer → Function1 → AnyRef → Any
  42. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from (Int) ⇒ Int

Inherited from AnyRef

Inherited from Any

Ungrouped