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

#include "steam/mobject/session/session-service-mock-index.hpp"

Description

there is an implicit PlacementIndex available on a global level, by default implemented within the current session.

This Service temporarily overlays a newly created mock instance, e.g. for tests.

Returns
smart-ptr managing a newly created mock index instance. Any implicit access to the session's placement index will be redirected to that instance. When the smart-ptr reaches use-count zero, access to the original PlacementIndex will be restored.

Definition at line 61 of file session-service-mock-index.hpp.

Static Public Member Functions

static PPIdx install ()
 Re-define the implicit PlacementIndex temporarily, e.g. More...
 

Member Function Documentation

◆ install()

PPIdx install ( )
static

Re-define the implicit PlacementIndex temporarily, e.g.

for unit tests.

Definition at line 147 of file session-services.cpp.

References MObject::create.

Referenced by steam::mobject::session::test::build_testScopes().

+ Here is the caller graph for this function:
+ Collaboration diagram for SessionServiceMockIndex:

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