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

Description

Test:
handling of current query focus when navigating a system of nested scopes. Using a pseudo-session (actually just a PlacementIndex), this test accesses some nested scopes and then checks moving the "current scope". Moreover a (stack-like) sub-focus is created, temporarily moving aside the current focus and returning later on.
See also
mobject::PlacementIndex
mobject::session::ScopePath
mobject::session::QueryFocus

Definition at line 58 of file query-focus-test.cpp.

Private Member Functions

virtual void run (Arg)
 
void checkNavigation (QueryFocus &focus)
 
void manipulate_subFocus ()
 

Member Function Documentation

◆ run()

virtual void run ( Arg  )
inlineprivatevirtual

Definition at line 63 of file query-focus-test.cpp.

References steam::mobject::session::test::build_testScopes(), QueryFocus_test::checkNavigation(), QueryFocus_test::manipulate_subFocus(), and QueryFocus::reset().

+ Here is the call graph for this function:

◆ checkNavigation()

void checkNavigation ( QueryFocus focus)
inlineprivate
Test:
move the current focus to different locations and discover contents there.

Definition at line 91 of file query-focus-test.cpp.

References ScopePath::contains(), QueryFocus::currentPath(), QueryFocus::explore(), ScopePath::getLeaf(), Scope::getParent(), Scope::isRoot(), QueryFocus::query(), QueryFocus::reset(), and QueryFocus::shift().

Referenced by QueryFocus_test::run().

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

◆ manipulate_subFocus()

void manipulate_subFocus ( )
inlineprivate
Test:
side-effect free manipulation of a sub-focus, while the original focus is pushed aside (stack)

Definition at line 123 of file query-focus-test.cpp.

References QueryFocus::explore(), QueryFocus::pop(), QueryFocus::push(), and QueryFocus::shift().

Referenced by QueryFocus_test::run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:
+ Inheritance diagram for QueryFocus_test:
+ Collaboration diagram for QueryFocus_test:

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