Lumiera 0.pre.04~rc.1
»edit your freedom«
Loading...
Searching...
No Matches
PlacementScope_test Class Reference

Description

Test:
basic behaviour of the nested placement search scopes. Using a pseudo-session (actually just a PlacementIndex), this test creates some nested scopes and then...
  • discovers the scope of a placement
  • finds the parent scope
  • enumerates a scope path up to root
See also
mobject::Placement
mobject::session::ScopePath
mobject::session::QueryFocus

Definition at line 70 of file placement-scope-test.cpp.

Private Member Functions

virtual void run (Arg)
 
void verifyLookup (PPIdx sess)
 
void verifyEquality ()
 
void verifyNavigation (PPIdx sess)
 

Member Function Documentation

◆ run()

virtual void run ( Arg  )
inlineprivatevirtual

Definition at line 74 of file placement-scope-test.cpp.

References steam::mobject::session::test::build_testScopes(), PlacementScope_test::verifyEquality(), PlacementScope_test::verifyLookup(), and PlacementScope_test::verifyNavigation().

+ Here is the call graph for this function:

◆ verifyLookup()

void verifyLookup ( PPIdx  sess)
inlineprivate
Test:
for each Placement in our test "session", find the scope and verify it's in line with the index

Definition at line 92 of file placement-scope-test.cpp.

References Scope::containing().

Referenced by PlacementScope_test::run().

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

◆ verifyEquality()

void verifyEquality ( )
inlineprivate
Test:
equality of scopes is based on the ID of the scope top (Placement)

Definition at line 119 of file placement-scope-test.cpp.

References Placement< MO, B >::getID(), Scope::getParent(), Scope::getTop(), and steam::mobject::session::test::retrieve_startElm().

Referenced by PlacementScope_test::run().

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

◆ verifyNavigation()

void verifyNavigation ( PPIdx  sess)
inlineprivate
Test:
for each element in our test session, establish the scope and retrieve the path to root, verifying the parent relationships as we go up.
Note
this is the "raw" path, i.e as stored in the PlacementIndex, as opposed to the effective path, which might digress for meta-clips

Definition at line 155 of file placement-scope-test.cpp.

References Scope::containing(), Scope::getParent(), Scope::getTop(), Scope::isRoot(), and VERIFY_ERROR.

Referenced by PlacementScope_test::run().

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

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