#include <TAPsGraphNode.hpp>

Public Member Functions | |
| T | GetValue () const |
| void | SetValue (T v) |
| virtual | ~GraphNode () |
Public Attributes | |
| bool | m_bMark |
| int | m_iID |
| T | m_tValue |
| std::set< int > | m_vNeighbors |
Protected Member Functions | |
| int | GetID () const |
| bool | GetStatusMark () const |
| GraphNode (const T &value=T(), int id=-1) | |
| void | Mark () |
| void | SetID (int id) |
| void | SetStatusMark (bool b) |
| void | Unmark () |
Friends | |
| class | DirectedGraph< T > |
| std::ostream & | operator<< (std::ostream &output, GraphNode< T > const &node) |
Definition at line 23 of file TAPsGraphNode.hpp.
| BEGIN_NAMESPACE_TAPs__DS GraphNode< T >::GraphNode | ( | const T & | value = T(), |
|
| int | id = -1 | |||
| ) | [inline, protected] |
Definition at line 20 of file TAPsGraphNode.cpp.
00021 : m_iID( id ), 00022 m_tValue( value ), 00023 m_bMark( false ), 00024 m_vNeighbors() 00025 {}
| int GraphNode< T >::GetID | ( | ) | const [inline, protected] |
| bool GraphNode< T >::GetStatusMark | ( | ) | const [inline, protected] |
| T GraphNode< T >::GetValue | ( | ) | const [inline] |
| void GraphNode< T >::Mark | ( | ) | [inline, protected] |
| void GraphNode< T >::SetID | ( | int | id | ) | [inline, protected] |
| void GraphNode< T >::SetStatusMark | ( | bool | b | ) | [inline, protected] |
| void GraphNode< T >::SetValue | ( | T | v | ) | [inline] |
| void GraphNode< T >::Unmark | ( | ) | [inline, protected] |
friend class DirectedGraph< T > [friend] |
Definition at line 26 of file TAPsGraphNode.hpp.
| std::ostream& operator<< | ( | std::ostream & | output, | |
| GraphNode< T > const & | node | |||
| ) | [friend] |
Definition at line 52 of file TAPsGraphNode.hpp.
00053 { 00054 output << "GraphNode<" << typeid(T).name() << "> ID:" << node.m_iID 00055 << " with value: " << node.m_tValue 00056 << " and has a path to nodes:"; 00057 00058 for ( std::set< int >::const_iterator n = node.m_vNeighbors.begin(); 00059 n != node.m_vNeighbors.end(); ++n ) 00060 { 00061 output << ' ' << *n; 00062 } 00063 output << "\n"; 00064 return output; 00065 }
Definition at line 32 of file TAPsGraphNode.hpp.
Definition at line 31 of file TAPsGraphNode.hpp.
Definition at line 33 of file TAPsGraphNode.hpp.
| std::set< int > GraphNode< T >::m_vNeighbors |
Definition at line 39 of file TAPsGraphNode.hpp.
1.5.6