EventLog: now able to use the CursorGear immediately as state core
...since TreeExplorer automatically does the iterator wrapping for us. As added benefit, we have now a direct API to control the search direction
This commit is contained in:
parent
75e1eab4bb
commit
9d7ce1e6a4
2 changed files with 22 additions and 11 deletions
|
|
@ -77,8 +77,8 @@ namespace test{
|
|||
auto
|
||||
buildSearchFilter(Log const& srcSeq)
|
||||
{
|
||||
using Iter = lib::IterCursor<Log::const_iterator>;
|
||||
return treeExplore(Iter (srcSeq))
|
||||
using Cursor = lib::iter::CursorGear<Log::const_iterator>;
|
||||
return treeExplore (Cursor{srcSeq.begin(), srcSeq.end()})
|
||||
.mutableFilter();
|
||||
}
|
||||
}
|
||||
|
|
@ -327,15 +327,7 @@ namespace test{
|
|||
void
|
||||
attachNextSerchStep (COND&& filter, Direction direction)
|
||||
{
|
||||
switch (direction)
|
||||
{
|
||||
case FORWARD:
|
||||
solution_.switchForwards();
|
||||
break;
|
||||
case BACKWARD:
|
||||
solution_.switchBackwards();
|
||||
break;
|
||||
}
|
||||
solution_.reverse (BACKWARD == direction);
|
||||
solution_.setNewFilter (forward<COND> (filter));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -30715,6 +30715,8 @@
|
|||
</node>
|
||||
<node CREATED="1535891156816" ID="ID_679300718" MODIFIED="1535891164631" TEXT="ist komplex">
|
||||
<icon BUILTIN="smiley-neutral"/>
|
||||
<node CREATED="1535939100410" ID="ID_1893557511" MODIFIED="1535939107373" TEXT="aber von einer Art, die mir gefällt"/>
|
||||
<node CREATED="1535939111640" ID="ID_1649632412" MODIFIED="1535939115932" TEXT="war bisher gut wartbar"/>
|
||||
</node>
|
||||
</node>
|
||||
<node COLOR="#338800" CREATED="1514328717684" ID="ID_137835978" MODIFIED="1535892401183" TEXT="neuer Anlauf IterExplorer II">
|
||||
|
|
@ -31150,6 +31152,23 @@
|
|||
<node COLOR="#338800" CREATED="1535934121614" ID="ID_757923717" MODIFIED="1535937964888" TEXT="umstellen von IterTools -> TreeExplorer">
|
||||
<icon BUILTIN="button_ok"/>
|
||||
</node>
|
||||
<node COLOR="#338800" CREATED="1535938792363" ID="ID_428321880" MODIFIED="1535938844914" TEXT="CursorGear direkt als Core verwenden">
|
||||
<richcontent TYPE="NOTE"><html>
|
||||
<head>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
TreeExplorer macht das Wrappen für uns automatisch,
|
||||
</p>
|
||||
<p>
|
||||
und außerdem haben wir nun ein direktes API für die Laufrichtung
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
</richcontent>
|
||||
<icon BUILTIN="button_ok"/>
|
||||
</node>
|
||||
</node>
|
||||
<node BACKGROUND_COLOR="#eee5c3" COLOR="#990000" CREATED="1535938028929" ID="ID_1910123172" MODIFIED="1535938091638" TEXT="Backtracking Search-Engine einbauen">
|
||||
<arrowlink COLOR="#23408f" DESTINATION="ID_1801538785" ENDARROW="Default" ENDINCLINATION="20;-55;" ID="Arrow_ID_1048873840" STARTARROW="None" STARTINCLINATION="-120;0;"/>
|
||||
|
|
|
|||
Loading…
Reference in a new issue