Object/Class

sigmastate.Values

ErgoTree

Related Docs: class ErgoTree | package Values

Permalink

object ErgoTree extends Serializable

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ErgoTree
  2. Serializable
  3. Serializable
  4. AnyRef
  5. 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. val ConstantSegregationFlag: Byte

    Permalink

    Header flag to indicate that constant segregation should be applied.

  5. val ConstantSegregationHeader: Byte

    Permalink

    Default header with constant segregation enabled.

  6. val DefaultHeader: Byte

    Permalink

    Default value of ErgoTree.header byte

  7. val EmptyConstants: IndexedSeq[Constant[SType]]

    Permalink
  8. val SizeFlag: Byte

    Permalink

    Header flag to indicate that whole size of ErgoTree should be saved before tree content.

  9. val VersionFlag: Byte

    Permalink

    Current version of ErgoTree serialization format (aka bite-code language version)

  10. val VersionMask: Byte

    Permalink

    Header mask to extract version bits.

  11. def apply(header: Byte, constants: IndexedSeq[Constant[SType]], root: SigmaPropValue): ErgoTree

    Permalink

    Create an ErgoTree with the given parameters.

  12. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. def fromProposition(headerFlags: Byte, prop: SigmaPropValue): ErgoTree

    Permalink

    Create new ErgoTree for the given proposition using the given header flags.

    Create new ErgoTree for the given proposition using the given header flags. If the property is not a simple constant, then constant segregation is performed.

  18. implicit def fromProposition(prop: SigmaPropValue): ErgoTree

    Permalink

    Create new ErgoTree for the given proposition using default header.

    Create new ErgoTree for the given proposition using default header. If the property is not a simple constant, then constant segregation is performed.

  19. def fromSigmaBoolean(headerFlags: Byte, pk: SigmaBoolean): ErgoTree

    Permalink

    Create new ErgoTree for the given sigma proposition using the given header flags and without performing constant segregation.

  20. implicit def fromSigmaBoolean(pk: SigmaBoolean): ErgoTree

    Permalink

    Create new ErgoTree for the given sigma proposition using default header and without performing constant segregation.

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

    Permalink
    Definition Classes
    AnyRef → Any
  22. final def getVersion(header: Byte): Byte

    Permalink

    returns

    a value of the version bits from the given header byte.

    Annotations
    @inline()
  23. final def hasSize(header: Byte): Boolean

    Permalink

    returns

    true if the size flag is set to 1 in the given header byte.

    Annotations
    @inline()
  24. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  25. def headerWithVersion(version: Byte): Byte

    Permalink

    Creates valid header byte with the given version.

    Creates valid header byte with the given version. The SizeFlag is set if version > 0

    Annotations
    @inline()
  26. final def isConstantSegregation(header: Byte): Boolean

    Permalink

    returns

    true if the constant segregation flag is set to 1 in the given header byte.

    Annotations
    @inline()
  27. final def isInstanceOf[T0]: Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef
  31. def substConstants(root: SValue, constants: IndexedSeq[Constant[SType]]): SValue

    Permalink

    Substitute ConstantPlaceholder nodes in the given expression with the constants taken from the given collection.

    Substitute ConstantPlaceholder nodes in the given expression with the constants taken from the given collection.

    root

    expression to transform

    constants

    collection of constants to replace placeholders

    returns

    new expression without placeholders

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  34. final def updateVersionBits(header: Byte, version: Byte): Byte

    Permalink

    Update the version bits of the given header byte with the given version value.

    Update the version bits of the given header byte with the given version value.

    Annotations
    @inline()
  35. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. def withSegregation(prop: SigmaPropValue): ErgoTree

    Permalink

    Create new ErgoTree for the given sigma proposition using default header and also performing constant segregation.

  39. def withSegregation(headerFlags: Byte, prop: SigmaPropValue): ErgoTree

    Permalink

    Build ErgoTree via serialization of the value with ConstantSegregationHeader, constants segregated from the tree and ConstantPlaceholders referring to the segregated constants.

    Build ErgoTree via serialization of the value with ConstantSegregationHeader, constants segregated from the tree and ConstantPlaceholders referring to the segregated constants.

    This method uses single traverse of the tree to: 1) find and segregate all constants; 2) replace constants with ConstantPlaceholders in the tree; 3) write the tree to the Writer's buffer obtaining treeBytes; 4) deserialize tree with ConstantPlaceholders.

    headerFlags

    additional header flags to combine with ConstantSegregationHeader flag.

    prop

    expression to be transformed into ErgoTree

  40. def withoutSegregation(headerFlags: Byte, root: SigmaPropValue): ErgoTree

    Permalink

    Create new ErgoTree for the given proposition using the given header flags and without performing constant segregation.

  41. def withoutSegregation(root: SigmaPropValue): ErgoTree

    Permalink

    Create new ErgoTree for the given proposition using the given header flags and without performing constant segregation.

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped