MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / pop

Method pop

framework/stagestack.cpp:18–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16}
17
18sp<Stage> StageStack::pop()
19{
20 sp<Stage> result = this->current();
21
22 if (result)
23 {
24 result->finish();
25 Stack.pop_back();
26 }
27
28 // If there's still an item on the stack, resume it
29 if (this->current())
30 this->current()->resume();
31
32 return result;
33}
34
35sp<Stage> StageStack::current()
36{

Callers 15

clearMethod · 0.95
getAccuracyMethod · 0.80
loadVoxelSliceMethod · 0.80
loadImageSetMethod · 0.80
loadImageMethod · 0.80
loadPaletteMethod · 0.80
runMethod · 0.80
mixingCallbackMethod · 0.80
playMusicMethod · 0.80
setTrackMethod · 0.80
stopMusicMethod · 0.80

Calls 3

currentMethod · 0.95
finishMethod · 0.45
resumeMethod · 0.45

Tested by

no test coverage detected