44 WorldPtr old_world =
world_.lock();
56 world->addObserver([
this](
const World::ObjectConstPtr&
object, World::Action action) {
notify(
object, action); });
61 WorldPtr world = other.world_.lock();
66 WorldWeakPtr(world).swap(
world_);
68 [
this](
const World::ObjectConstPtr&
object, World::Action action) {
notify(
object, action); });
76 WorldPtr old_world =
world_.lock();
87 WorldPtr old_world =
world_.lock();
93 world->addObserver([
this](
const World::ObjectConstPtr&
object,
World::Action action) {
notify(
object, action); });
98 WorldPtr old_world =
world_.lock();
105 WorldWeakPtr(world).swap(
world_);
108 world->addObserver([
this](
const World::ObjectConstPtr&
object,
World::Action action) {
notify(
object, action); });