BinaryTreeExecutor

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

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>)
Creates a new BinaryTreeExecutor with runtime operations defined inside for the binary tree.

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
executeConstructor
Link copied to clipboard
open override fun executeConstructor(node: ConstructorNode, dsUID: String, assignLHS: AssignLHS): ExecValue
executeRootAccess
Link copied to clipboard
fun executeRootAccess(binaryTreeRootAccessNode: BinaryTreeRootAccessNode): Pair<ExecValue, ExecValue>
executeTreeAccess
Link copied to clipboard
fun executeTreeAccess(rootNode: BinaryTreeNodeValue, elemAccessNode: BinaryTreeNodeElemAccessNode): Pair<ExecValue, ExecValue>
executeTreeAssignment
Link copied to clipboard
fun executeTreeAssignment(accessNode: BinaryTreeNodeAccess, assignedValue: ExecValue): ExecValue
hashCode
Link copied to clipboard
open fun hashCode(): Int
toString
Link copied to clipboard
open fun toString(): String

Properties

animationSpeeds
Link copied to clipboard
open override val animationSpeeds: ArrayDeque<Double>
: Animation speeds deque maintaining speeds at different points of execution.
codeTextVariable
Link copied to clipboard
open override val codeTextVariable: String
: Python identifier of code block.
dataStructureBoundaries
Link copied to clipboard
open override val dataStructureBoundaries: MutableMap<String, BoundaryShape>
: Map from data structure identifier it's shape boundary.
frame
Link copied to clipboard
open override val frame: VirtualMachine.Frame
: Frame executor is in.
linearRepresentation
Link copied to clipboard
open override val linearRepresentation: MutableList<ManimInstr>
: Reference to linear representation list being constructed.
locallyCreatedDynamicVariables
Link copied to clipboard
open override val locallyCreatedDynamicVariables: MutableSet<String>
stylesheet
Link copied to clipboard
open override val stylesheet: Stylesheet
: Stylesheet object provided by user for styling.
variableNameGenerator
Link copied to clipboard
open override val variableNameGenerator: VariableNameGenerator
: Top level VariableNameGenerator.
variables
Link copied to clipboard
open override val variables: MutableMap<String, ExecValue>
: Map from identifier of a variable in frame to its current execution value.