Lumiera  0.pre.03
»edit your freedom«
tree-mutator-listener-binding.hpp File Reference

Go to the source code of this file.

Description

Special supplement for TreeMutator, to attach listeners for notification on specific changes, especially structural ones.

TreeMutator is a customisable intermediary, which enables otherwise opaque implementation data structures to receive and respond to generic structural change messages ("tree diff").

Each concrete TreeMutator instance will be configured differently, and this adaptation is done by combining various building blocks. This header defines a special decorator to be layered on top of such a TreeMutator binding; it will not interfere with the received diff, but detect relevant changes and invoke the functor after the triggering diff has been applied completely to the bound scope.

Note
the header tree-mutator-listener-binding.hpp was split off for sake of readability and is included automatically from bottom of tree-mutator.hpp – no need to include it explicitly
See also
tree-mutator-test.cpp
TreeMutator::build()

Definition in file tree-mutator-listener-binding.hpp.

Classes

class  Detector4StructuralChanges< PAR, LIS, assign >
 Decorator for TreeMutator bindings, to fire a listener function when the applied diff describes a relevant change. More...
 

Namespaces

 lib
 Implementation namespace for support and library code.