Lumiera  0.pre.03
»edit your freedom«
ListDiffInterpreter< E > Class Template Referenceabstract

#include "lib/diff/list-diff.hpp"

Description

template<typename E>
class lib::diff::ListDiffInterpreter< E >

Interpreter interface to define the operations ("verbs"), which describe differences or changes in a given list of data elements.

The meaning of the verbs is as follows:

  • ins prompts to insert the given argument element at the current processing position into the target sequence. This operation allows to inject new data
  • del requires to delete the next element at current position. For sake of verification, the element to be deleted is also included as argument (redundancy).
  • pick just accepts the next element at current position into the resulting altered sequence. The element is given redundantly.
  • find effect a re-ordering of the target list contents: it requires to search for the (next respective single occurrence of the) given element further down into the remainder of the list, to bring it forward and insert it as the next element.
  • skip processing hint, emitted at the position where an element previously extracted by a find verb happened to sit within the old order. This allows an optimising implementation to “fetch” a copy and just drop or skip the original, thereby avoiding to shift any other elements.

Definition at line 72 of file list-diff.hpp.

Public Member Functions

virtual ~ListDiffInterpreter ()
 this is an interface
 
virtual void del (E const &e)=0
 
virtual void find (E const &e)=0
 
virtual void ins (E const &e)=0
 
virtual void pick (E const &e)=0
 
virtual void skip (E const &e)=0
 
+ Inheritance diagram for ListDiffInterpreter< E >:
+ Collaboration diagram for ListDiffInterpreter< E >:

The documentation for this class was generated from the following file: