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

Method CStatTreeItemBase

src/StatTree.cpp:57–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55
56#ifdef CLIENT_GUI
57CStatTreeItemBase::CStatTreeItemBase(const CECTag *tag)
58 : m_label(static_cast<const CEC_StatTree_Node_Tag*>(tag)->GetDisplayString()),
59 m_uniqueid(tag->GetTagByNameSafe(EC_TAG_STATTREE_NODEID)->GetInt())
60{
61 wxASSERT(tag->GetTagName() == EC_TAG_STATTREE_NODE);
62
63 for (CECTag::const_iterator it = tag->begin(); it != tag->end(); ++it) {
64 const CECTag *tmp = & *it;
65 if (tmp->GetTagName() == EC_TAG_STATTREE_NODE) {
66 m_children.push_back(new CStatTreeItemBase(tmp));
67 }
68 }
69}
70#endif /* CLIENT_GUI */
71
72CStatTreeItemBase::~CStatTreeItemBase()

Callers

nothing calls this directly

Calls 6

GetTagByNameSafeMethod · 0.80
GetTagNameMethod · 0.80
GetDisplayStringMethod · 0.45
GetIntMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected