Lines Matching refs:function
37 function SplayTree() {
53 SplayTree.prototype.isEmpty = function() {
67 SplayTree.prototype.insert = function(key, value) {
100 SplayTree.prototype.remove = function(key) {
131 SplayTree.prototype.find = function(key) {
143 SplayTree.prototype.findMin = function() {
158 SplayTree.prototype.findMax = function(opt_startNode) {
174 SplayTree.prototype.findGreatestLessThan = function(key) {
197 SplayTree.prototype.exportKeysAndValues = function() {
199 this.traverse_(function(node) { result.push([node.key, node.value]); });
207 SplayTree.prototype.exportValues = function() {
209 this.traverse_(function(node) { result.push(node.value); });
224 SplayTree.prototype.splay_ = function(key) {
289 * @param {function(SplayTree.Node)} f Visitor function.
292 SplayTree.prototype.traverse_ = function(f) {
312 SplayTree.Node = function(key, value) {