Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

cern::gp::nodes::children::ChildrenFactory::SortedMapChildren Class Reference

Inheritance diagram for cern::gp::nodes::children::ChildrenFactory::SortedMapChildren:

Inheritance graph
[legend]
Collaboration diagram for cern::gp::nodes::children::ChildrenFactory::SortedMapChildren:

Collaboration graph
[legend]
List of all members.

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

Detailed Description

SortedMapChildren

Author:
lmestre


Constructor & Destructor Documentation

cern::gp::nodes::children::ChildrenFactory::SortedMapChildren::SortedMapChildren ChildrenMapManager  manager,
Comparator  comparator
[inline]
 


Member Function Documentation

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.

Parameters:
node the node to add to the map

Implements cern::gp::nodes::children::NodeMap.

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

Parameters:
key the key of the node to add
node the node to add to the map

Implements cern::gp::nodes::children::NodeMap.

void cern::gp::nodes::children::ChildrenFactory::SortedMapChildren::addNodes GPNode[]  gpNodes  )  [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.

Parameters:
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]
 

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.

Parameters:
<code>name</code> the name of the child node to find or null if any arbitrary child may be returned
Returns:
return the node or null if it could not be found

Implements cern::gp::nodes::children::NodeCollection.

ChildrenManager cern::gp::nodes::children::ChildrenFactory::SortedMapChildren::getChildrenManager  )  [inline]
 

Returns the ChildrenManager this collection is managed with

Returns:
the ChildrenManager this collection is managed with

Implements cern::gp::nodes::children::NodeCollection.

final GPNode cern::gp::nodes::children::ChildrenFactory::SortedMapChildren::getNode Object  key  )  [inline]
 

Returns the node associated to the given key or null

Parameters:
key the key of the node to return
Returns:
the node associated with the key or null

Implements cern::gp::nodes::children::NodeMap.

GPNode cern::gp::nodes::children::ChildrenFactory::SortedMapChildren::getParentNode  )  [inline]
 

Gets the parent node of this collection of children

Returns:
the parent node of those children

Implements cern::gp::nodes::children::NodeCollection.

Set cern::gp::nodes::children::ChildrenFactory::SortedMapChildren::keySet  )  [inline]
 

Returns a set view of the keys contained in this map.

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

Parameters:
key the key of the node to remove
Returns:
the node that has been removed or null if the key did not match any node.

Implements cern::gp::nodes::children::NodeMap.

final void cern::gp::nodes::children::ChildrenFactory::SortedMapChildren::removeNodes Object[]  keys  )  [inline]
 

Removes all nodes associated to the given keys

Parameters:
keys the keys of the nodes to remove

Implements cern::gp::nodes::children::NodeMap.

void cern::gp::nodes::children::ChildrenFactory::SortedMapChildren::removeNotify  )  [inline, protected]
 


Member Data Documentation

ChildrenMapManager cern::gp::nodes::children::ChildrenFactory::SortedMapChildren::manager [private]
 


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 03:08:35 2009 for ACS Java API by doxygen 1.3.8