Lumiera  0.pre.03
»edit your freedom«
list-diff-application.hpp File Reference

Go to the source code of this file.

Description

Apply a "list diff" to a concrete sequence of elements in a container.

This header provides specialisation(s) of the DiffApplicationStrategy to actual containers, choosing an implementation approach suitable for this specific kind of container. Together with a lib::diff::DiffApplicator, this allows to receive the description of changes (as a linearised sequence of DiffStep tokens) and apply them to a given concrete sequence of data elements, thereby transforming the contents of this target sequence.

See also
diff-list-application-test.cpp
ListDiffLanguage

Definition in file list-diff-application.hpp.

#include "lib/diff/list-diff.hpp"
#include "lib/format-string.hpp"
#include <algorithm>
#include <vector>
#include <tuple>

Classes

class  DiffApplicationStrategy< vector< E, ARGS... > >
 concrete strategy to apply a list diff to a target sequence given as vector. More...
 

Namespaces

 lib
 Implementation namespace for support and library code.