OScript API/Built-in Package Index |
The CacheTree class is used to maintain a tree of parent-child relationships with a data value attached to each relationship. The keys for the parent and child objects are Integer values. A single data value, of any type, can be associated with each key. The CacheTree can be queried regarding parent-child relations, such as whether a given key is a descendant or ancestor of some specified key.
Used to test the type of a Dynamic value.
Creates a new parent-child relationship.
Creates an empty CacheTree object.
Returns the data value associated with the specified key.
Returns TRUE if the test child key is an ancestor of the specified key.
Returns TRUE if the test child key is a descendant of the specified key.
Returns the parent key for the specified key.
Resets the data value maintained for the specified key.
Used to test the type of a Dynamic value.
Creates a new parent-child relationship. Adds the parent key, parentKey, to the CacheTree if it is not already present, adds the child Key, childKey, to the CacheTree if is not already present, and makes sure the child key references the specified parent key. The specified child data value, childData, is saved along with the child key.
The CacheTree to manipulate.
The Integer key of the child.
The Integer key of the parent.
A value of any type to be attached to the child.
Returns FALSE.
Returns the data value associated with the specified key.
The CacheTree to manipulate.
The key of the entry whose associated data value will be returned.
The data value associated with the specified key, if the specified key is not in the CacheTree Undefined will be returned.
Returns TRUE if the test child key is an ancestor of the specified key. The parent key of the child key, testChildKey, must be specified as testParentKey.
Returns TRUE if the test child key is an ancestor of the specified key.
The CacheTree.
The Key for which the testChildKey's ancestry is tested.
The Parent Key for testChildKey.
The child key that is tested to determine if it is an ancestor of the specified Key.
Returns TRUE if the test child key is an ancestor of the specified key.
Returns TRUE if the test child key is a descendant of the specified key. The parent key of the child key, testChildKey, must be specified as testParentKey.
The CacheTree.
The key for which testChildKey may be a descendant.
The parent key of testChildKey.
The key which may be a descendant of key.
Returns TRUE if the test child key is a descendant of the specified key.
Returns the Parent Key for the specified entry.
The CacheTree.
The child key whose parent key will be returned.
The parent key of the specified key.
Reset the data value maintained for the specified key. No action is performed if the specified key does not exist.
The CacheTree to manipulate.
The key to which the data value is associated.
The new data value to be associated with the specified key.
TRUE if the specified key was in the CacheTree, otherwise FALSE.
Copyright © 2021 OpenText Corporation. All rights reserved. |