MCPcopy Create free account
hub / github.com/amule-project/amule / IsVisible

Method IsVisible

src/StatTree.cpp:237–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

235#endif
236
237bool CStatTreeItemSimple::IsVisible() const
238{
239 if (m_flags & stHideIfZero) {
240 switch (m_valuetype) {
241 case vtInteger: return m_intvalue != 0;
242 case vtFloat: return m_floatvalue != 0.0;
243 case vtString: return !m_stringvalue.IsEmpty();
244 default: return false;
245 }
246 }
247 return true;
248}
249
250void CStatTreeItemSimple::AddECValues(CECTag *tag) const
251{

Callers 3

HasVisibleChildrenMethod · 0.45
GetFirstVisibleChildMethod · 0.45
GetNextVisibleChildMethod · 0.45

Calls 1

IsEmptyMethod · 0.45

Tested by

no test coverage detected