Class/Object

epic.parser.projections

ProjectionIndexer

Related Docs: object ProjectionIndexer | package projections

Permalink

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()
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
Visibility
  1. Public
  2. All

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 andThen[A](g: (Int) ⇒ A): (Int) ⇒ A

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

    Permalink

    Same as project(f)

    Same as project(f)

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

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

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

    Permalink
  9. val coarseIndex: Index[C]

    Permalink
  10. def coarseSymbol(f: Int): C

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

    Permalink

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  15. val fineIndex: Index[F]

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

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  17. val globalRefinements: Array[Array[Int]]

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

    Permalink
  19. def globalize(c: Int, f: Int): Int

    Permalink
  20. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  21. def indexAndLocalize(f: F): (Int, Int)

    Permalink
  22. final def isInstanceOf[T0]: Boolean

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

    Permalink
  24. val localizationArray: Array[Int]

    Permalink
  25. def localize(f: F): (C, Int)

    Permalink
  26. def localize(f: Int): Int

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

    Permalink
  28. final def ne(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  30. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  31. def numRefinements(c: Int): Int

    Permalink
  32. val perSymbolRefinements: Array[Array[Int]]

    Permalink
  33. def project(f: F): C

    Permalink
  34. def project(f: Int): Int

    Permalink

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

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

    Permalink
  36. def refinementsOf(c: Int): Array[Int]

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

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

    Permalink
    Definition Classes
    ProjectionIndexer → Function1 → AnyRef → Any
  39. final def wait(arg0: Long, arg1: Int): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def wait(): Unit

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

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from Serializable

Inherited from Serializable

Inherited from (Int) ⇒ Int

Inherited from AnyRef

Inherited from Any

Ungrouped