added lineMarkerAttribute + more comments

This commit is contained in:
Matthias Bartelmeß 2012-04-05 15:20:48 +02:00
parent 9f02972af4
commit 093b7ab4bf
2 changed files with 38 additions and 5 deletions

View file

@ -22,6 +22,12 @@
* limitations under the License.
*/
/*
An AttributePool maintains a mapping from [key,value] Pairs called
Attributes to Numbers (unsigened integers) and vice versa. These numbers are
used to reference Attributes in Changesets.
*/
var AttributePool = function () {
this.numToAttrib = {}; // e.g. {0: ['foo','bar']}
this.attribToNum = {}; // e.g. {'foo,bar': 0}