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
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TCrossNet::TCrossEdgeI Class Reference

Edge iterator. Only forward iteration (operator++) is supported. More...

#include <mmnet.h>

Collaboration diagram for TCrossNet::TCrossEdgeI:

Public Member Functions

 TCrossEdgeI ()
 
 TCrossEdgeI (const THashIter &CrossHIter, const TCrossNet *GraphPt)
 
 TCrossEdgeI (const TCrossEdgeI &EdgeI)
 
TCrossEdgeIoperator= (const TCrossEdgeI &EdgeI)
 
TCrossEdgeIoperator++ (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 TCrossNetGraph
 

Friends

class TCrossNet
 

Detailed Description

Edge iterator. Only forward iteration (operator++) is supported.

Definition at line 157 of file mmnet.h.

Member Typedef Documentation

Definition at line 159 of file mmnet.h.

Constructor & Destructor Documentation

TCrossNet::TCrossEdgeI::TCrossEdgeI ( )
inline

Definition at line 163 of file mmnet.h.

163 : CrossHI(), Graph(NULL) { }
THashIter CrossHI
Definition: mmnet.h:160
const TCrossNet * Graph
Definition: mmnet.h:161
TCrossNet::TCrossEdgeI::TCrossEdgeI ( const THashIter CrossHIter,
const TCrossNet GraphPt 
)
inline

Definition at line 164 of file mmnet.h.

164 : CrossHI(CrossHIter), Graph(GraphPt) { }
THashIter CrossHI
Definition: mmnet.h:160
const TCrossNet * Graph
Definition: mmnet.h:161
TCrossNet::TCrossEdgeI::TCrossEdgeI ( const TCrossEdgeI EdgeI)
inline

Definition at line 165 of file mmnet.h.

165 : CrossHI(EdgeI.CrossHI), Graph(EdgeI.Graph) { }
THashIter CrossHI
Definition: mmnet.h:160
const TCrossNet * Graph
Definition: mmnet.h:161

Member Function Documentation

int TCrossNet::TCrossEdgeI::GetDstModeId ( ) const
inline

Returns the destination mode of the crossnet.

Definition at line 181 of file mmnet.h.

References TCrossNet::GetMode2(), and Graph.

181 { return Graph->GetMode2(); }
const TCrossNet * Graph
Definition: mmnet.h:161
int GetMode2() const
Gets the id of the dst mode.
Definition: mmnet.h:342

Here is the call graph for this function:

int TCrossNet::TCrossEdgeI::GetDstNId ( ) const
inline

Returns the destination of the edge.

Definition at line 176 of file mmnet.h.

References CrossHI.

Referenced by TMMNet::ToNetworkMP().

176 { return CrossHI.GetDat().GetDstNId(); }
THashIter CrossHI
Definition: mmnet.h:160

Here is the caller graph for this function:

int TCrossNet::TCrossEdgeI::GetId ( ) const
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().

172 { return CrossHI.GetDat().GetId(); }
THashIter CrossHI
Definition: mmnet.h:160

Here is the caller graph for this function:

int TCrossNet::TCrossEdgeI::GetSrcModeId ( ) const
inline

Returns the source mode of the crossnet.

Definition at line 179 of file mmnet.h.

References TCrossNet::GetMode1(), and Graph.

179 { return Graph->GetMode1(); }
const TCrossNet * Graph
Definition: mmnet.h:161
int GetMode1() const
Gets the id of the src mode.
Definition: mmnet.h:340

Here is the call graph for this function:

int TCrossNet::TCrossEdgeI::GetSrcNId ( ) const
inline

Returns the source of the edge.

Definition at line 174 of file mmnet.h.

References CrossHI.

Referenced by TMMNet::ToNetworkMP().

174 { return CrossHI.GetDat().GetSrcNId(); }
THashIter CrossHI
Definition: mmnet.h:160

Here is the caller graph for this function:

bool TCrossNet::TCrossEdgeI::IsDirected ( ) const
inline

Returns whether the edge is directed.

Definition at line 183 of file mmnet.h.

References Graph, and TCrossNet::IsDirected().

183 { return Graph->IsDirected(); }
const TCrossNet * Graph
Definition: mmnet.h:161
bool IsDirected() const
Whether edges in the crossnet are directed.
Definition: mmnet.h:367

Here is the call graph for this function:

TCrossEdgeI& TCrossNet::TCrossEdgeI::operator++ ( int  )
inline

Increment iterator.

Definition at line 168 of file mmnet.h.

References CrossHI.

168 { CrossHI++; return *this; }
THashIter CrossHI
Definition: mmnet.h:160
bool TCrossNet::TCrossEdgeI::operator< ( const TCrossEdgeI EdgeI) const
inline

Definition at line 169 of file mmnet.h.

References CrossHI.

169 { return CrossHI < EdgeI.CrossHI; }
THashIter CrossHI
Definition: mmnet.h:160
TCrossEdgeI& TCrossNet::TCrossEdgeI::operator= ( const TCrossEdgeI EdgeI)
inline

Definition at line 166 of file mmnet.h.

References CrossHI, and Graph.

166 { if (this!=&EdgeI) { CrossHI=EdgeI.CrossHI; Graph=EdgeI.Graph; } return *this; }
THashIter CrossHI
Definition: mmnet.h:160
const TCrossNet * Graph
Definition: mmnet.h:161
bool TCrossNet::TCrossEdgeI::operator== ( const TCrossEdgeI EdgeI) const
inline

Definition at line 170 of file mmnet.h.

References CrossHI.

170 { return CrossHI == EdgeI.CrossHI; }
THashIter CrossHI
Definition: mmnet.h:160

Friends And Related Function Documentation

friend class TCrossNet
friend

Definition at line 186 of file mmnet.h.

Member Data Documentation

THashIter TCrossNet::TCrossEdgeI::CrossHI
private

Definition at line 160 of file mmnet.h.

Referenced by GetDstNId(), GetId(), GetSrcNId(), operator++(), operator<(), operator=(), and operator==().

const TCrossNet* TCrossNet::TCrossEdgeI::Graph
private

Definition at line 161 of file mmnet.h.

Referenced by GetDstModeId(), GetSrcModeId(), IsDirected(), and operator=().


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