HashConsedRef

scalus.utils.HashConsedRef
See theHashConsedRef companion object
trait HashConsedRef[+A <: AnyRef]

When we read from the HashConsedRead.State, we can have forward references, which will be resolved after the whole structure is readed. Here, HashConsedRef can hold object ro Ref or object of some intermediate representation, which holds other refs.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class CachedTaggedRef[A]
class ConstRef[A]
class ForwardRef[A]
class MutRef[A]
class ListRepl[A, SA]
class StringMapRep[A, SA]
Show all

Members list

Value members

Abstract methods

def finValue(hashConsed: State, level: Int, parents: HSRIdentityHashMap): A

Should be called after the decoding of the whole structures.

Should be called after the decoding of the whole structures.

Attributes

Returns

valua of A

def isComplete(hashConsed: State): Boolean

Attributes

Returns

true if we have fully data object here and finValue can be called regradless of the state. used for optimization.

Concrete methods

def isForward: Boolean