Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
BlackHoleMutation Class Reference

#include "lib/diff/tree-mutator-noop-binding.hpp"

Description

Diff binding for black holes, happily accepting anything.

Note
absorbs and silently ignores any diff verb.

Definition at line 60 of file tree-mutator-noop-binding.hpp.

Public Types

using Elm = GenNode const &
 
using Buff = TreeMutator::Handle
 
- Public Types inherited from TreeMutator
using Handle = PlantingHandle< TreeMutator >
 

Public Member Functions

 BlackHoleMutation ()=default
 
bool hasSrc () override
 always keen to do yet more
 
bool injectNew (Elm) override
 pretend to inject something new
 
bool matchSrc (Elm) override
 purport suitable element is waiting
 
bool acceptSrc (Elm) override
 claim to handle any diff task
 
bool accept_until (Elm) override
 profess to forward anywhere
 
bool findSrc (Elm) override
 sham to find anything
 
bool assignElm (Elm) override
 accept any assignment
 
bool mutateChild (Elm, Buff buff) override
 < ignore inferiors, yet reproduce yourself
 
- Public Member Functions inherited from TreeMutator
virtual ~TreeMutator ()
 this is an interface
 
 TreeMutator ()=default
 
 TreeMutator (TreeMutator &&)=default
 
virtual void init ()
 initialisation immediately before start of diff application
 
virtual bool injectNew (GenNode const &)
 establish new element at current position
 
virtual bool matchSrc (GenNode const &)
 ensure the next source element matches with given spec
 
virtual void skipSrc (GenNode const &)
 skip next src element and advance abstract source position.
 
virtual bool acceptSrc (GenNode const &)
 accept existing element, when matching the given spec
 
virtual bool accept_until (GenNode const &spec)
 repeatedly accept, until after the designated location
 
virtual bool findSrc (GenNode const &)
 locate designated element and accept it at current position
 
virtual bool assignElm (GenNode const &)
 locate the designated target element (must be already accepted into the target sequence).
 
virtual bool mutateChild (GenNode const &, Handle)
 locate the designated target element and build a suitable sub-mutator for this element into the provided target buffer
 
virtual bool completeScope ()
 ensure the scope addressed by this TreeMutator was processed and exhausted without mismatch
 

Additional Inherited Members

- Static Public Member Functions inherited from TreeMutator
static Builder< TreeMutatorbuild ()
 DSL: start building a custom adapted tree mutator, where the operations are tied by closures or wrappers into the current implementation context.
 

Constructor & Destructor Documentation

◆ BlackHoleMutation()

BlackHoleMutation ( )
default

Member Typedef Documentation

◆ Elm

using Elm = GenNode const&

Definition at line 70 of file tree-mutator-noop-binding.hpp.

◆ Buff

Definition at line 71 of file tree-mutator-noop-binding.hpp.

Member Function Documentation

◆ hasSrc()

bool hasSrc ( )
inlineoverridevirtual

always keen to do yet more

Reimplemented from TreeMutator.

Definition at line 73 of file tree-mutator-noop-binding.hpp.

◆ injectNew()

bool injectNew ( Elm  )
inlineoverride

pretend to inject something new

Definition at line 75 of file tree-mutator-noop-binding.hpp.

◆ matchSrc()

bool matchSrc ( Elm  )
inlineoverride

purport suitable element is waiting

Definition at line 76 of file tree-mutator-noop-binding.hpp.

◆ acceptSrc()

bool acceptSrc ( Elm  )
inlineoverride

claim to handle any diff task

Definition at line 77 of file tree-mutator-noop-binding.hpp.

◆ accept_until()

bool accept_until ( Elm  )
inlineoverride

profess to forward anywhere

Definition at line 78 of file tree-mutator-noop-binding.hpp.

◆ findSrc()

bool findSrc ( Elm  )
inlineoverride

sham to find anything

Definition at line 79 of file tree-mutator-noop-binding.hpp.

◆ assignElm()

bool assignElm ( Elm  )
inlineoverride

accept any assignment

Definition at line 80 of file tree-mutator-noop-binding.hpp.

◆ mutateChild()

bool mutateChild ( Elm  ,
Buff  buff 
)
inlineoverride

< ignore inferiors, yet reproduce yourself

Definition at line 83 of file tree-mutator-noop-binding.hpp.

+ Inheritance diagram for BlackHoleMutation:
+ Collaboration diagram for BlackHoleMutation:

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