Lumiera
0.pre.03
»edit your freedom«
|
#include "steam/mobject/session/session-service-mutate.hpp"
Implementation-level service for resolving an Placement-ID.
Usually, this service is backed by the PlacementIndex of the current session – however, for the purpose of unit testing, this index may be overlaid temporarily, by using the SessionServiceMockIndex API.
Definition at line 52 of file session-service-mutate.hpp.
Public Types | |
typedef PlacementMO::ID const & | PID |
typedef PlacementMO const & | PMO |
Static Public Member Functions | |
static PID | attach_toModel (PMO, PID) |
attach an object by placement onto the session. More... | |
static bool | detach (PID) |
detach the denoted leaf element from the model. More... | |
static bool | detach_and_clear (PID) |
detach the denoted element from the model including all children. More... | |
|
static |
attach an object by placement onto the session.
Implemented by registering a copy of the Placement into the PlacementIndex in the session. This copy establishes a new kind of "object instance", represented by a new placement-ID, which is returned and can be used to refer to this "instance" within the session from now on.
scope | the (existing) parent scope where to attach the new element |
Definition at line 100 of file session-services.cpp.
|
static |
detach the denoted element from the model including all children.
Definition at line 112 of file session-services.cpp.
Referenced by MORef< MO >::purge().
|
static |
detach the denoted leaf element from the model.
error::Fatal | when attempting to remove the model root |
error::State | when the given element contains sub elements |
Definition at line 124 of file session-services.cpp.
References SessionServices< APIS, FRONT, SESS >::current.