SNAP Library 2.0, Developer Reference
2013-05-13 16:33:57
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
Edge iterator. Only forward iteration (operator++) is supported. More...
#include <network.h>
Public Member Functions | |
TEdgeI () | |
TEdgeI (const THashIter &EdgeHIter, const TNodeEdgeNet *NetPt) | |
TEdgeI (const TEdgeI &EdgeI) | |
TEdgeI & | operator= (const TEdgeI &EdgeI) |
TEdgeI & | operator++ (int) |
bool | operator< (const TEdgeI &EdgeI) const |
bool | operator== (const TEdgeI &EdgeI) const |
int | GetId () const |
Gets edge ID. | |
int | GetSrcNId () const |
Gets the source of an edge. | |
int | GetDstNId () const |
Gets destination of an edge. | |
const TEdgeData & | operator() () const |
TEdgeData & | operator() () |
const TEdgeData & | GetDat () const |
TEdgeData & | GetDat () |
const TNodeData & | GetSrcNDat () const |
TNodeData & | GetSrcNDat () |
const TNodeData & | GetDstNDat () const |
TNodeData & | GetDstNDat () |
Private Types | |
typedef THash< TInt, TEdge >::TIter | THashIter |
Private Attributes | |
THashIter | EdgeHI |
TNodeEdgeNet * | Net |
Friends | |
class | TNodeEdgeNet |
Edge iterator. Only forward iteration (operator++) is supported.
typedef THash<TInt, TEdge>::TIter TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::THashIter [private] |
TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::TEdgeI | ( | ) | [inline] |
TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::TEdgeI | ( | const THashIter & | EdgeHIter, |
const TNodeEdgeNet * | NetPt | ||
) | [inline] |
Definition at line 1117 of file network.h.
: EdgeHI(EdgeHIter), Net((TNodeEdgeNet *) NetPt) { }
TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::TEdgeI | ( | const TEdgeI & | EdgeI | ) | [inline] |
const TEdgeData& TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::GetDat | ( | ) | const [inline] |
Definition at line 1131 of file network.h.
References TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::EdgeHI.
Referenced by TNodeEdgeNet< TNodeData, TEdgeData >::SetEDat().
{ return EdgeHI.GetDat().GetDat(); }
TEdgeData& TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::GetDat | ( | ) | [inline] |
Definition at line 1132 of file network.h.
References TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::EdgeHI.
{ return EdgeHI.GetDat().GetDat(); }
const TNodeData& TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::GetDstNDat | ( | ) | const [inline] |
Definition at line 1135 of file network.h.
References TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::GetDstNId(), TNodeEdgeNet< TNodeData, TEdgeData >::GetNDat(), and TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::Net.
TNodeData& TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::GetDstNDat | ( | ) | [inline] |
Definition at line 1136 of file network.h.
References TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::GetDstNId(), TNodeEdgeNet< TNodeData, TEdgeData >::GetNDat(), and TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::Net.
int TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::GetDstNId | ( | ) | const [inline] |
Gets destination of an edge.
Definition at line 1128 of file network.h.
References TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::EdgeHI.
Referenced by TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::GetDstNDat().
{ return EdgeHI.GetDat().GetDstNId(); }
int TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::GetId | ( | ) | const [inline] |
Gets edge ID.
Definition at line 1124 of file network.h.
References TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::EdgeHI.
{ return EdgeHI.GetDat().GetId(); }
const TNodeData& TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::GetSrcNDat | ( | ) | const [inline] |
Definition at line 1133 of file network.h.
References TNodeEdgeNet< TNodeData, TEdgeData >::GetNDat(), TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::GetSrcNId(), and TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::Net.
TNodeData& TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::GetSrcNDat | ( | ) | [inline] |
Definition at line 1134 of file network.h.
References TNodeEdgeNet< TNodeData, TEdgeData >::GetNDat(), TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::GetSrcNId(), and TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::Net.
int TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::GetSrcNId | ( | ) | const [inline] |
Gets the source of an edge.
Definition at line 1126 of file network.h.
References TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::EdgeHI.
Referenced by TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::GetSrcNDat().
{ return EdgeHI.GetDat().GetSrcNId(); }
const TEdgeData& TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::operator() | ( | ) | const [inline] |
Definition at line 1129 of file network.h.
References TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::EdgeHI.
{ return EdgeHI.GetDat().GetDat(); }
TEdgeData& TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::operator() | ( | ) | [inline] |
Definition at line 1130 of file network.h.
References TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::EdgeHI.
{ return EdgeHI.GetDat().GetDat(); }
TEdgeI& TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::operator++ | ( | int | ) | [inline] |
Definition at line 1120 of file network.h.
References TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::EdgeHI.
{ EdgeHI++; return *this; }
bool TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::operator< | ( | const TEdgeI & | EdgeI | ) | const [inline] |
Definition at line 1121 of file network.h.
References TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::EdgeHI.
{ return EdgeHI < EdgeI.EdgeHI; }
TEdgeI& TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::operator= | ( | const TEdgeI & | EdgeI | ) | [inline] |
Definition at line 1119 of file network.h.
References TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::EdgeHI, and TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::Net.
bool TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::operator== | ( | const TEdgeI & | EdgeI | ) | const [inline] |
Definition at line 1122 of file network.h.
References TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::EdgeHI.
{ return EdgeHI == EdgeI.EdgeHI; }
friend class TNodeEdgeNet [friend] |
THashIter TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::EdgeHI [private] |
Definition at line 1113 of file network.h.
Referenced by TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::GetDat(), TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::GetDstNId(), TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::GetId(), TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::GetSrcNId(), TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::operator()(), TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::operator++(), TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::operator<(), TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::operator=(), and TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::operator==().
TNodeEdgeNet* TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::Net [private] |
Definition at line 1114 of file network.h.
Referenced by TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::GetDstNDat(), TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::GetSrcNDat(), and TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::operator=().