DefaultGNGContainer Class Reference

#include <DefaultGNGContainer.hpp>

Inheritance diagram for DefaultGNGContainer:

IGNGContainer RBFHiddenLayer List of all members.

Public Member Functions

virtual ~DefaultGNGContainer ()
virtual void SetNodeFactory (GNGNodeFactory *f)
 Sets the factory used to create Nodes.

virtual EdgeContainerGetEdges ()
 Returns a reference to the Edges.

virtual NodeContainerGetNodes ()
 Returns a reference to the Nodes.

virtual void DeleteEdge (EdgeContainer::iterator &i)
 Deletes the edge at i from the internal container.

virtual void DeleteEdge (GNGEdge *e)
 Deletes the edge e from the internal container.

virtual GNGEdgeCreateEdge (GNGNode *n1, GNGNode *n2)
 Creates a new edge between n1 and n2, stores it in the internal edge container and returns a pointer to the new edge.

virtual GNGNodeCreateNode ()
 Creates a new node, stores it in the internal node container and returns a pointer to the new node.

virtual void DeleteNode (NodeContainer::iterator &i)
 Deletes the node e from the internal container.


Protected Attributes

EdgeContainer m_edges
NodeContainer m_nodes
GNGNodeFactorym_nodeFactory

Constructor & Destructor Documentation

~DefaultGNGContainer  )  [virtual]
 


Member Function Documentation

virtual void SetNodeFactory GNGNodeFactory f  )  [virtual]
 

Sets the factory used to create Nodes.

Parameters:
the node factory

Implements IGNGContainer.

EdgeContainer & GetEdges  )  [virtual]
 

Returns a reference to the Edges.

Returns:
an EdgeContainer reference.

Implements IGNGContainer.

NodeContainer & GetNodes  )  [virtual]
 

Returns a reference to the Nodes.

Returns:
an NodeContainer reference.

Implements IGNGContainer.

void DeleteEdge EdgeContainer::iterator &  i  )  [virtual]
 

Deletes the edge at i from the internal container.

Parameters:
it the iterator positition of the edge to remove.

Implements IGNGContainer.

void DeleteEdge GNGEdge e  )  [virtual]
 

Deletes the edge e from the internal container.

Parameters:
e the edge to delete.

Implements IGNGContainer.

GNGEdge * CreateEdge GNGNode n1,
GNGNode n2
[virtual]
 

Creates a new edge between n1 and n2, stores it in the internal edge container and returns a pointer to the new edge.

Parameters:
n1 the first node to be connected.
n2 the second node to be connected.
Returns:
the newly created edge.

Implements IGNGContainer.

GNGNode * CreateNode  )  [virtual]
 

Creates a new node, stores it in the internal node container and returns a pointer to the new node.

Returns:
the newly created node.

Implements IGNGContainer.

Reimplemented in RBFHiddenLayer.

void DeleteNode NodeContainer::iterator &  i  )  [virtual]
 

Deletes the node e from the internal container.

Parameters:
e the node to delete.

Implements IGNGContainer.

Reimplemented in RBFHiddenLayer.


Member Data Documentation

EdgeContainer m_edges [protected]
 

NodeContainer m_nodes [protected]
 

GNGNodeFactory* m_nodeFactory [protected]
 


Generated on Mon Mar 22 16:40:48 2004 for GNG_GL by doxygen 1.3.6