Lumiera  0.pre.03
»edit your freedom«
BaseAdapter< SRC > Struct Template Reference

#include "lib/iter-explorer.hpp"

Description

template<class SRC>
struct lib::iter_explorer::BaseAdapter< SRC >

Base of pipe processing decorator chain. IterExplorer allows to create a stack out of various decorating processors

  • each decorator is itself a _"state core"_, adding some on-demand processing
  • each wraps and adapts a source iterator, attaching to and passing-on the iteration logic Typically each such layer is configured with actual functionality provided as lambda or functor. Yet in addition to forming an iteration pipeline, there is kind of an internal interconnection protocol, allowing the layers to collaborate; notably this allows to handle an expandChildren() call, where some "expansion layer" consumes the current element and replaces it by an expanded series of new elements. Other layers might need to sync to this operation, and thus it is passed down the chain. For that reason, we need a dedicated BaseAdapter to adsorb such chained calls.
    Remarks
    when building the IterExplorer, the to-be-wrapped source is fed down into its place within BaseAdapter. For that reason, it is not sufficient just to lift the copy ctors of the base (as inheriting the base class ctors would do). Rather, we need dedicated further copy ctors to clone and move from the undecorated base type.

Definition at line 521 of file iter-explorer.hpp.

Public Member Functions

 BaseAdapter (SRC const &src)
 
 BaseAdapter (SRC &&src)
 
size_t depth () const
 
void expandChildren ()
 
+ Inheritance diagram for BaseAdapter< SRC >:
+ Collaboration diagram for BaseAdapter< SRC >:

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