![]() |
Lumiera 0.pre.04
»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 const & | PMO |
| typedef PlacementMO::ID const & | PID |
Static Public Member Functions | |
| static PID | attach_toModel (PMO, PID) |
| attach an object by placement onto the session. | |
| static bool | detach_and_clear (PID) |
| detach the denoted element from the model including all children. | |
| static bool | detach (PID) |
| detach the denoted leaf element from the model. | |
| typedef PlacementMO const& PMO |
Definition at line 55 of file session-service-mutate.hpp.
| typedef PlacementMO::ID const& PID |
Definition at line 56 of file session-service-mutate.hpp.
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.
Referenced by MORef< MO >::attach().
Here is the caller graph for this function:
|
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().
Here is the caller graph for this function:
|
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.
Collaboration diagram for SessionServiceMutate: