ArrayExecutor

class ArrayExecutor(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

Array Executor

Constructors

ArrayExecutor
Link copied to clipboard
fun ArrayExecutor(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 Array Executor with runtime operations defined inside.

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
execute2DArrayMethodCall
Link copied to clipboard
fun execute2DArrayMethodCall(node: MethodCallNode, ds: Array2DValue): ExecValue
executeArrayElem
Link copied to clipboard
fun executeArrayElem(node: ArrayElemNode, identifier: AssignLHS, subtitleExpression: Boolean): ExecValue
executeArrayElemAssignment
Link copied to clipboard
fun executeArrayElemAssignment(arrayElemNode: ArrayElemNode, assignedValue: ExecValue): ExecValue
executeArrayMethodCall
Link copied to clipboard
fun executeArrayMethodCall(node: MethodCallNode, ds: ArrayValue): ExecValue
executeConstructor
Link copied to clipboard
open override fun executeConstructor(node: ConstructorNode, dsUID: String, assignLHS: AssignLHS): ExecValue
executeInternalArrayMethodCall
Link copied to clipboard
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.