tspratt
01-20-2004, 08:54 AM
I am dynamically manipulating local data structures and need an application level unique id for nodes that I add.
I have discovered that datapointers inherit the getUID() method from LZNode.
Is this ID unique in my dynamic data set? If I use addNodeFromPointer(), will the copied nodes return unique id's?
And a related question occurs: If I know a data element's UID, can I reference IT directly by that ID? It would save me a lot of recursive searching, but it seems to good to be true.
I have discovered that datapointers inherit the getUID() method from LZNode.
Is this ID unique in my dynamic data set? If I use addNodeFromPointer(), will the copied nodes return unique id's?
And a related question occurs: If I know a data element's UID, can I reference IT directly by that ID? It would save me a lot of recursive searching, but it seems to good to be true.