Class summary | |
---|---|
slist-element |
Structure summary | |
---|---|
slist |
Method summary | |
---|---|
copy-object | (slist slist) |
slists | slist-element |
Function summary | |
---|---|
copy-slist | slist |
dec-all-weights | slist delta &key (removal-threshold 0) |
inc-weight | el delta &key (slot-name (quote weight)) (max-value 1) |
make-slist | weight-slot-name |
modified-weight | el |
sle-weight | slist element |
slist-elements | slist |
slist-insert | slist element |
slist-insert-aux | slist element |
slist-p | object |
slist-remove | slist element |
slist-size | slist |
slist-update | slist element |
slist-weight-slot-name | slist |
:slists | [Initarg] |
slists | [Slot] |
The lists of slists in which this element is listed.
A list of elements that is kept sorted according to the weight of the elements. Slots:
weight-slot-name: the name of the slot in which to find the weight of an element.
elements: the elements in the sorted list
Insert an element and the associated weight in the sorted list, and return the slist.
Insert an element and the associated weight in the sorted list, and return the slist.
Remove the given element from the sorted-list and return the slist.
Update the slist when the weight of the given element has changed, and return the slist.