a:28:{s:9:"#provides";s:28:"dojox.collections.SortedList";s:9:"#resource";s:25:"collections/SortedList.js";s:9:"#requires";a:1:{i:0;a:2:{i:0;s:6:"common";i:1;s:23:"dojox.collections._base";}}s:28:"dojox.collections.SortedList";a:6:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:10:"dictionary";a:2:{s:8:"optional";b:1;s:4:"type";s:6:"object";}}s:6:"source";s:4864:"dojo.provide("dojox.collections.SortedList"); dojo.require("dojox.collections._base"); dojox.collections.SortedList=function(/* object? */ dictionary){ // summary // creates a collection that acts like a dictionary but is also internally sorted. // Note that the act of adding any elements forces an internal resort, making this object potentially slow. var _this=this; var items={}; var q=[]; var sorter=function(a,b){ if (a.key > b.key) return 1; if (a.key < b.key) return -1; return 0; }; var build=function(){ q=[]; var e=_this.getIterator(); while (!e.atEnd()){ q.push(e.get()); } q.sort(sorter); }; var testObject={}; this.count=q.length; this.add=function(/* string */ k,/* object */v){ // summary // add the passed value to the dictionary at location k if (!items[k]) { items[k]=new dojox.collections.DictionaryEntry(k,v); this.count=q.push(items[k]); q.sort(sorter); } }; this.clear=function(){ // summary // clear the internal collections items={}; q=[]; this.count=q.length; }; this.clone=function(){ // summary // create a clone of this sorted list return new dojox.collections.SortedList(this); // dojox.collections.SortedList }; this.contains=this.containsKey=function(/* string */ k){ // summary // Check to see if the list has a location k if(testObject[k]){ return false; // bool } return (items[k]!=null); // bool }; this.containsValue=function(/* object */ o){ // summary // Check to see if this list contains the passed object var e=this.getIterator(); while (!e.atEnd()){ var item=e.get(); if(item.value==o){ return true; // bool } } return false; // bool }; this.copyTo=function(/* array */ arr, /* int */ i){ // summary // copy the contents of the list into array arr at index i var e=this.getIterator(); var idx=i; while(!e.atEnd()){ arr.splice(idx,0,e.get()); idx++; } }; this.entry=function(/* string */ k){ // summary // return the object at location k return items[k]; // dojox.collections.DictionaryEntry }; this.forEach=function(/* function */ fn, /* object? */ scope){ // summary // functional iterator, following the mozilla spec. dojo.forEach(q, fn, scope); }; this.getByIndex=function(/* int */ i){ // summary // return the item at index i return q[i].valueOf(); // object }; this.getIterator=function(){ // summary // get an iterator for this object return new dojox.collections.DictionaryIterator(items); // dojox.collections.DictionaryIterator }; this.getKey=function(/* int */ i){ // summary // return the key of the item at index i return q[i].key; }; this.getKeyList=function(){ // summary // return an array of the keys set in this list var arr=[]; var e=this.getIterator(); while (!e.atEnd()){ arr.push(e.get().key); } return arr; // array }; this.getValueList=function(){ // summary // return an array of values in this list var arr=[]; var e=this.getIterator(); while (!e.atEnd()){ arr.push(e.get().value); } return arr; // array }; this.indexOfKey=function(/* string */ k){ // summary // return the index of the passed key. for (var i=0; i b.key) return 1; if (a.key < b.key) return -1; return 0; }; var build=function(){ q=[]; var e=_this.getIterator(); while (!e.atEnd()){ q.push(e.get()); } q.sort(sorter); }; var testObject={}; this.count=q.length; this.add=function(/* string */ k,/* object */v){ // summary // add the passed value to the dictionary at location k if (!items[k]) { items[k]=new dojox.collections.DictionaryEntry(k,v); this.count=q.push(items[k]); q.sort(sorter); }";s:8:"instance";s:28:"dojox.collections.SortedList";s:7:"summary";s:0:"";}s:34:"dojox.collections.SortedList.clear";a:4:{s:4:"type";s:8:"Function";s:6:"source";s:1050:"dojo.provide("dojox.collections.SortedList"); dojo.require("dojox.collections._base"); dojox.collections.SortedList=function(/* object? */ dictionary){ // summary // creates a collection that acts like a dictionary but is also internally sorted. // Note that the act of adding any elements forces an internal resort, making this object potentially slow. var _this=this; var items={}; var q=[]; var sorter=function(a,b){ if (a.key > b.key) return 1; if (a.key < b.key) return -1; return 0; }; var build=function(){ q=[]; var e=_this.getIterator(); while (!e.atEnd()){ q.push(e.get()); } q.sort(sorter); }; var testObject={}; this.count=q.length; this.add=function(/* string */ k,/* object */v){ // summary // add the passed value to the dictionary at location k if (!items[k]) { items[k]=new dojox.collections.DictionaryEntry(k,v); this.count=q.push(items[k]); q.sort(sorter); } }; this.clear=function(){ // summary // clear the internal collections items={}; q=[]; this.count=q.length;";s:8:"instance";s:28:"dojox.collections.SortedList";s:7:"summary";s:0:"";}s:34:"dojox.collections.SortedList.clone";a:5:{s:4:"type";s:8:"Function";s:6:"source";s:1212:"dojo.provide("dojox.collections.SortedList"); dojo.require("dojox.collections._base"); dojox.collections.SortedList=function(/* object? */ dictionary){ // summary // creates a collection that acts like a dictionary but is also internally sorted. // Note that the act of adding any elements forces an internal resort, making this object potentially slow. var _this=this; var items={}; var q=[]; var sorter=function(a,b){ if (a.key > b.key) return 1; if (a.key < b.key) return -1; return 0; }; var build=function(){ q=[]; var e=_this.getIterator(); while (!e.atEnd()){ q.push(e.get()); } q.sort(sorter); }; var testObject={}; this.count=q.length; this.add=function(/* string */ k,/* object */v){ // summary // add the passed value to the dictionary at location k if (!items[k]) { items[k]=new dojox.collections.DictionaryEntry(k,v); this.count=q.push(items[k]); q.sort(sorter); } }; this.clear=function(){ // summary // clear the internal collections items={}; q=[]; this.count=q.length; }; this.clone=function(){ // summary // create a clone of this sorted list return new dojox.collections.SortedList(this); // dojox.collections.SortedList";s:7:"returns";s:28:"dojox.collections.SortedList";s:8:"instance";s:28:"dojox.collections.SortedList";s:7:"summary";s:0:"";}s:40:"dojox.collections.SortedList.containsKey";a:6:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:1:"k";a:1:{s:4:"type";s:6:"string";}}s:6:"source";s:1421:"dojo.provide("dojox.collections.SortedList"); dojo.require("dojox.collections._base"); dojox.collections.SortedList=function(/* object? */ dictionary){ // summary // creates a collection that acts like a dictionary but is also internally sorted. // Note that the act of adding any elements forces an internal resort, making this object potentially slow. var _this=this; var items={}; var q=[]; var sorter=function(a,b){ if (a.key > b.key) return 1; if (a.key < b.key) return -1; return 0; }; var build=function(){ q=[]; var e=_this.getIterator(); while (!e.atEnd()){ q.push(e.get()); } q.sort(sorter); }; var testObject={}; this.count=q.length; this.add=function(/* string */ k,/* object */v){ // summary // add the passed value to the dictionary at location k if (!items[k]) { items[k]=new dojox.collections.DictionaryEntry(k,v); this.count=q.push(items[k]); q.sort(sorter); } }; this.clear=function(){ // summary // clear the internal collections items={}; q=[]; this.count=q.length; }; this.clone=function(){ // summary // create a clone of this sorted list return new dojox.collections.SortedList(this); // dojox.collections.SortedList }; this.contains=this.containsKey=function(/* string */ k){ // summary // Check to see if the list has a location k if(testObject[k]){ return false; // bool } return (items[k]!=null); // bool";s:7:"returns";s:33:"dojox.collections.SortedList|bool";s:8:"instance";s:28:"dojox.collections.SortedList";s:7:"summary";s:0:"";}s:42:"dojox.collections.SortedList.containsValue";a:6:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:1:"o";a:1:{s:4:"type";s:6:"object";}}s:6:"source";s:1694:"dojo.provide("dojox.collections.SortedList"); dojo.require("dojox.collections._base"); dojox.collections.SortedList=function(/* object? */ dictionary){ // summary // creates a collection that acts like a dictionary but is also internally sorted. // Note that the act of adding any elements forces an internal resort, making this object potentially slow. var _this=this; var items={}; var q=[]; var sorter=function(a,b){ if (a.key > b.key) return 1; if (a.key < b.key) return -1; return 0; }; var build=function(){ q=[]; var e=_this.getIterator(); while (!e.atEnd()){ q.push(e.get()); } q.sort(sorter); }; var testObject={}; this.count=q.length; this.add=function(/* string */ k,/* object */v){ // summary // add the passed value to the dictionary at location k if (!items[k]) { items[k]=new dojox.collections.DictionaryEntry(k,v); this.count=q.push(items[k]); q.sort(sorter); } }; this.clear=function(){ // summary // clear the internal collections items={}; q=[]; this.count=q.length; }; this.clone=function(){ // summary // create a clone of this sorted list return new dojox.collections.SortedList(this); // dojox.collections.SortedList }; this.contains=this.containsKey=function(/* string */ k){ // summary // Check to see if the list has a location k if(testObject[k]){ return false; // bool } return (items[k]!=null); // bool }; this.containsValue=function(/* object */ o){ // summary // Check to see if this list contains the passed object var e=this.getIterator(); while (!e.atEnd()){ var item=e.get(); if(item.value==o){ return true; // bool } } return false; // bool";s:7:"returns";s:33:"dojox.collections.SortedList|bool";s:8:"instance";s:28:"dojox.collections.SortedList";s:7:"summary";s:0:"";}s:35:"dojox.collections.SortedList.copyTo";a:6:{s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:3:"arr";a:1:{s:4:"type";s:5:"array";}s:1:"i";a:1:{s:4:"type";s:3:"int";}}s:6:"source";s:1931:"dojo.provide("dojox.collections.SortedList"); dojo.require("dojox.collections._base"); dojox.collections.SortedList=function(/* object? */ dictionary){ // summary // creates a collection that acts like a dictionary but is also internally sorted. // Note that the act of adding any elements forces an internal resort, making this object potentially slow. var _this=this; var items={}; var q=[]; var sorter=function(a,b){ if (a.key > b.key) return 1; if (a.key < b.key) return -1; return 0; }; var build=function(){ q=[]; var e=_this.getIterator(); while (!e.atEnd()){ q.push(e.get()); } q.sort(sorter); }; var testObject={}; this.count=q.length; this.add=function(/* string */ k,/* object */v){ // summary // add the passed value to the dictionary at location k if (!items[k]) { items[k]=new dojox.collections.DictionaryEntry(k,v); this.count=q.push(items[k]); q.sort(sorter); } }; this.clear=function(){ // summary // clear the internal collections items={}; q=[]; this.count=q.length; }; this.clone=function(){ // summary // create a clone of this sorted list return new dojox.collections.SortedList(this); // dojox.collections.SortedList }; this.contains=this.containsKey=function(/* string */ k){ // summary // Check to see if the list has a location k if(testObject[k]){ return false; // bool } return (items[k]!=null); // bool }; this.containsValue=function(/* object */ o){ // summary // Check to see if this list contains the passed object var e=this.getIterator(); while (!e.atEnd()){ var item=e.get(); if(item.value==o){ return true; // bool } } return false; // bool }; this.copyTo=function(/* array */ arr, /* int */ i){ // summary // copy the contents of the list into array arr at index i var e=this.getIterator(); var idx=i; while(!e.atEnd()){ arr.splice(idx,0,e.get()); idx++; }";s:7:"returns";s:33:"dojox.collections.SortedList|bool";s:8:"instance";s:28:"dojox.collections.SortedList";s:7:"summary";s:0:"";}s:34:"dojox.collections.SortedList.entry";a:6:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:1:"k";a:1:{s:4:"type";s:6:"string";}}s:6:"source";s:2079:"dojo.provide("dojox.collections.SortedList"); dojo.require("dojox.collections._base"); dojox.collections.SortedList=function(/* object? */ dictionary){ // summary // creates a collection that acts like a dictionary but is also internally sorted. // Note that the act of adding any elements forces an internal resort, making this object potentially slow. var _this=this; var items={}; var q=[]; var sorter=function(a,b){ if (a.key > b.key) return 1; if (a.key < b.key) return -1; return 0; }; var build=function(){ q=[]; var e=_this.getIterator(); while (!e.atEnd()){ q.push(e.get()); } q.sort(sorter); }; var testObject={}; this.count=q.length; this.add=function(/* string */ k,/* object */v){ // summary // add the passed value to the dictionary at location k if (!items[k]) { items[k]=new dojox.collections.DictionaryEntry(k,v); this.count=q.push(items[k]); q.sort(sorter); } }; this.clear=function(){ // summary // clear the internal collections items={}; q=[]; this.count=q.length; }; this.clone=function(){ // summary // create a clone of this sorted list return new dojox.collections.SortedList(this); // dojox.collections.SortedList }; this.contains=this.containsKey=function(/* string */ k){ // summary // Check to see if the list has a location k if(testObject[k]){ return false; // bool } return (items[k]!=null); // bool }; this.containsValue=function(/* object */ o){ // summary // Check to see if this list contains the passed object var e=this.getIterator(); while (!e.atEnd()){ var item=e.get(); if(item.value==o){ return true; // bool } } return false; // bool }; this.copyTo=function(/* array */ arr, /* int */ i){ // summary // copy the contents of the list into array arr at index i var e=this.getIterator(); var idx=i; while(!e.atEnd()){ arr.splice(idx,0,e.get()); idx++; } }; this.entry=function(/* string */ k){ // summary // return the object at location k return items[k]; // dojox.collections.DictionaryEntry";s:7:"returns";s:67:"dojox.collections.SortedList|bool|dojox.collections.DictionaryEntry";s:8:"instance";s:28:"dojox.collections.SortedList";s:7:"summary";s:0:"";}s:36:"dojox.collections.SortedList.forEach";a:6:{s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:2:"fn";a:1:{s:4:"type";s:8:"function";}s:5:"scope";a:2:{s:8:"optional";b:1;s:4:"type";s:6:"object";}}s:6:"source";s:2244:"dojo.provide("dojox.collections.SortedList"); dojo.require("dojox.collections._base"); dojox.collections.SortedList=function(/* object? */ dictionary){ // summary // creates a collection that acts like a dictionary but is also internally sorted. // Note that the act of adding any elements forces an internal resort, making this object potentially slow. var _this=this; var items={}; var q=[]; var sorter=function(a,b){ if (a.key > b.key) return 1; if (a.key < b.key) return -1; return 0; }; var build=function(){ q=[]; var e=_this.getIterator(); while (!e.atEnd()){ q.push(e.get()); } q.sort(sorter); }; var testObject={}; this.count=q.length; this.add=function(/* string */ k,/* object */v){ // summary // add the passed value to the dictionary at location k if (!items[k]) { items[k]=new dojox.collections.DictionaryEntry(k,v); this.count=q.push(items[k]); q.sort(sorter); } }; this.clear=function(){ // summary // clear the internal collections items={}; q=[]; this.count=q.length; }; this.clone=function(){ // summary // create a clone of this sorted list return new dojox.collections.SortedList(this); // dojox.collections.SortedList }; this.contains=this.containsKey=function(/* string */ k){ // summary // Check to see if the list has a location k if(testObject[k]){ return false; // bool } return (items[k]!=null); // bool }; this.containsValue=function(/* object */ o){ // summary // Check to see if this list contains the passed object var e=this.getIterator(); while (!e.atEnd()){ var item=e.get(); if(item.value==o){ return true; // bool } } return false; // bool }; this.copyTo=function(/* array */ arr, /* int */ i){ // summary // copy the contents of the list into array arr at index i var e=this.getIterator(); var idx=i; while(!e.atEnd()){ arr.splice(idx,0,e.get()); idx++; } }; this.entry=function(/* string */ k){ // summary // return the object at location k return items[k]; // dojox.collections.DictionaryEntry }; this.forEach=function(/* function */ fn, /* object? */ scope){ // summary // functional iterator, following the mozilla spec. dojo.forEach(q, fn, scope);";s:7:"returns";s:67:"dojox.collections.SortedList|bool|dojox.collections.DictionaryEntry";s:8:"instance";s:28:"dojox.collections.SortedList";s:7:"summary";s:0:"";}s:39:"dojox.collections.SortedList.getByIndex";a:6:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:1:"i";a:1:{s:4:"type";s:3:"int";}}s:6:"source";s:2368:"dojo.provide("dojox.collections.SortedList"); dojo.require("dojox.collections._base"); dojox.collections.SortedList=function(/* object? */ dictionary){ // summary // creates a collection that acts like a dictionary but is also internally sorted. // Note that the act of adding any elements forces an internal resort, making this object potentially slow. var _this=this; var items={}; var q=[]; var sorter=function(a,b){ if (a.key > b.key) return 1; if (a.key < b.key) return -1; return 0; }; var build=function(){ q=[]; var e=_this.getIterator(); while (!e.atEnd()){ q.push(e.get()); } q.sort(sorter); }; var testObject={}; this.count=q.length; this.add=function(/* string */ k,/* object */v){ // summary // add the passed value to the dictionary at location k if (!items[k]) { items[k]=new dojox.collections.DictionaryEntry(k,v); this.count=q.push(items[k]); q.sort(sorter); } }; this.clear=function(){ // summary // clear the internal collections items={}; q=[]; this.count=q.length; }; this.clone=function(){ // summary // create a clone of this sorted list return new dojox.collections.SortedList(this); // dojox.collections.SortedList }; this.contains=this.containsKey=function(/* string */ k){ // summary // Check to see if the list has a location k if(testObject[k]){ return false; // bool } return (items[k]!=null); // bool }; this.containsValue=function(/* object */ o){ // summary // Check to see if this list contains the passed object var e=this.getIterator(); while (!e.atEnd()){ var item=e.get(); if(item.value==o){ return true; // bool } } return false; // bool }; this.copyTo=function(/* array */ arr, /* int */ i){ // summary // copy the contents of the list into array arr at index i var e=this.getIterator(); var idx=i; while(!e.atEnd()){ arr.splice(idx,0,e.get()); idx++; } }; this.entry=function(/* string */ k){ // summary // return the object at location k return items[k]; // dojox.collections.DictionaryEntry }; this.forEach=function(/* function */ fn, /* object? */ scope){ // summary // functional iterator, following the mozilla spec. dojo.forEach(q, fn, scope); }; this.getByIndex=function(/* int */ i){ // summary // return the item at index i return q[i].valueOf(); // object";s:7:"returns";s:74:"dojox.collections.SortedList|bool|dojox.collections.DictionaryEntry|object";s:8:"instance";s:28:"dojox.collections.SortedList";s:7:"summary";s:0:"";}s:40:"dojox.collections.SortedList.getIterator";a:5:{s:4:"type";s:8:"Function";s:6:"source";s:2550:"dojo.provide("dojox.collections.SortedList"); dojo.require("dojox.collections._base"); dojox.collections.SortedList=function(/* object? */ dictionary){ // summary // creates a collection that acts like a dictionary but is also internally sorted. // Note that the act of adding any elements forces an internal resort, making this object potentially slow. var _this=this; var items={}; var q=[]; var sorter=function(a,b){ if (a.key > b.key) return 1; if (a.key < b.key) return -1; return 0; }; var build=function(){ q=[]; var e=_this.getIterator(); while (!e.atEnd()){ q.push(e.get()); } q.sort(sorter); }; var testObject={}; this.count=q.length; this.add=function(/* string */ k,/* object */v){ // summary // add the passed value to the dictionary at location k if (!items[k]) { items[k]=new dojox.collections.DictionaryEntry(k,v); this.count=q.push(items[k]); q.sort(sorter); } }; this.clear=function(){ // summary // clear the internal collections items={}; q=[]; this.count=q.length; }; this.clone=function(){ // summary // create a clone of this sorted list return new dojox.collections.SortedList(this); // dojox.collections.SortedList }; this.contains=this.containsKey=function(/* string */ k){ // summary // Check to see if the list has a location k if(testObject[k]){ return false; // bool } return (items[k]!=null); // bool }; this.containsValue=function(/* object */ o){ // summary // Check to see if this list contains the passed object var e=this.getIterator(); while (!e.atEnd()){ var item=e.get(); if(item.value==o){ return true; // bool } } return false; // bool }; this.copyTo=function(/* array */ arr, /* int */ i){ // summary // copy the contents of the list into array arr at index i var e=this.getIterator(); var idx=i; while(!e.atEnd()){ arr.splice(idx,0,e.get()); idx++; } }; this.entry=function(/* string */ k){ // summary // return the object at location k return items[k]; // dojox.collections.DictionaryEntry }; this.forEach=function(/* function */ fn, /* object? */ scope){ // summary // functional iterator, following the mozilla spec. dojo.forEach(q, fn, scope); }; this.getByIndex=function(/* int */ i){ // summary // return the item at index i return q[i].valueOf(); // object }; this.getIterator=function(){ // summary // get an iterator for this object return new dojox.collections.DictionaryIterator(items); // dojox.collections.DictionaryIterator";s:7:"returns";s:111:"dojox.collections.SortedList|bool|dojox.collections.DictionaryEntry|object|dojox.collections.DictionaryIterator";s:8:"instance";s:28:"dojox.collections.SortedList";s:7:"summary";s:0:"";}s:35:"dojox.collections.SortedList.getKey";a:6:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:1:"i";a:1:{s:4:"type";s:3:"int";}}s:6:"source";s:2665:"dojo.provide("dojox.collections.SortedList"); dojo.require("dojox.collections._base"); dojox.collections.SortedList=function(/* object? */ dictionary){ // summary // creates a collection that acts like a dictionary but is also internally sorted. // Note that the act of adding any elements forces an internal resort, making this object potentially slow. var _this=this; var items={}; var q=[]; var sorter=function(a,b){ if (a.key > b.key) return 1; if (a.key < b.key) return -1; return 0; }; var build=function(){ q=[]; var e=_this.getIterator(); while (!e.atEnd()){ q.push(e.get()); } q.sort(sorter); }; var testObject={}; this.count=q.length; this.add=function(/* string */ k,/* object */v){ // summary // add the passed value to the dictionary at location k if (!items[k]) { items[k]=new dojox.collections.DictionaryEntry(k,v); this.count=q.push(items[k]); q.sort(sorter); } }; this.clear=function(){ // summary // clear the internal collections items={}; q=[]; this.count=q.length; }; this.clone=function(){ // summary // create a clone of this sorted list return new dojox.collections.SortedList(this); // dojox.collections.SortedList }; this.contains=this.containsKey=function(/* string */ k){ // summary // Check to see if the list has a location k if(testObject[k]){ return false; // bool } return (items[k]!=null); // bool }; this.containsValue=function(/* object */ o){ // summary // Check to see if this list contains the passed object var e=this.getIterator(); while (!e.atEnd()){ var item=e.get(); if(item.value==o){ return true; // bool } } return false; // bool }; this.copyTo=function(/* array */ arr, /* int */ i){ // summary // copy the contents of the list into array arr at index i var e=this.getIterator(); var idx=i; while(!e.atEnd()){ arr.splice(idx,0,e.get()); idx++; } }; this.entry=function(/* string */ k){ // summary // return the object at location k return items[k]; // dojox.collections.DictionaryEntry }; this.forEach=function(/* function */ fn, /* object? */ scope){ // summary // functional iterator, following the mozilla spec. dojo.forEach(q, fn, scope); }; this.getByIndex=function(/* int */ i){ // summary // return the item at index i return q[i].valueOf(); // object }; this.getIterator=function(){ // summary // get an iterator for this object return new dojox.collections.DictionaryIterator(items); // dojox.collections.DictionaryIterator }; this.getKey=function(/* int */ i){ // summary // return the key of the item at index i return q[i].key;";s:7:"returns";s:111:"dojox.collections.SortedList|bool|dojox.collections.DictionaryEntry|object|dojox.collections.DictionaryIterator";s:8:"instance";s:28:"dojox.collections.SortedList";s:7:"summary";s:0:"";}s:39:"dojox.collections.SortedList.getKeyList";a:5:{s:4:"type";s:8:"Function";s:6:"source";s:2878:"dojo.provide("dojox.collections.SortedList"); dojo.require("dojox.collections._base"); dojox.collections.SortedList=function(/* object? */ dictionary){ // summary // creates a collection that acts like a dictionary but is also internally sorted. // Note that the act of adding any elements forces an internal resort, making this object potentially slow. var _this=this; var items={}; var q=[]; var sorter=function(a,b){ if (a.key > b.key) return 1; if (a.key < b.key) return -1; return 0; }; var build=function(){ q=[]; var e=_this.getIterator(); while (!e.atEnd()){ q.push(e.get()); } q.sort(sorter); }; var testObject={}; this.count=q.length; this.add=function(/* string */ k,/* object */v){ // summary // add the passed value to the dictionary at location k if (!items[k]) { items[k]=new dojox.collections.DictionaryEntry(k,v); this.count=q.push(items[k]); q.sort(sorter); } }; this.clear=function(){ // summary // clear the internal collections items={}; q=[]; this.count=q.length; }; this.clone=function(){ // summary // create a clone of this sorted list return new dojox.collections.SortedList(this); // dojox.collections.SortedList }; this.contains=this.containsKey=function(/* string */ k){ // summary // Check to see if the list has a location k if(testObject[k]){ return false; // bool } return (items[k]!=null); // bool }; this.containsValue=function(/* object */ o){ // summary // Check to see if this list contains the passed object var e=this.getIterator(); while (!e.atEnd()){ var item=e.get(); if(item.value==o){ return true; // bool } } return false; // bool }; this.copyTo=function(/* array */ arr, /* int */ i){ // summary // copy the contents of the list into array arr at index i var e=this.getIterator(); var idx=i; while(!e.atEnd()){ arr.splice(idx,0,e.get()); idx++; } }; this.entry=function(/* string */ k){ // summary // return the object at location k return items[k]; // dojox.collections.DictionaryEntry }; this.forEach=function(/* function */ fn, /* object? */ scope){ // summary // functional iterator, following the mozilla spec. dojo.forEach(q, fn, scope); }; this.getByIndex=function(/* int */ i){ // summary // return the item at index i return q[i].valueOf(); // object }; this.getIterator=function(){ // summary // get an iterator for this object return new dojox.collections.DictionaryIterator(items); // dojox.collections.DictionaryIterator }; this.getKey=function(/* int */ i){ // summary // return the key of the item at index i return q[i].key; }; this.getKeyList=function(){ // summary // return an array of the keys set in this list var arr=[]; var e=this.getIterator(); while (!e.atEnd()){ arr.push(e.get().key); } return arr; // array";s:7:"returns";s:117:"dojox.collections.SortedList|bool|dojox.collections.DictionaryEntry|object|dojox.collections.DictionaryIterator|array";s:8:"instance";s:28:"dojox.collections.SortedList";s:7:"summary";s:0:"";}s:41:"dojox.collections.SortedList.getValueList";a:5:{s:4:"type";s:8:"Function";s:6:"source";s:3089:"dojo.provide("dojox.collections.SortedList"); dojo.require("dojox.collections._base"); dojox.collections.SortedList=function(/* object? */ dictionary){ // summary // creates a collection that acts like a dictionary but is also internally sorted. // Note that the act of adding any elements forces an internal resort, making this object potentially slow. var _this=this; var items={}; var q=[]; var sorter=function(a,b){ if (a.key > b.key) return 1; if (a.key < b.key) return -1; return 0; }; var build=function(){ q=[]; var e=_this.getIterator(); while (!e.atEnd()){ q.push(e.get()); } q.sort(sorter); }; var testObject={}; this.count=q.length; this.add=function(/* string */ k,/* object */v){ // summary // add the passed value to the dictionary at location k if (!items[k]) { items[k]=new dojox.collections.DictionaryEntry(k,v); this.count=q.push(items[k]); q.sort(sorter); } }; this.clear=function(){ // summary // clear the internal collections items={}; q=[]; this.count=q.length; }; this.clone=function(){ // summary // create a clone of this sorted list return new dojox.collections.SortedList(this); // dojox.collections.SortedList }; this.contains=this.containsKey=function(/* string */ k){ // summary // Check to see if the list has a location k if(testObject[k]){ return false; // bool } return (items[k]!=null); // bool }; this.containsValue=function(/* object */ o){ // summary // Check to see if this list contains the passed object var e=this.getIterator(); while (!e.atEnd()){ var item=e.get(); if(item.value==o){ return true; // bool } } return false; // bool }; this.copyTo=function(/* array */ arr, /* int */ i){ // summary // copy the contents of the list into array arr at index i var e=this.getIterator(); var idx=i; while(!e.atEnd()){ arr.splice(idx,0,e.get()); idx++; } }; this.entry=function(/* string */ k){ // summary // return the object at location k return items[k]; // dojox.collections.DictionaryEntry }; this.forEach=function(/* function */ fn, /* object? */ scope){ // summary // functional iterator, following the mozilla spec. dojo.forEach(q, fn, scope); }; this.getByIndex=function(/* int */ i){ // summary // return the item at index i return q[i].valueOf(); // object }; this.getIterator=function(){ // summary // get an iterator for this object return new dojox.collections.DictionaryIterator(items); // dojox.collections.DictionaryIterator }; this.getKey=function(/* int */ i){ // summary // return the key of the item at index i return q[i].key; }; this.getKeyList=function(){ // summary // return an array of the keys set in this list var arr=[]; var e=this.getIterator(); while (!e.atEnd()){ arr.push(e.get().key); } return arr; // array }; this.getValueList=function(){ // summary // return an array of values in this list var arr=[]; var e=this.getIterator(); while (!e.atEnd()){ arr.push(e.get().value); } return arr; // array";s:7:"returns";s:117:"dojox.collections.SortedList|bool|dojox.collections.DictionaryEntry|object|dojox.collections.DictionaryIterator|array";s:8:"instance";s:28:"dojox.collections.SortedList";s:7:"summary";s:0:"";}s:39:"dojox.collections.SortedList.indexOfKey";a:6:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:1:"k";a:1:{s:4:"type";s:6:"string";}}s:6:"source";s:3295:"dojo.provide("dojox.collections.SortedList"); dojo.require("dojox.collections._base"); dojox.collections.SortedList=function(/* object? */ dictionary){ // summary // creates a collection that acts like a dictionary but is also internally sorted. // Note that the act of adding any elements forces an internal resort, making this object potentially slow. var _this=this; var items={}; var q=[]; var sorter=function(a,b){ if (a.key > b.key) return 1; if (a.key < b.key) return -1; return 0; }; var build=function(){ q=[]; var e=_this.getIterator(); while (!e.atEnd()){ q.push(e.get()); } q.sort(sorter); }; var testObject={}; this.count=q.length; this.add=function(/* string */ k,/* object */v){ // summary // add the passed value to the dictionary at location k if (!items[k]) { items[k]=new dojox.collections.DictionaryEntry(k,v); this.count=q.push(items[k]); q.sort(sorter); } }; this.clear=function(){ // summary // clear the internal collections items={}; q=[]; this.count=q.length; }; this.clone=function(){ // summary // create a clone of this sorted list return new dojox.collections.SortedList(this); // dojox.collections.SortedList }; this.contains=this.containsKey=function(/* string */ k){ // summary // Check to see if the list has a location k if(testObject[k]){ return false; // bool } return (items[k]!=null); // bool }; this.containsValue=function(/* object */ o){ // summary // Check to see if this list contains the passed object var e=this.getIterator(); while (!e.atEnd()){ var item=e.get(); if(item.value==o){ return true; // bool } } return false; // bool }; this.copyTo=function(/* array */ arr, /* int */ i){ // summary // copy the contents of the list into array arr at index i var e=this.getIterator(); var idx=i; while(!e.atEnd()){ arr.splice(idx,0,e.get()); idx++; } }; this.entry=function(/* string */ k){ // summary // return the object at location k return items[k]; // dojox.collections.DictionaryEntry }; this.forEach=function(/* function */ fn, /* object? */ scope){ // summary // functional iterator, following the mozilla spec. dojo.forEach(q, fn, scope); }; this.getByIndex=function(/* int */ i){ // summary // return the item at index i return q[i].valueOf(); // object }; this.getIterator=function(){ // summary // get an iterator for this object return new dojox.collections.DictionaryIterator(items); // dojox.collections.DictionaryIterator }; this.getKey=function(/* int */ i){ // summary // return the key of the item at index i return q[i].key; }; this.getKeyList=function(){ // summary // return an array of the keys set in this list var arr=[]; var e=this.getIterator(); while (!e.atEnd()){ arr.push(e.get().key); } return arr; // array }; this.getValueList=function(){ // summary // return an array of values in this list var arr=[]; var e=this.getIterator(); while (!e.atEnd()){ arr.push(e.get().value); } return arr; // array }; this.indexOfKey=function(/* string */ k){ // summary // return the index of the passed key. for (var i=0; i b.key) return 1; if (a.key < b.key) return -1; return 0; }; var build=function(){ q=[]; var e=_this.getIterator(); while (!e.atEnd()){ q.push(e.get()); } q.sort(sorter); }; var testObject={}; this.count=q.length; this.add=function(/* string */ k,/* object */v){ // summary // add the passed value to the dictionary at location k if (!items[k]) { items[k]=new dojox.collections.DictionaryEntry(k,v); this.count=q.push(items[k]); q.sort(sorter); } }; this.clear=function(){ // summary // clear the internal collections items={}; q=[]; this.count=q.length; }; this.clone=function(){ // summary // create a clone of this sorted list return new dojox.collections.SortedList(this); // dojox.collections.SortedList }; this.contains=this.containsKey=function(/* string */ k){ // summary // Check to see if the list has a location k if(testObject[k]){ return false; // bool } return (items[k]!=null); // bool }; this.containsValue=function(/* object */ o){ // summary // Check to see if this list contains the passed object var e=this.getIterator(); while (!e.atEnd()){ var item=e.get(); if(item.value==o){ return true; // bool } } return false; // bool }; this.copyTo=function(/* array */ arr, /* int */ i){ // summary // copy the contents of the list into array arr at index i var e=this.getIterator(); var idx=i; while(!e.atEnd()){ arr.splice(idx,0,e.get()); idx++; } }; this.entry=function(/* string */ k){ // summary // return the object at location k return items[k]; // dojox.collections.DictionaryEntry }; this.forEach=function(/* function */ fn, /* object? */ scope){ // summary // functional iterator, following the mozilla spec. dojo.forEach(q, fn, scope); }; this.getByIndex=function(/* int */ i){ // summary // return the item at index i return q[i].valueOf(); // object }; this.getIterator=function(){ // summary // get an iterator for this object return new dojox.collections.DictionaryIterator(items); // dojox.collections.DictionaryIterator }; this.getKey=function(/* int */ i){ // summary // return the key of the item at index i return q[i].key; }; this.getKeyList=function(){ // summary // return an array of the keys set in this list var arr=[]; var e=this.getIterator(); while (!e.atEnd()){ arr.push(e.get().key); } return arr; // array }; this.getValueList=function(){ // summary // return an array of values in this list var arr=[]; var e=this.getIterator(); while (!e.atEnd()){ arr.push(e.get().value); } return arr; // array }; this.indexOfKey=function(/* string */ k){ // summary // return the index of the passed key. for (var i=0; i b.key) return 1; if (a.key < b.key) return -1; return 0; }; var build=function(){ q=[]; var e=_this.getIterator(); while (!e.atEnd()){ q.push(e.get()); } q.sort(sorter); }; var testObject={}; this.count=q.length; this.add=function(/* string */ k,/* object */v){ // summary // add the passed value to the dictionary at location k if (!items[k]) { items[k]=new dojox.collections.DictionaryEntry(k,v); this.count=q.push(items[k]); q.sort(sorter); } }; this.clear=function(){ // summary // clear the internal collections items={}; q=[]; this.count=q.length; }; this.clone=function(){ // summary // create a clone of this sorted list return new dojox.collections.SortedList(this); // dojox.collections.SortedList }; this.contains=this.containsKey=function(/* string */ k){ // summary // Check to see if the list has a location k if(testObject[k]){ return false; // bool } return (items[k]!=null); // bool }; this.containsValue=function(/* object */ o){ // summary // Check to see if this list contains the passed object var e=this.getIterator(); while (!e.atEnd()){ var item=e.get(); if(item.value==o){ return true; // bool } } return false; // bool }; this.copyTo=function(/* array */ arr, /* int */ i){ // summary // copy the contents of the list into array arr at index i var e=this.getIterator(); var idx=i; while(!e.atEnd()){ arr.splice(idx,0,e.get()); idx++; } }; this.entry=function(/* string */ k){ // summary // return the object at location k return items[k]; // dojox.collections.DictionaryEntry }; this.forEach=function(/* function */ fn, /* object? */ scope){ // summary // functional iterator, following the mozilla spec. dojo.forEach(q, fn, scope); }; this.getByIndex=function(/* int */ i){ // summary // return the item at index i return q[i].valueOf(); // object }; this.getIterator=function(){ // summary // get an iterator for this object return new dojox.collections.DictionaryIterator(items); // dojox.collections.DictionaryIterator }; this.getKey=function(/* int */ i){ // summary // return the key of the item at index i return q[i].key; }; this.getKeyList=function(){ // summary // return an array of the keys set in this list var arr=[]; var e=this.getIterator(); while (!e.atEnd()){ arr.push(e.get().key); } return arr; // array }; this.getValueList=function(){ // summary // return an array of values in this list var arr=[]; var e=this.getIterator(); while (!e.atEnd()){ arr.push(e.get().value); } return arr; // array }; this.indexOfKey=function(/* string */ k){ // summary // return the index of the passed key. for (var i=0; i b.key) return 1; if (a.key < b.key) return -1; return 0; }; var build=function(){ q=[]; var e=_this.getIterator(); while (!e.atEnd()){ q.push(e.get()); } q.sort(sorter); }; var testObject={}; this.count=q.length; this.add=function(/* string */ k,/* object */v){ // summary // add the passed value to the dictionary at location k if (!items[k]) { items[k]=new dojox.collections.DictionaryEntry(k,v); this.count=q.push(items[k]); q.sort(sorter); } }; this.clear=function(){ // summary // clear the internal collections items={}; q=[]; this.count=q.length; }; this.clone=function(){ // summary // create a clone of this sorted list return new dojox.collections.SortedList(this); // dojox.collections.SortedList }; this.contains=this.containsKey=function(/* string */ k){ // summary // Check to see if the list has a location k if(testObject[k]){ return false; // bool } return (items[k]!=null); // bool }; this.containsValue=function(/* object */ o){ // summary // Check to see if this list contains the passed object var e=this.getIterator(); while (!e.atEnd()){ var item=e.get(); if(item.value==o){ return true; // bool } } return false; // bool }; this.copyTo=function(/* array */ arr, /* int */ i){ // summary // copy the contents of the list into array arr at index i var e=this.getIterator(); var idx=i; while(!e.atEnd()){ arr.splice(idx,0,e.get()); idx++; } }; this.entry=function(/* string */ k){ // summary // return the object at location k return items[k]; // dojox.collections.DictionaryEntry }; this.forEach=function(/* function */ fn, /* object? */ scope){ // summary // functional iterator, following the mozilla spec. dojo.forEach(q, fn, scope); }; this.getByIndex=function(/* int */ i){ // summary // return the item at index i return q[i].valueOf(); // object }; this.getIterator=function(){ // summary // get an iterator for this object return new dojox.collections.DictionaryIterator(items); // dojox.collections.DictionaryIterator }; this.getKey=function(/* int */ i){ // summary // return the key of the item at index i return q[i].key; }; this.getKeyList=function(){ // summary // return an array of the keys set in this list var arr=[]; var e=this.getIterator(); while (!e.atEnd()){ arr.push(e.get().key); } return arr; // array }; this.getValueList=function(){ // summary // return an array of values in this list var arr=[]; var e=this.getIterator(); while (!e.atEnd()){ arr.push(e.get().value); } return arr; // array }; this.indexOfKey=function(/* string */ k){ // summary // return the index of the passed key. for (var i=0; i b.key) return 1; if (a.key < b.key) return -1; return 0; }; var build=function(){ q=[]; var e=_this.getIterator(); while (!e.atEnd()){ q.push(e.get()); } q.sort(sorter); }; var testObject={}; this.count=q.length; this.add=function(/* string */ k,/* object */v){ // summary // add the passed value to the dictionary at location k if (!items[k]) { items[k]=new dojox.collections.DictionaryEntry(k,v); this.count=q.push(items[k]); q.sort(sorter); } }; this.clear=function(){ // summary // clear the internal collections items={}; q=[]; this.count=q.length; }; this.clone=function(){ // summary // create a clone of this sorted list return new dojox.collections.SortedList(this); // dojox.collections.SortedList }; this.contains=this.containsKey=function(/* string */ k){ // summary // Check to see if the list has a location k if(testObject[k]){ return false; // bool } return (items[k]!=null); // bool }; this.containsValue=function(/* object */ o){ // summary // Check to see if this list contains the passed object var e=this.getIterator(); while (!e.atEnd()){ var item=e.get(); if(item.value==o){ return true; // bool } } return false; // bool }; this.copyTo=function(/* array */ arr, /* int */ i){ // summary // copy the contents of the list into array arr at index i var e=this.getIterator(); var idx=i; while(!e.atEnd()){ arr.splice(idx,0,e.get()); idx++; } }; this.entry=function(/* string */ k){ // summary // return the object at location k return items[k]; // dojox.collections.DictionaryEntry }; this.forEach=function(/* function */ fn, /* object? */ scope){ // summary // functional iterator, following the mozilla spec. dojo.forEach(q, fn, scope); }; this.getByIndex=function(/* int */ i){ // summary // return the item at index i return q[i].valueOf(); // object }; this.getIterator=function(){ // summary // get an iterator for this object return new dojox.collections.DictionaryIterator(items); // dojox.collections.DictionaryIterator }; this.getKey=function(/* int */ i){ // summary // return the key of the item at index i return q[i].key; }; this.getKeyList=function(){ // summary // return an array of the keys set in this list var arr=[]; var e=this.getIterator(); while (!e.atEnd()){ arr.push(e.get().key); } return arr; // array }; this.getValueList=function(){ // summary // return an array of values in this list var arr=[]; var e=this.getIterator(); while (!e.atEnd()){ arr.push(e.get().value); } return arr; // array }; this.indexOfKey=function(/* string */ k){ // summary // return the index of the passed key. for (var i=0; i b.key) return 1; if (a.key < b.key) return -1; return 0; }; var build=function(){ q=[]; var e=_this.getIterator(); while (!e.atEnd()){ q.push(e.get()); } q.sort(sorter); }; var testObject={}; this.count=q.length; this.add=function(/* string */ k,/* object */v){ // summary // add the passed value to the dictionary at location k if (!items[k]) { items[k]=new dojox.collections.DictionaryEntry(k,v); this.count=q.push(items[k]); q.sort(sorter); } }; this.clear=function(){ // summary // clear the internal collections items={}; q=[]; this.count=q.length; }; this.clone=function(){ // summary // create a clone of this sorted list return new dojox.collections.SortedList(this); // dojox.collections.SortedList }; this.contains=this.containsKey=function(/* string */ k){ // summary // Check to see if the list has a location k if(testObject[k]){ return false; // bool } return (items[k]!=null); // bool }; this.containsValue=function(/* object */ o){ // summary // Check to see if this list contains the passed object var e=this.getIterator(); while (!e.atEnd()){ var item=e.get(); if(item.value==o){ return true; // bool } } return false; // bool }; this.copyTo=function(/* array */ arr, /* int */ i){ // summary // copy the contents of the list into array arr at index i var e=this.getIterator(); var idx=i; while(!e.atEnd()){ arr.splice(idx,0,e.get()); idx++; } }; this.entry=function(/* string */ k){ // summary // return the object at location k return items[k]; // dojox.collections.DictionaryEntry }; this.forEach=function(/* function */ fn, /* object? */ scope){ // summary // functional iterator, following the mozilla spec. dojo.forEach(q, fn, scope); }; this.getByIndex=function(/* int */ i){ // summary // return the item at index i return q[i].valueOf(); // object }; this.getIterator=function(){ // summary // get an iterator for this object return new dojox.collections.DictionaryIterator(items); // dojox.collections.DictionaryIterator }; this.getKey=function(/* int */ i){ // summary // return the key of the item at index i return q[i].key; }; this.getKeyList=function(){ // summary // return an array of the keys set in this list var arr=[]; var e=this.getIterator(); while (!e.atEnd()){ arr.push(e.get().key); } return arr; // array }; this.getValueList=function(){ // summary // return an array of values in this list var arr=[]; var e=this.getIterator(); while (!e.atEnd()){ arr.push(e.get().value); } return arr; // array }; this.indexOfKey=function(/* string */ k){ // summary // return the index of the passed key. for (var i=0; i b.key) return 1; if (a.key < b.key) return -1; return 0; }; var build=function(){ q=[]; var e=_this.getIterator(); while (!e.atEnd()){ q.push(e.get()); } q.sort(sorter); }; var testObject={}; this.count=q.length; this.add=function(/* string */ k,/* object */v){ // summary // add the passed value to the dictionary at location k if (!items[k]) { items[k]=new dojox.collections.DictionaryEntry(k,v); this.count=q.push(items[k]); q.sort(sorter); } }; this.clear=function(){ // summary // clear the internal collections items={}; q=[]; this.count=q.length; }; this.clone=function(){ // summary // create a clone of this sorted list return new dojox.collections.SortedList(this); // dojox.collections.SortedList }; this.contains=this.containsKey=function(/* string */ k){ // summary // Check to see if the list has a location k if(testObject[k]){ return false; // bool } return (items[k]!=null); // bool }; this.containsValue=function(/* object */ o){ // summary // Check to see if this list contains the passed object var e=this.getIterator(); while (!e.atEnd()){ var item=e.get(); if(item.value==o){ return true; // bool } } return false; // bool }; this.copyTo=function(/* array */ arr, /* int */ i){ // summary // copy the contents of the list into array arr at index i var e=this.getIterator(); var idx=i; while(!e.atEnd()){ arr.splice(idx,0,e.get()); idx++; } }; this.entry=function(/* string */ k){ // summary // return the object at location k return items[k]; // dojox.collections.DictionaryEntry }; this.forEach=function(/* function */ fn, /* object? */ scope){ // summary // functional iterator, following the mozilla spec. dojo.forEach(q, fn, scope); }; this.getByIndex=function(/* int */ i){ // summary // return the item at index i return q[i].valueOf(); // object }; this.getIterator=function(){ // summary // get an iterator for this object return new dojox.collections.DictionaryIterator(items); // dojox.collections.DictionaryIterator }; this.getKey=function(/* int */ i){ // summary // return the key of the item at index i return q[i].key; }; this.getKeyList=function(){ // summary // return an array of the keys set in this list var arr=[]; var e=this.getIterator(); while (!e.atEnd()){ arr.push(e.get().key); } return arr; // array }; this.getValueList=function(){ // summary // return an array of values in this list var arr=[]; var e=this.getIterator(); while (!e.atEnd()){ arr.push(e.get().value); } return arr; // array }; this.indexOfKey=function(/* string */ k){ // summary // return the index of the passed key. for (var i=0; i