SNAP Library 4.1, User Reference  2018-07-26 16:30:42
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
TNEGraph::TEdgeI Class Reference

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

#include <graph.h>

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 758 of file graph.h.

Member Typedef Documentation

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

Definition at line 760 of file graph.h.

Constructor & Destructor Documentation

TNEGraph::TEdgeI::TEdgeI ( )
inline

Definition at line 764 of file graph.h.

764 : EdgeHI(), Graph(NULL) { }
const TNEGraph * Graph
Definition: graph.h:762
THashIter EdgeHI
Definition: graph.h:761
TNEGraph::TEdgeI::TEdgeI ( const THashIter EdgeHIter,
const TNEGraph GraphPt 
)
inline

Definition at line 765 of file graph.h.

765 : EdgeHI(EdgeHIter), Graph(GraphPt) { }
const TNEGraph * Graph
Definition: graph.h:762
THashIter EdgeHI
Definition: graph.h:761
TNEGraph::TEdgeI::TEdgeI ( const TEdgeI EdgeI)
inline

Definition at line 766 of file graph.h.

766 : EdgeHI(EdgeI.EdgeHI), Graph(EdgeI.Graph) { }
const TNEGraph * Graph
Definition: graph.h:762
THashIter EdgeHI
Definition: graph.h:761

Member Function Documentation

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

Gets destination of an edge.

Definition at line 777 of file graph.h.

777 { return EdgeHI.GetDat().GetDstNId(); }
THashIter EdgeHI
Definition: graph.h:761
int TNEGraph::TEdgeI::GetId ( ) const
inline

Gets edge ID.

Definition at line 773 of file graph.h.

773 { return EdgeHI.GetDat().GetId(); }
THashIter EdgeHI
Definition: graph.h:761
int TNEGraph::TEdgeI::GetSrcNId ( ) const
inline

Gets the source of an edge.

Definition at line 775 of file graph.h.

775 { return EdgeHI.GetDat().GetSrcNId(); }
THashIter EdgeHI
Definition: graph.h:761
TEdgeI& TNEGraph::TEdgeI::operator++ ( int  )
inline

Increment iterator.

Definition at line 769 of file graph.h.

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

Definition at line 770 of file graph.h.

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

Definition at line 767 of file graph.h.

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

Definition at line 771 of file graph.h.

771 { return EdgeHI == EdgeI.EdgeHI; }
THashIter EdgeHI
Definition: graph.h:761

Friends And Related Function Documentation

friend class TNEGraph
friend

Definition at line 778 of file graph.h.

Member Data Documentation

THashIter TNEGraph::TEdgeI::EdgeHI
private

Definition at line 761 of file graph.h.

const TNEGraph* TNEGraph::TEdgeI::Graph
private

Definition at line 762 of file graph.h.


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