2.2.3.10.19 PropertyNode::sVals2

ClassName

PropertyNode

AccessType

public

Name

sVals2

Declaration

matrix<short> sVals2

Remark

Examples

EX1

void PropertyNode_sVals2_ex1()
{
    Tree tr;
    TreeNode trN = tr.AddNode("node1",1);
    
    matrix<short> mats = {
        {1,2,3},
        {4,5,6},
        {7,8,9}
    };
    trN.sVals2 = mats;    //Assign matrix values to tree node
    
    matrix<short> matCheck;
    matCheck = trN.sVals2;
    
    printf("node1 = \n");
    for(int ii = 0; ii < matCheck.GetNumRows(); ii++)
    {
        for(int jj = 0; jj < matCheck.GetNumCols(); jj++)
            printf("%d\t",matCheck[ii][jj]);
        printf("\n");
    }
}

Description

Matrix of shrot integer values of the node.

Header to Include

origin.h

See Also

PropertyNode::sVals

Reference