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
- Alphabetic
- By Inheritance
- MemoisedBase
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
memo: Cache[AnyRef, AnyRef]
The memo table.
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
dup(t1: T, t2: T, u: U): Unit
Duplicate an entry if possible.
Duplicate an entry if possible. If
t1has a memoised value associated with it, set the value associated witht2to the same value. If there is no value associated witht1, set the value associated witht2tou. -
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
get(t: T): Option[U]
Return the value stored at key
tas an option. -
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
getWithDefault(t: T, u: U): U
Return the value stored at key
tif there is one, otherwise returnu. -
def
hasBeenComputedAt(t: T): Boolean
Has the value of this attribute at
talready been computed or not? By default, does the memo table contain a value fort? -
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
put(t: T, u: U): Unit
Store the value
uunder the keyt. -
def
putIfNotPresent(t: T, u: U): Unit
Store the value
uunder the keytiftdoes not already have an associated value. -
def
reset(): Unit
Immediately reset the memo table.
-
def
resetAt(t: T): Unit
Immediately reset the memo table at
t. -
def
resetIfRequested(): Unit
Check to see if a reset has been requested via the common memo version, and if so, do it.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )