2.3.1.9 GETN_BOX


Name

GETN_BOX

Declaration

#define GETN_BOX(_TR_NAME)	GETN_NAMED_TREE(_TR_NAME, GetNBox)

Remark

GETN_BOX constructs a base GetNbox tree.

This macro type can only be used once in one function, otherwise it will create "duplicate declaration" compile error

The same as: GETN_TREE, GETN_USE,

Parameters

_TR_NAME
[input]The tree name.

Return

Examples

EX1

#include <GetNbox.h>
void GETN_BOX_ex1()
{
    GETN_BOX( treeTest );
    GETN_NUM(decayT1, "Number1", 12.3)
       GETN_NUM(decayT2, "Number2", pi)
    
    if( GetNBox( treeTest ))
        out_tree( treeTest );
}

See Also

GETN_USE, GETN_TREE, GETN_OPTION_MANUAL_RESIZE

Header to Include

GetNbox.h

Reference