Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
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

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

Static Private Member Functions

static string indent (uint level)
 

Member Typedef Documentation

◆ Iter

typedef PlacementIndex::iterator Iter
private

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

Member Function Documentation

◆ run()

virtual void run ( Arg  )
inlineprivatevirtual

◆ has_size()

void has_size ( uint  siz,
Idx  index 
)
inlineprivate

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

References PlacementIndex::size().

Referenced by PlacementIndex_test::run().

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

◆ checkSimpleInsertRemove()

void checkSimpleInsertRemove ( Idx  index)
inlineprivate

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

References PlacementIndex::contains(), TestClip::create(), PlacementIndex::getRoot(), PlacementIndex::insert(), PlacementIndex::remove(), and PlacementIndex::size().

Referenced by PlacementIndex_test::run().

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

◆ checkSimpleAccess()

PMO::ID checkSimpleAccess ( Idx  index)
inlineprivate

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

References TestClip::create(), PlacementIndex::find(), Placement< MO, B >::getID(), PlacementIndex::getRoot(), PlacementIndex::insert(), and steam::mobject::isSameDef().

Referenced by PlacementIndex_test::run().

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

◆ checkTypedAccess()

void checkTypedAccess ( Idx  index,
PMO::ID  elmID 
)
inlineprivate

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

References TestClip::create(), PlacementIndex::find(), Placement< MO, B >::getID(), PlacementIndex::insert(), and steam::mobject::session::test::LENGTH_TestClip.

Referenced by PlacementIndex_test::run().

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

◆ checkInvalidRef()

void checkInvalidRef ( Idx  index)
inlineprivate

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

References PlacementIndex::contains(), TestClip::create(), PlacementIndex::find(), PlacementIndex::getScope(), PlacementIndex::insert(), PlacementIndex::remove(), and VERIFY_ERROR.

+ Here is the call graph for this function:

◆ checkScopeHandling()

void checkScopeHandling ( Idx  index)
inlineprivate

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

References PlacementIndex::clear(), PlacementIndex::contains(), TestClip::create(), PlacementIndex::find(), Placement< MO, B >::getID(), PlacementIndex::getRoot(), PlacementIndex::getScope(), PlacementIndex::insert(), PlacementIndex::isValid(), PlacementIndex::remove(), PlacementIndex::size(), and VERIFY_ERROR.

Referenced by PlacementIndex_test::run().

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

◆ 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

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

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

Referenced by PlacementIndex_test::run().

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

◆ discover()

void discover ( Idx  index,
Iter  iter,
uint  level 
)
inlineprivate

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

References PlacementIndex_test::discover(), PlacementIndex::getReferrers(), and PlacementIndex_test::indent().

Referenced by PlacementIndex_test::checkContentsEnumeration(), and PlacementIndex_test::discover().

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

◆ indent()

static string indent ( uint  level)
inlinestaticprivate

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

Referenced by PlacementIndex_test::discover().

+ Here is the caller 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: