close Warning: Can't synchronize with repository "(default)" (The repository directory has changed, you should resynchronize the repository with: trac-admin $ENV repository resync '(default)'). Look in the Trac log for more information.

Changeset 3939 for branches


Ignore:
Timestamp:
2016-05-29T23:44:03-07:00 (8 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/pair-queue.lisp

    r3938 r3939  
    9292
    9393(defmethod initialize-instance :after ((self critical-pair-queue) &key)
    94   (make-priority-queue
    95    :element-type 'critical-pair
    96    :element-key #'(lambda (pair) (funcall pair-key-fn (critical-pair-first pair) (critical-pair-second pair)))
    97    :test pair-order-fn))
     94  (with-slots (pair-key-fn pair-order-fn pq)
     95      (setf pq (make-priority-queue
     96                :element-type 'critical-pair
     97                :element-key #'(lambda (pair) (funcall pair-key-fn (critical-pair-first pair) (critical-pair-second pair)))
     98                :test pair-order-fn))))
    9899
    99100(defun pair-queue-initialize (pq f start
Note: See TracChangeset for help on using the changeset viewer.