![]() |
Lumiera 0.pre.04
»edit your freedom«
|
#include "lib/diff/gen-node.hpp"
Building block for monad-like depth-first expansion of a GenNode.
When used within lib::IterStateWrapper, the result is an Iterator to visit the contents of a GenNode tree recursively depth-fist.
Definition at line 596 of file gen-node.hpp.
Public Member Functions | |
| ScopeExplorer () | |
| ScopeExplorer (GenNode const &n) | |
| size_t | depth () const |
| bool | checkPoint () const |
| GenNode const & | yield () const |
| void | iterNext () |
Friends | |
| bool | operator== (ScopeExplorer const &s1, ScopeExplorer const &s2) |
Private Types | |
| using | ScopeIter = IterStateWrapper< DataCap::Locator > |
Private Attributes | |
| std::deque< ScopeIter > | scopes_ |
|
inline |
Definition at line 603 of file gen-node.hpp.
|
inline |
Definition at line 604 of file gen-node.hpp.
References GenNode::ScopeExplorer::scopes_.
|
private |
Definition at line 598 of file gen-node.hpp.
|
inline |
Definition at line 610 of file gen-node.hpp.
References GenNode::ScopeExplorer::scopes_.
|
inline |
Definition at line 618 of file gen-node.hpp.
References GenNode::ScopeExplorer::scopes_.
|
inline |
Definition at line 625 of file gen-node.hpp.
References GenNode::ScopeExplorer::scopes_.
|
inline |
Definition at line 631 of file gen-node.hpp.
References GenNode::ScopeExplorer::scopes_.
|
private |
Definition at line 600 of file gen-node.hpp.
Referenced by GenNode::ScopeExplorer::ScopeExplorer(), GenNode::ScopeExplorer::checkPoint(), GenNode::ScopeExplorer::depth(), GenNode::ScopeExplorer::iterNext(), and GenNode::ScopeExplorer::yield().
|
friend |
Definition at line 641 of file gen-node.hpp.
Collaboration diagram for GenNode::ScopeExplorer: