TreeNode::IsValid

Description

Checks if a given node is a valid node or not

Syntax

BOOL IsValid( )

Parameters

Return

TRUE if the node is valid; FALSE otherwise.

Examples

EX1

void TreeNode_IsValid_ex1()
{
    Tree myTree;
    TreeNode tn1;
    bool flag = tn1.IsValid();
    out_int("", flag); // 0
    
    tn1 = myTree.AddTextNode("abc", "node1", 2);
    flag = tn1.IsValid();
    out_int("", flag); // 1
}

Remark

See Also

Header to Include

origin.h