Lumiera 0.pre.04~rc.1
»edit your freedom«
Loading...
Searching...
No Matches
lib::test::anonymous_namespace{split-splice-test.cpp} Namespace Reference

Typedefs

using OptInt = std::optional< int >
 
using Iter = SegL::iterator
 

Classes

struct  Seg
 Test Dummy: a "segment" representing an integer interval. More...
 
struct  SegL
 Test-Segmentation comprised of a sequence of Seg entries. More...
 

Functions

auto invokeSplitSplice (SegL &segs, OptInt startNew, OptInt afterNew)
 Perform the »SplitSplice« Algorithm to splice a new Segment into the given segmentation of the integer-axis.
 

Variables

const int SMIN = -100
 
const int SMAX = +100
 

Typedef Documentation

◆ OptInt

using OptInt = std::optional<int>

Definition at line 215 of file split-splice-test.cpp.

◆ Iter

using Iter = SegL::iterator

Definition at line 216 of file split-splice-test.cpp.

Function Documentation

◆ invokeSplitSplice()

auto invokeSplitSplice ( SegL segs,
OptInt  startNew,
OptInt  afterNew 
)

Perform the »SplitSplice« Algorithm to splice a new Segment into the given segmentation of the integer-axis.

A local λ-binding is setup to define the basic operations required by the algorithm implementation to work with this specific kind of data.

Returns
Tuple (s,n,e) to indicate where changes happened
  • s the first changed element
  • n the new main segment (may be identical to s)
  • e the first unaltered element after the changed range (may be end())
See also
lib::splitsplice::Algo
setup for the Fixture-Segmentation

Definition at line 232 of file split-splice-test.cpp.

References invokeSplitSplice(), and SMAX.

Referenced by invokeSplitSplice().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ SMIN

const int SMIN = -100

Definition at line 131 of file split-splice-test.cpp.

Referenced by SegL::SegL(), and SegL::assess().

◆ SMAX

const int SMAX = +100

Definition at line 132 of file split-splice-test.cpp.

Referenced by SegL::SegL(), SegL::assess(), and invokeSplitSplice().