Lumiera  0.pre.03
»edit your freedom«
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 verifyEquality ()
 
void verifyLookup (PPIdx sess)
 
void verifyNavigation (PPIdx sess)
 

Member Function Documentation

◆ 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.

◆ 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(), and steam::mobject::session::test::retrieve_startElm().

+ Here is the call 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.

+ Inheritance diagram for PlacementScope_test:
+ Collaboration diagram for PlacementScope_test:

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