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

Description

Test:
how to discover contents or location of a container-like part of the high-level model. As this container-like object is just a concept and actually implemented by the PlacementIndex, this means querying the index for elements registered with a given scope or finding the enclosing scopes. The discovered elements will be filtered by a runtime type check.
Todo:
change that to use a more realistic test session, based on the actual model types //////////////// TICKET #532
See also
mobject::session::PlacementIndex
mobject::session::QueryResolver
mobject::session::ContentsQuery

Definition at line 87 of file scope-query-test.cpp.

Private Member Functions

virtual void run (Arg)
 

Static Private Member Functions

template<class MO >
static void discover (ScopeQuery< MO > const &query, Literal description)
 
template<class MO >
static ScopeQuery< MO >::iterator issue (ScopeQuery< MO > const &query)
 

Member Function Documentation

◆ run()

virtual void run ( Arg  )
inlineprivatevirtual

◆ discover()

template<class MO >
static void discover ( ScopeQuery< MO > const &  query,
Literal  description 
)
inlinestaticprivate

Definition at line 122 of file scope-query-test.cpp.

References ScopeQuery_test::issue().

Referenced by ScopeQuery_test::run().

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

◆ issue()

template<class MO >
static ScopeQuery< MO >::iterator issue ( ScopeQuery< MO > const &  query)
inlinestaticprivate

Definition at line 130 of file scope-query-test.cpp.

References SessionServiceExploreScope::getResolver(), and Query< RES >::resolveBy().

Referenced by ScopeQuery_test::discover(), and ScopeQuery_test::run().

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

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