- Timestamp:
- 2016-06-02T22:03:57-07:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/pair-queue.lisp
r4146 r4148 100 100 polynomials is selected.") 101 101 102 (defgeneric make-critical-pair-queue (object) 103 (:documentation "A factory of critical-pair-queue objects.") 104 (:method ((self selection-strategy)) 105 "Creates a priority queue with selection strategy STRATEGY." 102 (defclass critical-pair-queue (priority-queue) 103 () 104 (:documentation "Specializes class PRIORITY-QUEUE to element-type CRITICAL-PAIR.")) 105 106 (defmethod initialize-instance :before ((self critical-pair-queue) &key) 107 (call-next-method self :initial-element 'critical-pair)) 108 109 (defgeneric make-critical-pair-queue (object) 110 (:method ((object selection-strategy)) 106 111 (with-slots (pair-key-fn pair-order-fn) 107 strategy108 (make-instance 'p air-queue112 object 113 (make-instance 'priority-queue 109 114 :element-type 'critical-pair 110 115 :element-key #'(lambda (pair) (funcall pair-key-fn
Note:
See TracChangeset
for help on using the changeset viewer.