| 258 | } |
| 259 | |
| 260 | void Scene::Push(std::shared_ptr<Scene> const& new_scene, bool pop_stack_top) { |
| 261 | if (pop_stack_top) { |
| 262 | old_instances.push_back(instances.back()); |
| 263 | instances.pop_back(); |
| 264 | } |
| 265 | |
| 266 | instances.push_back(new_scene); |
| 267 | instance = new_scene; |
| 268 | |
| 269 | push_pop_operation = ScenePushed; |
| 270 | |
| 271 | DEBUG_VALIDATE("Push"); |
| 272 | } |
| 273 | |
| 274 | std::shared_ptr<Scene> Scene::Peek() { |
| 275 | if (instances.size() == 1) |
no outgoing calls
no test coverage detected