Lumiera  0.pre.03
»edit your freedom«
PlacementIndex_test Class Reference

Description

Test:
basic behaviour of the index mechanism used to keep track of individual Placements as added to the current Session.
See also
mobject::Placement
mobject::MObject::create
mobject::Placement::addPlacement
mobject::Placement::resolve

Definition at line 59 of file placement-index-test.cpp.

Private Types

typedef PlacementIndex::iterator Iter
 

Private Member Functions

void checkContentsEnumeration (Idx index)
 
void checkInvalidRef (Idx index)
 
void checkScopeHandling (Idx index)
 
PMO::ID checkSimpleAccess (Idx index)
 
void checkSimpleInsertRemove (Idx index)
 
void checkTypedAccess (Idx index, PMO::ID elmID)
 
void discover (Idx index, Iter iter, uint level)
 
void has_size (uint siz, Idx index)
 
virtual void run (Arg)
 

Static Private Member Functions

static string indent (uint level)
 

Member Function Documentation

◆ checkContentsEnumeration()

void checkContentsEnumeration ( Idx  index)
inlineprivate
Test:
drill down into the tree-like structure and enumerate the contents of each element, if any
Note
at this point, our test index holds 9 Placements, which actually refer to 3 distinct TestClip objects
  • two where installed into root scope in checkSimpleAccess()
  • one was installed below one of the above in checkTypedAccess()
  • checkScopeHandling() left back 6 instances, all pointing to the same TestClip. This can be verified in the test output (look at the use-cnt and the actual address of the pointee

Definition at line 293 of file placement-index-test.cpp.

References Placement< MO, B >::getID(), PlacementIndex::getReferrers(), and PlacementIndex::getRoot().

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

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