MCPcopy Create free account
hub / github.com/KLayout/klayout / clear

Method clear

src/laybasic/laybasic/layBitmap.cc:121–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121void
122Bitmap::clear ()
123{
124 for (std::vector<uint32_t *>::iterator i = m_scanlines.begin (); i != m_scanlines.end (); ++i) {
125 if (*i) {
126 m_free.push_back (*i);
127 }
128 }
129 for (std::vector<uint32_t *>::iterator i = m_scanlines.begin (); i != m_scanlines.end (); ++i) {
130 *i = 0;
131 }
132 m_last_sl = m_first_sl = 0;
133}
134
135void
136Bitmap::cleanup ()

Callers 15

layRenderer.ccFile · 0.45
layBitmap.ccFile · 0.45
clear_pathFunction · 0.45
findMethod · 0.45
find_internalMethod · 0.45
copy_fromMethod · 0.45
shutdownMethod · 0.45
reset_titleMethod · 0.45
set_line_stylesMethod · 0.45
set_dither_patternMethod · 0.45

Calls 3

beginMethod · 0.45
endMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected