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

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

List of all members.

Public Member Functions

 ArrayChildren (ChildrenListManager manager)
void refreshOrdering ()
ChildrenManager getChildrenManager ()
GPNode findChildByName (String name)
GPNode getParentNode ()
void addNode (GPNode node)
void addNodes (GPNode[] gpNodes)
boolean removeNode (GPNode node)
boolean removeNodes (GPNode[] gpNodes)
void clear ()
Iterator iterator ()

Protected Member Functions

void addNotify ()
void removeNotify ()

Private Attributes

ChildrenListManager manager
final Node[] nodeArray = new Node[1]

Detailed Description

ArrayChildren

Author:
lmestre, vbaggiol

Constructor & Destructor Documentation

cern::gp::nodes::children::ChildrenFactory::ArrayChildren::ArrayChildren ( ChildrenListManager  manager  )  [inline]

Member Function Documentation

void cern::gp::nodes::children::ChildrenFactory::ArrayChildren::addNode ( GPNode  node  )  [inline]

Adds the new node to this list

Parameters:
node the node to add to this list

Implements cern::gp::nodes::children::NodeList.

References cern::gp::nodes::GPNode::getPeerNode(), and nodeArray.

void cern::gp::nodes::children::ChildrenFactory::ArrayChildren::addNodes ( GPNode[]  nodes  )  [inline]

Adds all nodes in the given array to this list

Parameters:
nodes an array of nodes to add to this list

Implements cern::gp::nodes::children::NodeList.

References cern::gp::nodes::children::ChildrenFactory::convertGPNodeArrayToNodeArray().

void cern::gp::nodes::children::ChildrenFactory::ArrayChildren::addNotify (  )  [inline, protected]
void cern::gp::nodes::children::ChildrenFactory::ArrayChildren::clear (  )  [inline]

Removes all nodes from this collection

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

GPNode cern::gp::nodes::children::ChildrenFactory::ArrayChildren::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::ArrayChildren::getChildrenManager (  )  [inline]

Returns the ChildrenManager this collection is managed with

Returns:
the ChildrenManager this collection is managed with

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

References manager.

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

Gets the parent node of this collection of children

Returns:
the parent node of those children

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

Iterator cern::gp::nodes::children::ChildrenFactory::ArrayChildren::iterator (  )  [inline]

Returns an iterator over the nodes in this list in proper sequence.

Returns:
an iterator over the nodes in this list in proper sequence.

Implements cern::gp::nodes::children::NodeList.

void cern::gp::nodes::children::ChildrenFactory::ArrayChildren::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.

boolean cern::gp::nodes::children::ChildrenFactory::ArrayChildren::removeNode ( GPNode  node  )  [inline]

Removes the node from this list

Parameters:
node the node to remove from the list
Returns:
true if a node has been removed false else.

Implements cern::gp::nodes::children::NodeList.

References cern::gp::nodes::GPNode::getPeerNode(), and nodeArray.

boolean cern::gp::nodes::children::ChildrenFactory::ArrayChildren::removeNodes ( GPNode[]  nodes  )  [inline]

Removes all nodes from this list

Parameters:
nodes the nodes to remove from the list
Returns:
true if all nodes have been removed false else.

Implements cern::gp::nodes::children::NodeList.

References cern::gp::nodes::children::ChildrenFactory::convertGPNodeArrayToNodeArray().

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

Member Data Documentation

Referenced by addNotify(), and getChildrenManager().

Referenced by addNode(), and removeNode().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2