Binary Tree Executor
class BinaryTreeExecutor(variables: MutableMap<String, ExecValue>, linearRepresentation: MutableList<ManimInstr>, frame: VirtualMachine.Frame, stylesheet: Stylesheet, animationSpeeds: ArrayDeque<Double>, dataStructureBoundaries: MutableMap<String, BoundaryShape>, variableNameGenerator: VariableNameGenerator, codeTextVariable: String, locallyCreatedDynamicVariables: MutableSet<String>) : DataStructureExecutor
Content copied to clipboard
Binary Tree Executor
Constructors
BinaryTreeExecutor
Link copied to clipboard
fun BinaryTreeExecutor(variables: MutableMap<String, ExecValue>, linearRepresentation: MutableList<ManimInstr>, frame: VirtualMachine.Frame, stylesheet: Stylesheet, animationSpeeds: ArrayDeque<Double>, dataStructureBoundaries: MutableMap<String, BoundaryShape>, variableNameGenerator: VariableNameGenerator, codeTextVariable: String, locallyCreatedDynamicVariables: MutableSet<String>)
Content copied to clipboard
Creates a new BinaryTreeExecutor with runtime operations defined inside for the binary tree.
Functions
executeConstructor
Link copied to clipboard
open override fun executeConstructor(node: ConstructorNode, dsUID: String, assignLHS: AssignLHS): ExecValue
Content copied to clipboard
executeRootAccess
Link copied to clipboard
fun executeRootAccess(binaryTreeRootAccessNode: BinaryTreeRootAccessNode): Pair<ExecValue, ExecValue>
Content copied to clipboard
executeTreeAccess
Link copied to clipboard
fun executeTreeAccess(rootNode: BinaryTreeNodeValue, elemAccessNode: BinaryTreeNodeElemAccessNode): Pair<ExecValue, ExecValue>
Content copied to clipboard
executeTreeAssignment
Link copied to clipboard
fun executeTreeAssignment(accessNode: BinaryTreeNodeAccess, assignedValue: ExecValue): ExecValue
Content copied to clipboard
Properties
animationSpeeds
Link copied to clipboard
codeTextVariable
Link copied to clipboard
dataStructureBoundaries
Link copied to clipboard
open override val dataStructureBoundaries: MutableMap<String, BoundaryShape>
Content copied to clipboard
frame
Link copied to clipboard
linearRepresentation
Link copied to clipboard
locallyCreatedDynamicVariables
Link copied to clipboard
stylesheet
Link copied to clipboard
variableNameGenerator
Link copied to clipboard
variables
Link copied to clipboard