BinaryTreeNodeValue

data class BinaryTreeNodeValue(left: ITreeNodeValue, right: ITreeNodeValue, value: PrimitiveValue, manimObject: MObject, binaryTreeValue: BinaryTreeValue?, pathFromRoot: String, depth: Int) : ITreeNodeValue

Binary Tree Node Execution Value

Constructors

BinaryTreeNodeValue
Link copied to clipboard
fun BinaryTreeNodeValue(left: ITreeNodeValue = NullValue, right: ITreeNodeValue = NullValue, value: PrimitiveValue, manimObject: MObject = EmptyMObject, binaryTreeValue: BinaryTreeValue? = null, pathFromRoot: String = "", depth: Int)
: Creates a new Binary Tree Node Execution Value.

Functions

attachTree
Link copied to clipboard
fun attachTree(tree: BinaryTreeValue, prefix: String = "${tree.manimObject.ident}.root")
clone
Link copied to clipboard
open override fun clone(): ExecValue
compareTo
Link copied to clipboard
operator fun compareTo(other: Any): Int
'==','!
component1
Link copied to clipboard
operator fun component1(): ITreeNodeValue
component2
Link copied to clipboard
operator fun component2(): ITreeNodeValue
component3
Link copied to clipboard
operator fun component3(): PrimitiveValue
component4
Link copied to clipboard
operator fun component4(): MObject
component5
Link copied to clipboard
operator fun component5(): BinaryTreeValue?
component6
Link copied to clipboard
operator fun component6(): String
component7
Link copied to clipboard
operator fun component7(): Int
copy
Link copied to clipboard
fun copy(left: ITreeNodeValue = NullValue, right: ITreeNodeValue = NullValue, value: PrimitiveValue, manimObject: MObject = EmptyMObject, binaryTreeValue: BinaryTreeValue? = null, pathFromRoot: String = "", depth: Int): BinaryTreeNodeValue
div
Link copied to clipboard
operator fun div(other: ExecValue): ExecValue
'/'
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
minus
Link copied to clipboard
operator fun minus(other: ExecValue): ExecValue
'-'
nodeCount
Link copied to clipboard
open override fun nodeCount(): Int
not
Link copied to clipboard
operator fun not(): Boolean
'!
plus
Link copied to clipboard
operator fun plus(other: ExecValue): ExecValue
'+'
times
Link copied to clipboard
operator fun times(other: ExecValue): ExecValue
'*'
toInterpolatedString
Link copied to clipboard
open fun toInterpolatedString(): String
toString
Link copied to clipboard
open override fun toString(): String

Properties

binaryTreeValue
Link copied to clipboard
var binaryTreeValue: BinaryTreeValue? = null
: Tree node is attached to.
depth
Link copied to clipboard
var depth: Int
: Depth of node in tree.
left
Link copied to clipboard
var left: ITreeNodeValue
: Left ITreeNodeValue child.
manimObject
Link copied to clipboard
open override var manimObject: MObject
: Manim Object corresponded to by the BinaryTreeNodeValue.
name
Link copied to clipboard
open override val name: String
: String name of value.
pathFromRoot
Link copied to clipboard
var pathFromRoot: String
: String path from root.
right
Link copied to clipboard
var right: ITreeNodeValue
: Right ITreeNodeValue child.
value
Link copied to clipboard
open override val value: PrimitiveValue
: Current primitive value held by node.