2.1.26.33 tree_GETN_reset_hidden_values


Description

walk GETN tree and reset node values if hidden

Syntax

int tree_GETN_reset_hidden_values( TreeNode & tr, const vector<int> & vnDataIDsToReset, bool bRecursive = true )

Parameters

tr
[modify] tree to walk to reset, must be an GetN tree constructed with GETN_TREE etc macros
vnDataIDsToReset
[input] tr.DataID list to reset, must be sorted assending as it is assumed.
bRecursive
[input]true to walk entire tree, false to walk only child nodes

Return

number of values reset

Examples

EX1

#include <GetNBox.h>
void test_tree_GETN_reset_hidden_values_ex1()
{        
    GETN_TREE(tr);
    GETN_CHECK(check, "Print?", 1);    
    GETN_ID(4);   
    GETN_STR(printed, "Printed Document", "Test1");
    GETN_ID(8);
    
    tr.check.Show = 0;
    
    vector<int> vn = {4};
    int nn = tree_GETN_reset_hidden_values(tr, vn);
}

Remark

See Also

Header to Include

origin.h

Reference