MCPcopy Create free account
hub / github.com/acl-dev/acl / get_parent

Method get_parent

lib_acl_cpp/src/mime/mime_node.cpp:233–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

231}
232
233mime_node* mime_node::get_parent() const {
234 if (m_pParent) {
235 return m_pParent;
236 }
237
238 const MIME_NODE* node = m_pMimeNode->parent;
239 if (node == NULL) {
240 return NULL;
241 }
242 const_cast<mime_node*>(this)->m_pParent = NEW mime_node(m_emailFile.c_str(),
243 node, m_enableDecode, m_toCharset);
244 return m_pParent;
245}
246
247bool mime_node::has_parent() const {
248 return m_pMimeNode->parent != NULL;

Callers 15

doPostMethod · 0.80
testFunction · 0.80
test_buildFunction · 0.80
testFunction · 0.80
test_buildFunction · 0.80
test2Function · 0.80
doPostMethod · 0.80
doResponseMethod · 0.80
doPostMethod · 0.80
mainFunction · 0.80
testFunction · 0.80
testFunction · 0.80

Calls 2

mime_nodeClass · 0.50
c_strMethod · 0.45

Tested by 2

test_buildFunction · 0.64
test_buildFunction · 0.64