A class for grouping objects.
|length||The number of members in the group.|
|addMember||Adds an object to the group.|
|indexOf||Returns the index of the object in the group.|
|isMember||Checks if the object is a member of the group.|
|removeMember||Removes an object from the group.|
|toFlatArray||Converts the group and any nested groups into a single Array of group members.|
|Group||Creates a reference to a group.|
|||Gets an individual group member by index.|
|int isMember( treenode object , int recursive )|
|object||The object to look for in the group.|
|recursive||Should groups contained by this group also be searched.|
|int||A 1 if the object is a member of the group, 0 otherwise.|
Checks if the object is a member of the group.
This code checks if Processor1 is a direct member of the group:
This code checks if Processor1 is a member of the group or the member of any of the groups contained by the group: