Graph::Graph< NodeData, EdgeData > Class Template Reference

#include <math/graph.h>

Inherits Graph::GraphBase.

Inheritance diagram for Graph::Graph< NodeData, EdgeData >:

Inheritance graph
[legend]
Collaboration diagram for Graph::Graph< NodeData, EdgeData >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void Add (const Graph &right)
int AddNode (const NodeData &nd)
int AddEdge (const int n0, const int n1)
int AddEdge (const int n0, const int n1, const EdgeData &ed)
void Clear ()
bool ContainsNode (const NodeData &value) const
const NodeData & GetNodeData (const int nodeNum) const
void SetEdgeData (const int edgeNum, const EdgeData &ed)

Protected Attributes

std::vector< NodeData > m_NodeData
std::vector< EdgeData > m_EdgeData

Detailed Description

template<class NodeData, class EdgeData>
class Graph::Graph< NodeData, EdgeData >

Definition at line 85 of file graph.h.


Member Function Documentation

template<class NodeData, class EdgeData>
void Graph::Graph< NodeData, EdgeData >::Add const Graph< NodeData, EdgeData > &  right  ) 
 

Referenced by PL_PrmIjg::MergeGraphs().

template<class NodeData, class EdgeData>
int Graph::Graph< NodeData, EdgeData >::AddEdge const int  n0,
const int  n1,
const EdgeData &  ed
 

Definition at line 137 of file graph.h.

References Graph::GraphBase::AddEdge(), and Graph::Graph< NodeData, EdgeData >::SetEdgeData().

Here is the call graph for this function:

template<class NodeData, class EdgeData>
int Graph::Graph< NodeData, EdgeData >::AddEdge const int  n0,
const int  n1
 

Reimplemented from Graph::GraphBase.

Definition at line 128 of file graph.h.

References Graph::GraphBase::AddEdge().

Here is the call graph for this function:

template<class NodeData, class EdgeData>
int Graph::Graph< NodeData, EdgeData >::AddNode const NodeData &  nd  ) 
 

Definition at line 117 of file graph.h.

References Graph::GraphBase::AddNode(), and Graph::Graph< NodeData, EdgeData >::m_NodeData.

Referenced by PL_PrmIjg::CreateNewGraph().

Here is the call graph for this function:

template<class NodeData, class EdgeData>
void Graph::Graph< NodeData, EdgeData >::Clear  ) 
 

Reimplemented from Graph::GraphBase.

Definition at line 148 of file graph.h.

References Graph::GraphBase::Clear(), Graph::Graph< NodeData, EdgeData >::m_EdgeData, and Graph::Graph< NodeData, EdgeData >::m_NodeData.

Referenced by PL_PrmIjg::MergeGraphs().

Here is the call graph for this function:

template<class NodeData, class EdgeData>
bool Graph::Graph< NodeData, EdgeData >::ContainsNode const NodeData &  value  )  const
 

Definition at line 159 of file graph.h.

References Graph::Graph< NodeData, EdgeData >::m_NodeData.

template<class NodeData, class EdgeData>
const NodeData & Graph::Graph< NodeData, EdgeData >::GetNodeData const int  nodeNum  )  const
 

Definition at line 169 of file graph.h.

References Graph::GraphBase::GetNumNodes(), IJG_Assert, and Graph::Graph< NodeData, EdgeData >::m_NodeData.

Referenced by PL_PrmIjg::AddNodeToGraph(), PL_PrmIjg::MergeGraphs(), and PL_PrmIjg::PrintGraph().

Here is the call graph for this function:

template<class NodeData, class EdgeData>
void Graph::Graph< NodeData, EdgeData >::SetEdgeData const int  edgeNum,
const EdgeData &  ed
 

Definition at line 185 of file graph.h.

References Graph::Graph< NodeData, EdgeData >::m_EdgeData.

Referenced by Graph::Graph< NodeData, EdgeData >::AddEdge().


Member Data Documentation

template<class NodeData, class EdgeData>
std::vector< EdgeData > Graph::Graph< NodeData, EdgeData >::m_EdgeData [protected]
 

Definition at line 98 of file graph.h.

Referenced by Graph::Graph< NodeData, EdgeData >::Clear(), and Graph::Graph< NodeData, EdgeData >::SetEdgeData().

template<class NodeData, class EdgeData>
std::vector< NodeData > Graph::Graph< NodeData, EdgeData >::m_NodeData [protected]
 

Definition at line 97 of file graph.h.

Referenced by Graph::Graph< NodeData, EdgeData >::AddNode(), Graph::Graph< NodeData, EdgeData >::Clear(), Graph::Graph< NodeData, EdgeData >::ContainsNode(), and Graph::Graph< NodeData, EdgeData >::GetNodeData().


The documentation for this class was generated from the following file:
Generated on Sat Apr 1 22:07:55 2006 for Motion Planning Kernel by  doxygen 1.4.6-NO