Main   Class Hierarchy   Classes   Compound List   Files   Compound Members   File Members   Pages  

PathFind::Graph< NODEINFO, EDGEINFO >::Node Class Reference

#include <graph.h>

List of all members.


Detailed Description

template<class NODEINFO, class EDGEINFO>
class PathFind::Graph< NODEINFO, EDGEINFO >::Node

Node in a graph with generic data attached.

Definition at line 60 of file graph.h.

Public Member Functions

 Node ()
 Node (int nodeId, const NODEINFO &info)
void addOutEdge (const Edge &edge)
void removeOutEdge (int targetNodeId)
void clearOutEdges ()
NODEINFO & getInfo ()
const NODEINFO & getInfo () const
const vector< Edge > & getOutEdges () const

Private Attributes

int m_nodeId
vector< Edgem_outEdges
NODEINFO m_info


Constructor & Destructor Documentation

template<class NODEINFO, class EDGEINFO>
PathFind::Graph< NODEINFO, EDGEINFO >::Node::Node  )  [inline]
 

Definition at line 63 of file graph.h.

References PathFind::Graph< NODEINFO, EDGEINFO >::Node::m_nodeId.

template<class NODEINFO, class EDGEINFO>
PathFind::Graph< NODEINFO, EDGEINFO >::Node::Node int  nodeId,
const NODEINFO &  info
[inline]
 

Definition at line 67 of file graph.h.

References PathFind::Graph< NODEINFO, EDGEINFO >::Node::m_info, and PathFind::Graph< NODEINFO, EDGEINFO >::Node::m_nodeId.


Member Function Documentation

template<class NODEINFO, class EDGEINFO>
void PathFind::Graph< NODEINFO, EDGEINFO >::Node::addOutEdge const Edge edge  )  [inline]
 

Definition at line 72 of file graph.h.

References PathFind::Graph< NODEINFO, EDGEINFO >::Node::m_outEdges.

template<class NODEINFO, class EDGEINFO>
void PathFind::Graph< NODEINFO, EDGEINFO >::Node::clearOutEdges  )  [inline]
 

Definition at line 79 of file graph.h.

References PathFind::Graph< NODEINFO, EDGEINFO >::Node::m_outEdges.

template<class NODEINFO, class EDGEINFO>
const NODEINFO& PathFind::Graph< NODEINFO, EDGEINFO >::Node::getInfo  )  const [inline]
 

Definition at line 89 of file graph.h.

References PathFind::Graph< NODEINFO, EDGEINFO >::Node::m_info.

template<class NODEINFO, class EDGEINFO>
NODEINFO& PathFind::Graph< NODEINFO, EDGEINFO >::Node::getInfo  )  [inline]
 

Definition at line 84 of file graph.h.

References PathFind::Graph< NODEINFO, EDGEINFO >::Node::m_info.

Referenced by PathFind::Graph< NODEINFO, EDGEINFO >::getNodeInfo().

template<class NODEINFO, class EDGEINFO>
const vector<Edge>& PathFind::Graph< NODEINFO, EDGEINFO >::Node::getOutEdges  )  const [inline]
 

Definition at line 94 of file graph.h.

References PathFind::Graph< NODEINFO, EDGEINFO >::Node::m_outEdges.

template<class NODEINFO, class EDGEINFO>
void PathFind::Graph< NODEINFO, EDGEINFO >::Node::removeOutEdge int  targetNodeId  ) 
 

Definition at line 168 of file graph.h.

References PathFind::Graph< NODEINFO, EDGEINFO >::Node::m_outEdges.


Member Data Documentation

template<class NODEINFO, class EDGEINFO>
NODEINFO PathFind::Graph< NODEINFO, EDGEINFO >::Node::m_info [private]
 

Definition at line 104 of file graph.h.

Referenced by PathFind::Graph< NODEINFO, EDGEINFO >::Node::getInfo(), and PathFind::Graph< NODEINFO, EDGEINFO >::Node::Node().

template<class NODEINFO, class EDGEINFO>
int PathFind::Graph< NODEINFO, EDGEINFO >::Node::m_nodeId [private]
 

Definition at line 100 of file graph.h.

Referenced by PathFind::Graph< NODEINFO, EDGEINFO >::Node::Node().

template<class NODEINFO, class EDGEINFO>
vector<Edge> PathFind::Graph< NODEINFO, EDGEINFO >::Node::m_outEdges [private]
 

Definition at line 102 of file graph.h.

Referenced by PathFind::Graph< NODEINFO, EDGEINFO >::Node::addOutEdge(), PathFind::Graph< NODEINFO, EDGEINFO >::Node::clearOutEdges(), PathFind::Graph< NODEINFO, EDGEINFO >::Node::getOutEdges(), and PathFind::Graph< NODEINFO, EDGEINFO >::Node::removeOutEdge().


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


Generated on Thu Aug 7 13:05:23 2003 by Doxygen1.3.1