MCPcopy Create free account
hub / github.com/alliedmodders/sourcemod / SafeFrameIterator

Method SafeFrameIterator

core/logic/FrameIterator.cpp:34–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32#include "FrameIterator.h"
33
34SafeFrameIterator::SafeFrameIterator(IFrameIterator *it)
35{
36 while (!it->Done())
37 {
38 FrameInfo info = FrameInfo(it);
39 frames.push_back(info);
40 it->Next();
41 }
42
43 it->Reset();
44 current = 0;
45}
46
47bool SafeFrameIterator::Done() const
48{

Callers

nothing calls this directly

Calls 5

FrameInfoClass · 0.85
DoneMethod · 0.80
push_backMethod · 0.80
NextMethod · 0.45
ResetMethod · 0.45

Tested by

no test coverage detected