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. More...
#include <bignet.h>
Public Member Functions | |
TEdgeI () | |
TEdgeI (const TNodeI &NodeI, const TNodeI &EndNodeI, const int &EdgeN=0) | |
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 |
int | GetSrcNId () const |
int | GetDstNId () const |
const TNodeData & | GetSrcNDat () const |
TNodeData & | GetDstNDat () |
Private Attributes | |
TNodeI | CurNode |
TNodeI | EndNode |
int | CurEdge |
Friends | |
class | TNodeNet< TNodeData > |
Edge iterator.
Only forward iteration (operator++) is supported.
TBigNet< TNodeData, IsDir >::TEdgeI::TEdgeI | ( | ) | [inline] |
TBigNet< TNodeData, IsDir >::TEdgeI::TEdgeI | ( | const TNodeI & | NodeI, |
const TNodeI & | EndNodeI, | ||
const int & | EdgeN = 0 |
||
) | [inline] |
TBigNet< TNodeData, IsDir >::TEdgeI::TEdgeI | ( | const TEdgeI & | EdgeI | ) | [inline] |
TNodeData& TBigNet< TNodeData, IsDir >::TEdgeI::GetDstNDat | ( | ) | [inline] |
Definition at line 114 of file bignet.h.
References TBigNet< TNodeData, IsDir >::TEdgeI::CurEdge, and TBigNet< TNodeData, IsDir >::TEdgeI::CurNode.
int TBigNet< TNodeData, IsDir >::TEdgeI::GetDstNId | ( | ) | const [inline] |
Definition at line 112 of file bignet.h.
References TBigNet< TNodeData, IsDir >::TEdgeI::CurEdge, TBigNet< TNodeData, IsDir >::TEdgeI::CurNode, and TBigNet< TNodeData, IsDir >::TNodeI::GetOutNId().
int TBigNet< TNodeData, IsDir >::TEdgeI::GetId | ( | ) | const [inline] |
const TNodeData& TBigNet< TNodeData, IsDir >::TEdgeI::GetSrcNDat | ( | ) | const [inline] |
Definition at line 113 of file bignet.h.
References TBigNet< TNodeData, IsDir >::TEdgeI::CurNode.
{ return CurNode.GetNDat(); }
int TBigNet< TNodeData, IsDir >::TEdgeI::GetSrcNId | ( | ) | const [inline] |
Definition at line 111 of file bignet.h.
References TBigNet< TNodeData, IsDir >::TEdgeI::CurNode, and TBigNet< TNodeData, IsDir >::TNodeI::GetId().
TEdgeI& TBigNet< TNodeData, IsDir >::TEdgeI::operator++ | ( | int | ) | [inline] |
Definition at line 106 of file bignet.h.
References TBigNet< TNodeData, IsDir >::TEdgeI::CurEdge, TBigNet< TNodeData, IsDir >::TEdgeI::CurNode, TBigNet< TNodeData, IsDir >::TEdgeI::EndNode, and TBigNet< TNodeData, IsDir >::TNodeI::GetOutDeg().
{ CurEdge++; if (CurEdge >= CurNode.GetOutDeg()) { CurEdge=0; CurNode++; while (CurNode < EndNode && CurNode.GetOutDeg()==0) { CurNode++; } } return *this; }
bool TBigNet< TNodeData, IsDir >::TEdgeI::operator< | ( | const TEdgeI & | EdgeI | ) | const [inline] |
Definition at line 108 of file bignet.h.
References TBigNet< TNodeData, IsDir >::TEdgeI::CurEdge, and TBigNet< TNodeData, IsDir >::TEdgeI::CurNode.
TEdgeI& TBigNet< TNodeData, IsDir >::TEdgeI::operator= | ( | const TEdgeI & | EdgeI | ) | [inline] |
Definition at line 105 of file bignet.h.
References TBigNet< TNodeData, IsDir >::TEdgeI::CurEdge, TBigNet< TNodeData, IsDir >::TEdgeI::CurNode, and TBigNet< TNodeData, IsDir >::TEdgeI::EndNode.
bool TBigNet< TNodeData, IsDir >::TEdgeI::operator== | ( | const TEdgeI & | EdgeI | ) | const [inline] |
Definition at line 109 of file bignet.h.
References TBigNet< TNodeData, IsDir >::TEdgeI::CurEdge, and TBigNet< TNodeData, IsDir >::TEdgeI::CurNode.
friend class TNodeNet< TNodeData > [friend] |
int TBigNet< TNodeData, IsDir >::TEdgeI::CurEdge [private] |
Definition at line 100 of file bignet.h.
Referenced by TBigNet< TNodeData, IsDir >::TEdgeI::GetDstNDat(), TBigNet< TNodeData, IsDir >::TEdgeI::GetDstNId(), TBigNet< TNodeData, IsDir >::TEdgeI::operator++(), TBigNet< TNodeData, IsDir >::TEdgeI::operator<(), TBigNet< TNodeData, IsDir >::TEdgeI::operator=(), and TBigNet< TNodeData, IsDir >::TEdgeI::operator==().
TNodeI TBigNet< TNodeData, IsDir >::TEdgeI::CurNode [private] |
Definition at line 99 of file bignet.h.
Referenced by TBigNet< TNodeData, IsDir >::TEdgeI::GetDstNDat(), TBigNet< TNodeData, IsDir >::TEdgeI::GetDstNId(), TBigNet< TNodeData, IsDir >::TEdgeI::GetSrcNDat(), TBigNet< TNodeData, IsDir >::TEdgeI::GetSrcNId(), TBigNet< TNodeData, IsDir >::TEdgeI::operator++(), TBigNet< TNodeData, IsDir >::TEdgeI::operator<(), TBigNet< TNodeData, IsDir >::TEdgeI::operator=(), and TBigNet< TNodeData, IsDir >::TEdgeI::operator==().
TNodeI TBigNet< TNodeData, IsDir >::TEdgeI::EndNode [private] |
Definition at line 99 of file bignet.h.
Referenced by TBigNet< TNodeData, IsDir >::TEdgeI::operator++(), and TBigNet< TNodeData, IsDir >::TEdgeI::operator=().