Lumiera  0.pre.03
»edityourfreedom«
DiffTreeApplication_test Class Reference

Description

Test:
Demonstration/Concept: a description language for tree differences.

The representation is given as a linearised sequence of verb tokens. In addition to the verbs used for list diffing, here we additionally have to deal with nested scopes, which can be entered thorough a bracketing construct mut(ID)...emu(ID). This test demonstrates the application of such diff sequences

Definition at line 109 of file diff-tree-application-test.cpp.

Private Types

using DiffSeq = iter_stl::IterSnapshot< DiffStep >
 
- Private Types inherited from TreeDiffLanguage
using Interpreter = TreeDiffInterpreter
 
- Private Types inherited from DiffLanguage< TreeDiffInterpreter, GenNode >
using DiffToken = std::tuple< DiffVerb, GenNode >
 
using DiffVerb = VerbToken< TreeDiffInterpreter, void(GenNode const &)>
 
using Interpreter = TreeDiffInterpreter
 

Private Member Functions

DiffSeq mutationDiff ()
 
DiffSeq populationDiff ()
 
virtual void run (Arg)
 
- Private Member Functions inherited from TreeDiffLanguage
 DiffStep_CTOR (ins)
 
 DiffStep_CTOR (del)
 
 DiffStep_CTOR (pick)
 
 DiffStep_CTOR (find)
 
 DiffStep_CTOR (skip)
 
 DiffStep_CTOR (after)
 
 DiffStep_CTOR (set)
 
 DiffStep_CTOR (mut)
 
 DiffStep_CTOR (emu)
 

Additional Inherited Members

- Static Private Attributes inherited from DiffLanguage< TreeDiffInterpreter, GenNode >
static const DiffStep NIL
 fixed "invalid" marker token More...
 

Member Typedef Documentation

◆ DiffSeq

Definition at line 113 of file diff-tree-application-test.cpp.

Member Function Documentation

◆ populationDiff()

DiffSeq populationDiff ( )
inlineprivate

Definition at line 116 of file diff-tree-application-test.cpp.

References lib::iter_stl::snapshot().

Referenced by DiffTreeApplication_test::run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ mutationDiff()

DiffSeq mutationDiff ( )
inlineprivate

Definition at line 135 of file diff-tree-application-test.cpp.

References Ref::ATTRIBS, Ref::END, proc::mobject::session::test::find(), and lib::iter_stl::snapshot().

Referenced by DiffTreeApplication_test::run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ run()

virtual void run ( Arg  )
inlineprivatevirtual
+ Inheritance diagram for DiffTreeApplication_test:
+ Collaboration diagram for DiffTreeApplication_test:

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