Download McCLIM User`s Manual The Users Guide and API Reference
Transcript
Chapter 18: Drei 62 the delete-record to an insert-record, giving it the sequence at the stored offset in the buffer with the specified length. The method on flip-undo-record specialized on compound-record binds performingundo for the buffer to T, recursively calls flip-undo-record on each element of the list of undo records, and finally destructively reverses the list. [Class] Class precedence list: drei-undo-record, standard-undo-record, undo-record, standard-object, slot-object, t drei:drei-undo-record Slots: • buffer — initargs: :buffer The buffer to which the record belongs. A base class for all output records in Drei. [Class] Class precedence list: simple-undo-record, drei-undo-record, standard-undo-record, undo-record, standard-object, slot-object, t drei:simple-undo-record Slots: • offset — initargs: :offset The offset that determines the position at which the undo operation is to be executed. A base class for output records that modify buffer contents at a specific offset. [Class] Class precedence list: insert-record, simple-undo-record, drei-undo-record, standard-undo-record, undo-record, standard-object, slot-object, t drei:insert-record Slots: • objects — initargs: :objects The sequence of objects that are to be inserted whenever flip-undo-record is called on an instance of insert-record. Whenever objects are deleted, the sequence of objects is stored in an insert record containing a mark. [Class] Class precedence list: delete-record, simple-undo-record, drei-undo-record, standard-undo-record, undo-record, standard-object, slot-object, t drei:delete-record Slots: • length — initargs: :length The length of the sequence of objects to be deleted whenever flip-undo-record is called on an instance of delete-record. Whenever objects are inserted, a delete-record containing a mark is created and added to the undo tree.