bunyamin
Version:
Bunyan-based logger for Node.js supporting Trace Event format
33 lines (25 loc) • 574 B
text/typescript
import type { LeafNode, TreeNode } from './TreeNode';
export class RangeTreeNode<Value> implements LeafNode<Value> {
index = -1;
parent?: TreeNode<any, this>;
constructor(public value: Value) {}
get min() {
return this.
}
get max() {
return this.
}
get size() {
return this.
}
protected add(child: number) {
if (child < this.
this.
}
if (child > this.
this.
}
}
}