SNAP Library 6.0, Developer Reference  2020-12-09 16:24:20
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
TNEGraph::TEdgeI Class Reference

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

#include <graph.h>

Collaboration diagram for TNEGraph::TEdgeI:

Public Member Functions

 TEdgeI ()
 
 TEdgeI (const THashIter &EdgeHIter, const TNEGraph *GraphPt)
 
 TEdgeI (const TEdgeI &EdgeI)
 
TEdgeIoperator= (const TEdgeI &EdgeI)
 
TEdgeIoperator++ (int)
 Increment iterator. More...
 
bool operator< (const TEdgeI &EdgeI) const
 
bool operator== (const TEdgeI &EdgeI) const
 
int GetId () const
 Gets edge ID. More...
 
int GetSrcNId () const
 Gets the source of an edge. More...
 
int GetDstNId () const
 Gets destination of an edge. More...
 

Private Types

typedef THash< TInt, TEdge >::TIter THashIter
 

Private Attributes

THashIter EdgeHI
 
const TNEGraphGraph
 

Friends

class TNEGraph
 

Detailed Description

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

Definition at line 766 of file graph.h.

Member Typedef Documentation

typedef THash<TInt, TEdge>::TIter TNEGraph::TEdgeI::THashIter
private

Definition at line 768 of file graph.h.

Constructor & Destructor Documentation

TNEGraph::TEdgeI::TEdgeI ( )
inline

Definition at line 772 of file graph.h.

772 : EdgeHI(), Graph(NULL) { }
const TNEGraph * Graph
Definition: graph.h:770
THashIter EdgeHI
Definition: graph.h:769
TNEGraph::TEdgeI::TEdgeI ( const THashIter EdgeHIter,
const TNEGraph GraphPt 
)
inline

Definition at line 773 of file graph.h.

773 : EdgeHI(EdgeHIter), Graph(GraphPt) { }
const TNEGraph * Graph
Definition: graph.h:770
THashIter EdgeHI
Definition: graph.h:769
TNEGraph::TEdgeI::TEdgeI ( const TEdgeI EdgeI)
inline

Definition at line 774 of file graph.h.

774 : EdgeHI(EdgeI.EdgeHI), Graph(EdgeI.Graph) { }
const TNEGraph * Graph
Definition: graph.h:770
THashIter EdgeHI
Definition: graph.h:769

Member Function Documentation

int TNEGraph::TEdgeI::GetDstNId ( ) const
inline

Gets destination of an edge.

Definition at line 785 of file graph.h.

Referenced by TNEGraph::AddEdge().

785 { return EdgeHI.GetDat().GetDstNId(); }
THashIter EdgeHI
Definition: graph.h:769

Here is the caller graph for this function:

int TNEGraph::TEdgeI::GetId ( ) const
inline

Gets edge ID.

Definition at line 781 of file graph.h.

Referenced by TNEGraph::AddEdge().

781 { return EdgeHI.GetDat().GetId(); }
THashIter EdgeHI
Definition: graph.h:769

Here is the caller graph for this function:

int TNEGraph::TEdgeI::GetSrcNId ( ) const
inline

Gets the source of an edge.

Definition at line 783 of file graph.h.

Referenced by TNEGraph::AddEdge().

783 { return EdgeHI.GetDat().GetSrcNId(); }
THashIter EdgeHI
Definition: graph.h:769

Here is the caller graph for this function:

TEdgeI& TNEGraph::TEdgeI::operator++ ( int  )
inline

Increment iterator.

Definition at line 777 of file graph.h.

777 { EdgeHI++; return *this; }
THashIter EdgeHI
Definition: graph.h:769
bool TNEGraph::TEdgeI::operator< ( const TEdgeI EdgeI) const
inline

Definition at line 778 of file graph.h.

References EdgeHI.

778 { return EdgeHI < EdgeI.EdgeHI; }
THashIter EdgeHI
Definition: graph.h:769
TEdgeI& TNEGraph::TEdgeI::operator= ( const TEdgeI EdgeI)
inline

Definition at line 775 of file graph.h.

References EdgeHI, and Graph.

775 { if (this!=&EdgeI) { EdgeHI=EdgeI.EdgeHI; Graph=EdgeI.Graph; } return *this; }
const TNEGraph * Graph
Definition: graph.h:770
THashIter EdgeHI
Definition: graph.h:769
bool TNEGraph::TEdgeI::operator== ( const TEdgeI EdgeI) const
inline

Definition at line 779 of file graph.h.

References EdgeHI.

779 { return EdgeHI == EdgeI.EdgeHI; }
THashIter EdgeHI
Definition: graph.h:769

Friends And Related Function Documentation

friend class TNEGraph
friend

Definition at line 786 of file graph.h.

Member Data Documentation

THashIter TNEGraph::TEdgeI::EdgeHI
private

Definition at line 769 of file graph.h.

Referenced by operator<(), operator=(), and operator==().

const TNEGraph* TNEGraph::TEdgeI::Graph
private

Definition at line 770 of file graph.h.

Referenced by operator=().


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