MCPcopy Create free account
hub / github.com/TypesettingTools/Aegisub / Age

Method Age

src/grid_column.cpp:30–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28#include <wx/dc.h>
29
30void WidthHelper::Age() {
31 for (auto it = begin(widths), e = end(widths); it != e; ) {
32 if (it->second.age == age)
33 ++it;
34 else
35 it = widths.erase(it);
36 }
37 ++age;
38}
39
40int WidthHelper::operator()(boost::flyweight<std::string> const& str) {
41 if (str.get().empty()) return 0;

Callers 4

SetColumnWidthsMethod · 0.45
RenderMethod · 0.45
InvalidateMethod · 0.45
AgeCacheMethod · 0.45

Calls 3

beginFunction · 0.85
eraseMethod · 0.80
endFunction · 0.50

Tested by 1

AgeCacheMethod · 0.36