SNAP Library 4.0, Developer Reference
2017-07-27 13:18:06
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
Edge iterator. Only forward iteration (operator++) is supported. More...
#include <mmnet.h>
Public Member Functions | |
TCrossEdgeI () | |
TCrossEdgeI (const THashIter &CrossHIter, const TCrossNet *GraphPt) | |
TCrossEdgeI (const TCrossEdgeI &EdgeI) | |
TCrossEdgeI & | operator= (const TCrossEdgeI &EdgeI) |
TCrossEdgeI & | operator++ (int) |
Increment iterator. More... | |
bool | operator< (const TCrossEdgeI &EdgeI) const |
bool | operator== (const TCrossEdgeI &EdgeI) const |
int | GetId () const |
Returns edge ID. More... | |
int | GetSrcNId () const |
Returns the source of the edge. More... | |
int | GetDstNId () const |
Returns the destination of the edge. More... | |
int | GetSrcModeId () const |
Returns the source mode of the crossnet. More... | |
int | GetDstModeId () const |
Returns the destination mode of the crossnet. More... | |
bool | IsDirected () const |
Returns whether the edge is directed. More... | |
Private Types | |
typedef THash< TInt, TCrossEdge >::TIter | THashIter |
Private Attributes | |
THashIter | CrossHI |
const TCrossNet * | Graph |
Friends | |
class | TCrossNet |
Edge iterator. Only forward iteration (operator++) is supported.
|
private |
|
inline |
|
inline |
|
inline |
Returns the destination mode of the crossnet.
Definition at line 181 of file mmnet.h.
References TCrossNet::GetMode2(), and Graph.
|
inline |
Returns the destination of the edge.
Definition at line 176 of file mmnet.h.
References CrossHI.
Referenced by TMMNet::ToNetworkMP().
|
inline |
Returns edge ID.
Definition at line 172 of file mmnet.h.
References CrossHI.
Referenced by TCrossNet::AddFltAttrDatE(), TCrossNet::AddIntAttrDatE(), TCrossNet::AddStrAttrDatE(), TCrossNet::DelAttrDatE(), TCrossNet::GetFltAttrDatE(), TCrossNet::GetIntAttrDatE(), and TCrossNet::GetStrAttrDatE().
|
inline |
Returns the source mode of the crossnet.
Definition at line 179 of file mmnet.h.
References TCrossNet::GetMode1(), and Graph.
|
inline |
Returns the source of the edge.
Definition at line 174 of file mmnet.h.
References CrossHI.
Referenced by TMMNet::ToNetworkMP().
|
inline |
Returns whether the edge is directed.
Definition at line 183 of file mmnet.h.
References Graph, and TCrossNet::IsDirected().
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
Definition at line 160 of file mmnet.h.
Referenced by GetDstNId(), GetId(), GetSrcNId(), operator++(), operator<(), operator=(), and operator==().
|
private |
Definition at line 161 of file mmnet.h.
Referenced by GetDstModeId(), GetSrcModeId(), IsDirected(), and operator=().