2.3.1.24 GETN_CURRENT_NODE


Name

GETN_CURRENT_NODE

Declaration

#define	GETN_CURRENT_NODE		_tmpNode

Remark

Parent of the current node. It can be used when want to pass the current tree node to other functions.

Examples

EX1

#include <GetNbox.h>
void GETN_CURRENT_NODE_ex1()
{
    GETN_BOX( treeTest );
    add_node(GETN_CURRENT_NODE);	//pass the parent of the current tree node to other functions.
    GETN_CHECK(FixIntercept, "Fix Intercept", 0)
    if(GetNBox(treeTest))
        out_tree(treeTest);
}
void add_node(TreeNode& trNode)
{
	GETN_USE(trNode);
	GETN_CHECK(FixIntercept, "Fix Intercept", 0)
	if( GetNBox( trNode ))
        out_tree( trNode );
}

See Also

GETN_CURRENT_SUBNODE

Header to Include

GetNbox.h

Reference