

Public Member Functions | |
| SortedMapChildren (ChildrenMapManager manager, Comparator comparator) | |
| void | refreshOrdering () |
| ChildrenManager | getChildrenManager () |
| GPNode | findChildByName (String name) |
| GPNode | getParentNode () |
| final void | addNode (Object key, GPNode node) |
| void | addNodes (java.util.Map nodesMap) |
| void | addNode (GPNode node) |
| void | addNodes (GPNode[] gpNodes) |
| final GPNode | removeNode (Object key) |
| final void | removeNodes (Object[] keys) |
| final GPNode | getNode (Object key) |
| void | clear () |
| Set | keySet () |
Protected Member Functions | |
| void | addNotify () |
| void | removeNotify () |
Private Attributes | |
| ChildrenMapManager | manager |
| cern::gp::nodes::children::ChildrenFactory::SortedMapChildren::SortedMapChildren | ( | ChildrenMapManager | manager, | |
| Comparator | comparator | |||
| ) | [inline] |
| void cern::gp::nodes::children::ChildrenFactory::SortedMapChildren::addNode | ( | GPNode | node | ) | [inline] |
Adds the new node to the map using the name returned by the method node.getName() as the key.
| node | the node to add to the map |
Implements cern::gp::nodes::children::NodeMap.
References cern::gp::nodes::GPNode::getName(), and cern::gp::nodes::GPNode::getPeerNode().
| final void cern::gp::nodes::children::ChildrenFactory::SortedMapChildren::addNode | ( | Object | key, | |
| GPNode | node | |||
| ) | [inline] |
Adds the new node to the map using the given key
| key | the key of the node to add | |
| node | the node to add to the map |
Implements cern::gp::nodes::children::NodeMap.
References cern::gp::nodes::GPNode::getPeerNode().
| void cern::gp::nodes::children::ChildrenFactory::SortedMapChildren::addNodes | ( | GPNode[] | nodes | ) | [inline] |
Adds all nodes in the given array to the map using the name returned by the method node.getName() as the key for each node.
| nodes | the nodes to add to the map |
Implements cern::gp::nodes::children::NodeMap.
| void cern::gp::nodes::children::ChildrenFactory::SortedMapChildren::addNodes | ( | java.util.Map | nodesMap | ) | [inline] |
| void cern::gp::nodes::children::ChildrenFactory::SortedMapChildren::addNotify | ( | ) | [inline, protected] |
References cern::gp::nodes::children::ChildrenMapManager::initChildrenMap(), and manager.
| void cern::gp::nodes::children::ChildrenFactory::SortedMapChildren::clear | ( | ) | [inline] |
Removes all nodes from this collection
Implements cern::gp::nodes::children::NodeCollection.
| GPNode cern::gp::nodes::children::ChildrenFactory::SortedMapChildren::findChildByName | ( | String | name | ) | [inline] |
Finds a child node by name.
| <code>name</code> | the name of the child node to find or null if any arbitrary child may be returned |
Implements cern::gp::nodes::children::NodeCollection.
| ChildrenManager cern::gp::nodes::children::ChildrenFactory::SortedMapChildren::getChildrenManager | ( | ) | [inline] |
Returns the ChildrenManager this collection is managed with
ChildrenManager this collection is managed with Implements cern::gp::nodes::children::NodeCollection.
References manager.
| final GPNode cern::gp::nodes::children::ChildrenFactory::SortedMapChildren::getNode | ( | Object | key | ) | [inline] |
Returns the node associated to the given key or null
| key | the key of the node to return |
Implements cern::gp::nodes::children::NodeMap.
Referenced by getParentNode(), and removeNode().
| GPNode cern::gp::nodes::children::ChildrenFactory::SortedMapChildren::getParentNode | ( | ) | [inline] |
Gets the parent node of this collection of children
Implements cern::gp::nodes::children::NodeCollection.
References getNode().
| Set cern::gp::nodes::children::ChildrenFactory::SortedMapChildren::keySet | ( | ) | [inline] |
Returns a set view of the keys contained in this map.
Implements cern::gp::nodes::children::NodeMap.
| void cern::gp::nodes::children::ChildrenFactory::SortedMapChildren::refreshOrdering | ( | ) | [inline] |
Signal this collection that it should refresh the ordering of its member using the sorting mecanism already in place. This method should only be called in the case the collection is ordered and the ordering criteria has been dynamically updated. The method should not have any effect in case the collection is not already sorted.
Implements cern::gp::nodes::children::NodeCollection.
| final GPNode cern::gp::nodes::children::ChildrenFactory::SortedMapChildren::removeNode | ( | Object | key | ) | [inline] |
Removes the node associated to the given key
| key | the key of the node to remove |
Implements cern::gp::nodes::children::NodeMap.
References getNode().
| final void cern::gp::nodes::children::ChildrenFactory::SortedMapChildren::removeNodes | ( | Object[] | keys | ) | [inline] |
Removes all nodes associated to the given keys
| keys | the keys of the nodes to remove |
Implements cern::gp::nodes::children::NodeMap.
| void cern::gp::nodes::children::ChildrenFactory::SortedMapChildren::removeNotify | ( | ) | [inline, protected] |
Referenced by addNotify(), and getChildrenManager().
1.6.2