Return TypeFunction nameArguments
boolhzXmlNode::IsAncestor(hzXmlNode*,)

Declared in file: hzDocument.h
Defined in file : hzDocXml.cpp

Function Logic:

0:START 1:!candidate 2:Return false 3:m_nLevel<=candidate->m_nLevel 4:Return false 5:pNode->m_nLevel>candidate->m_nLevel; 6:Return pNode==candidate?true:false

Function body:

bool hzXmlNode::IsAncestor (hzXmlNode* candidate)
{
   hzXmlNode*  pNode ;
   if (!candidate)
       return false ;
   if (m_nLevel <&eq; candidate->m_nLevel)
       return false ;
   for (pNode = this ; pNode->m_nLevel > candidate->m_nLevel ; pNode = pNode->Parent()) ;
   return pNode == candidate ? true : false ;
}