Packages

  • package root
    Definition Classes
    root
  • package org
    Definition Classes
    root
  • package kiama

    Kiama is a Scala library for language processing.

    Kiama is a Scala library for language processing. It is a project of the Programming Languages Research Group at Macquarie University. For full project details see the web site http://kiama.googlecode.com.

    Kiama's main components address tree decoration via attribute grammars (package attribution), tree transformation via strategic term rewriting (package rewriting), dynamic semantics (package machine) and pretty-printing (package output).

    The util package contains support modules for parsing, input/output, read-eval-print loops (REPLs) and pattern matching.

    The examples package (available as part of the Kiama tests) contains many examples of using Kiama to solve small to medium language processing problems.

    Definition Classes
    org
  • package util
    Definition Classes
    kiama
  • trait Memoiser extends AnyRef

    Support for memoisation, encapsulating common behaviour of memoised entities and a general reset mechanism for all such entities.

    Support for memoisation, encapsulating common behaviour of memoised entities and a general reset mechanism for all such entities.

    Definition Classes
    util
  • IdMemoised
  • Memoised
  • MemoisedBase
t

org.kiama.util.Memoiser

MemoisedBase

trait MemoisedBase[T, U] extends AnyRef

Common interface for encapsulation of memoisation for a single memoised entity backed by a configurable cache.

Source
Memoiser.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MemoisedBase
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def memo: Cache[AnyRef, AnyRef]

    The memo table.

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def dup(t1: T, t2: T, u: U): Unit

    Duplicate an entry if possible.

    Duplicate an entry if possible. If t1 has a memoised value associated with it, set the value associated with t2 to the same value. If there is no value associated with t1, set the value associated with t2 to u.

  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. def get(t: T): Option[U]

    Return the value stored at key t as an option.

  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  12. def getWithDefault(t: T, u: U): U

    Return the value stored at key t if there is one, otherwise return u.

  13. def hasBeenComputedAt(t: T): Boolean

    Has the value of this attribute at t already been computed or not? By default, does the memo table contain a value for t?

  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  19. def put(t: T, u: U): Unit

    Store the value u under the key t.

  20. def putIfNotPresent(t: T, u: U): Unit

    Store the value u under the key t if t does not already have an associated value.

  21. def reset(): Unit

    Immediately reset the memo table.

  22. def resetAt(t: T): Unit

    Immediately reset the memo table at t.

  23. def resetIfRequested(): Unit

    Check to see if a reset has been requested via the common memo version, and if so, do it.

  24. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  25. def toString(): String
    Definition Classes
    AnyRef → Any
  26. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped