PrevNode
TreeNode
public
TreeNode PrevNode
EX1
void TreeNode_PrevNode_ex1() { Tree myTree1; TreeNode tn1, tn11, tn12, tnTmp; tn1 = myTree1.AddTextNode("abc", "Name", 1); tn11 = tn1.AddTextNode("def", "Addr", 11); tn12 = tn1.AddTextNode("ghi", "Mail", 12); out_tree(myTree1); /* myTree1 | Name(abc) / \ Addr(def) Mail(ghi) */ tnTmp = tn1.LastNode; // Start enumerating from the last node while(tnTmp.IsValid()) { out_str("Tag name = " + tnTmp.tagName); tnTmp = tnTmp.PrevNode; // Backward visiting } }
read only. The previous adjacent node of this node.
origin.h
TreeNode::NextNode, TreeNode::FirstNode, TreeNode::LastNode