PropertyNode::nVals

ClassName

PropertyNode

AccessType

public

Name

nVals

Declaration

vector<int> nVals

Remark

Examples

EX1

void PropertyNode_nVals_ex1()
{
    Tree tr;
    TreeNode trN = tr.AddNode("node1",1);
 
    vector<int> vnData = {1,2,3,4,5};
    trN.nVals = vnData;    //Assign integer values to tree node
 
    vector<int> vecCheck;
    vecCheck = trN.nVals; 
    
    for(int ii = 0; ii < vecCheck.GetSize(); ii++)
        printf("%d\t",vecCheck[ii]);
    //Result: 1           2       3       4       5
}

Description

Vector of integer values of the node.

header to Include

origin.h

See Also

PropertyNode::nVal, PropertyNode::nVals2

Reference