NORSYS SOFTWARE © 2012 | NETICA API | C   VERSION   5.04  |
void SetNodeUserData_bn ( | node_bn* node, int kind, void* data ) |
Attaches to node the data pointed to by data. Only your program needs to be able to understand this data. It may point to whatever is desired, possibly a large structure with many fields. This information may later be recovered using GetNodeUserData_bn.
Pass 0 for kind. It is only for future expansion.
Only one user pointer may be attached to node at a time. When the net is written to file, the user pointer data is not included. For user-defined field-by-field data that gets saved to file, see SetNodeUserField_bn.
Likewise, when a node is duplicated (e.g., CopyNodes_bn and CopyNet_bn), this user data is not included.
Netica will not modify, free or duplicate the data, even if the node is freed or duplicated (although the duplicated node will contain the same pointer).
Version:
See also:
GetNodeUserData_bn | Retrieve it | |
SetNodeUserField_bn | Attach information field-by-field, and have it saved to file | |
SetNetUserData_bn | Attach a user pointer to the whole net |