2.2.3.10.18 PropertyNode::sVals

ClassName

PropertyNode

AccessType

public

Name

sVals

Declaration

vector<short> sVals

Remark

Examples

EX1

void PropertyNode_sVals_ex1()
{
    Tree tr;
    TreeNode trN = tr.AddNode("node1",1);
    
    vector<short> vsData = {1,2,3,4,5};
    trN.sVals = vsData;    //Assign short integer values to tree node
    
    vector<short> vecCheck;
    vecCheck = trN.sVals; 

    for(int ii = 0; ii < vecCheck.GetSize(); ii++)
        printf("%d\t",vecCheck[ii]);
}

Description

Vector of short integer values of the node.

Header to Include

origin.h

See Also

PropertyNode::sVals2

Reference