slist

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
slist-element    [Class]
:slists    [Initarg]
slists    [Slot]

The lists of slists in which this element is listed.

slists   slist-element  [Generic function]

Returns and (with setf) changes the slists of the specified slist-element

slist    [Structure]

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

slist-elements   slist  [Function]

Returns and (with setf) changes the elements of the specified slist

slist-weight-slot-name   slist  [Function]

Returns and (with setf) changes the weight-slot-name of the specified slist

make-slist   weight-slot-name  [Function]

Returns a newly created slist.

copy-slist   slist  [Function]

Returns a copy of the specified slist.

slist-p   object  [Function]

Returns T if the specified object is of type slist.

copy-object   (slist slist)  [Method]
inc-weight   el delta &key (slot-name (quote weight)) (max-value 1)  [Function]
modified-weight   el  [Function]
slist-size   slist  [Function]

Return the number of elements in the sorted list.

sle-weight   slist element  [Function]
slist-insert-aux   slist element  [Function]

Insert an element and the associated weight in the sorted list, and return the slist.

slist-insert   slist element  [Function]

Insert an element and the associated weight in the sorted list, and return the slist.

slist-remove   slist element  [Function]

Remove the given element from the sorted-list and return the slist.

slist-update   slist element  [Function]

Update the slist when the weight of the given element has changed, and return the slist.

dec-all-weights   slist delta &key (removal-threshold 0)  [Function]