Lumiera  0.pre.03
»edityourfreedom«
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 More...
 
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
 

Constructor & Destructor Documentation

◆ ~ListDiffInterpreter()

virtual ~ListDiffInterpreter ( )
inlinevirtual

this is an interface

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

References ListDiffInterpreter< E >::del(), ListDiffInterpreter< E >::find(), ListDiffInterpreter< E >::ins(), ListDiffInterpreter< E >::pick(), and ListDiffInterpreter< E >::skip().

+ Here is the call graph for this function:

Member Function Documentation

◆ ins()

virtual void ins ( E const &  e)
pure virtual

Implemented in DiffApplicationStrategy< vector< E, ARGS... > >.

Referenced by ListDiffInterpreter< E >::~ListDiffInterpreter().

+ Here is the caller graph for this function:

◆ del()

virtual void del ( E const &  e)
pure virtual

Implemented in DiffApplicationStrategy< vector< E, ARGS... > >.

Referenced by ListDiffInterpreter< E >::~ListDiffInterpreter().

+ Here is the caller graph for this function:

◆ pick()

virtual void pick ( E const &  e)
pure virtual

Implemented in DiffApplicationStrategy< vector< E, ARGS... > >.

Referenced by ListDiffInterpreter< E >::~ListDiffInterpreter().

+ Here is the caller graph for this function:

◆ find()

virtual void find ( E const &  e)
pure virtual

Implemented in DiffApplicationStrategy< vector< E, ARGS... > >.

Referenced by ListDiffInterpreter< E >::~ListDiffInterpreter().

+ Here is the caller graph for this function:

◆ skip()

virtual void skip ( E const &  e)
pure virtual

Implemented in DiffApplicationStrategy< vector< E, ARGS... > >.

Referenced by ListDiffInterpreter< E >::~ListDiffInterpreter().

+ Here is the caller graph for this function:
+ Inheritance diagram for ListDiffInterpreter< E >:
+ Collaboration diagram for ListDiffInterpreter< E >:

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