InitTreeStructure

data class InitTreeStructure(type: DataStructureType, ident: String, boundaries: List<Pair<Double, Double>>, maxSize: Int, text: String, root: BinaryTreeNodeValue, uid: String, runtime: Double, render: Boolean) : DataStructureMObject

Tree initialisation

Constructors

InitTreeStructure
Link copied to clipboard
fun InitTreeStructure(type: DataStructureType, ident: String, boundaries: List<Pair<Double, Double>> = emptyList(), maxSize: Int = -1, text: String, root: BinaryTreeNodeValue, uid: String, runtime: Double, render: Boolean)
Create empty Init tree structure

Functions

component1
Link copied to clipboard
operator fun component1(): DataStructureType
component2
Link copied to clipboard
operator fun component2(): String
component5
Link copied to clipboard
operator fun component5(): String
component6
Link copied to clipboard
operator fun component6(): BinaryTreeNodeValue
component7
Link copied to clipboard
operator fun component7(): String
component8
Link copied to clipboard
operator fun component8(): Double
component9
Link copied to clipboard
operator fun component9(): Boolean
copy
Link copied to clipboard
fun copy(type: DataStructureType, ident: String, boundaries: List<Pair<Double, Double>> = emptyList(), maxSize: Int = -1, text: String, root: BinaryTreeNodeValue, uid: String, runtime: Double, render: Boolean): InitTreeStructure
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
getConstructor
Link copied to clipboard
open override fun getConstructor(): String
getInstructionString
Link copied to clipboard
fun getInstructionString(instruction: String, spread: Boolean): String
Get instruction string to be played using Manim
getRuntimeString
Link copied to clipboard
fun getRuntimeString(): String
Get runtime string using runtime provided
hashCode
Link copied to clipboard
open override fun hashCode(): Int
setNewBoundary
Link copied to clipboard
open override fun setNewBoundary(corners: List<Pair<Double, Double>>, newMaxSize: Int)
toPython
Link copied to clipboard
open override fun toPython(): List<String>
Function for converting linear representation instruction to its corresponding Python instructions
toString
Link copied to clipboard
open override fun toString(): String

Properties

className
Link copied to clipboard
open override val className: String
classPath
Link copied to clipboard
open override val classPath: String
ident
Link copied to clipboard
open override val ident: String
pythonVariablePrefix
Link copied to clipboard
open override val pythonVariablePrefix: String
render
Link copied to clipboard
open override val render: Boolean
root
Link copied to clipboard
val root: BinaryTreeNodeValue
runtime
Link copied to clipboard
open override val runtime: Double
style
Link copied to clipboard
val style: PythonStyle
text
Link copied to clipboard
open override var text: String
type
Link copied to clipboard
open override val type: DataStructureType
uid
Link copied to clipboard
open override val uid: String