![]() |
Lumiera 0.pre.04~rc.1
»edit your freedom«
|
#include "lib/diff/diff-language.hpp"
generic builder to apply a diff description to a given target data structure.
The usage pattern is as follows #. construct a DiffApplicator instance, wrapping the target data #. feed the diff (sequence of diff verbs) to the consume function #. the wrapped target data has been altered, to conform to the given diff
Definition at line 284 of file diff-language.hpp.
Public Member Functions | |
| DiffApplicator (TAR &targetStructure) | |
| template<class DIFF > | |
| void | consume (DIFF &&diff) |
Private Types | |
| using | Interpreter = DiffApplicationStrategy< TAR > |
Private Attributes | |
| Interpreter | target_ |
Additional Inherited Members | |
Private Member Functions inherited from NonCopyable | |
| ~NonCopyable ()=default | |
| NonCopyable ()=default | |
| NonCopyable (NonCopyable const &)=delete | |
| NonCopyable & | operator= (NonCopyable const &)=delete |
|
inlineexplicit |
Definition at line 293 of file diff-language.hpp.
|
private |
Definition at line 287 of file diff-language.hpp.
|
inline |
Definition at line 299 of file diff-language.hpp.
References DiffApplicator< TAR >::target_.
Referenced by DiffTreeApplicationSimple_test::demo_two(), MutationMessage_test::demonstrate_treeApplication(), DiffIgnoreChanges_test::fail_or_ignore(), DiffIgnoreChanges_test::fish_for_content(), DiffComplexApplication_test::run(), DiffListApplication_test::run(), DiffTreeApplication_test::run(), and DiffTreeMutationListener_test::run().
Here is the caller graph for this function:
|
private |
Definition at line 289 of file diff-language.hpp.
Referenced by DiffApplicator< TAR >::consume().
Inheritance diagram for DiffApplicator< TAR >:
Collaboration diagram for DiffApplicator< TAR >: