SNAP Library 2.3, Developer Reference  2014-06-16 11:58:46
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>

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

Member Typedef Documentation

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

Definition at line 657 of file graph.h.

Constructor & Destructor Documentation

TNEGraph::TEdgeI::TEdgeI ( )
inline

Definition at line 661 of file graph.h.

661 : EdgeHI(), Graph(NULL) { }
const TNEGraph * Graph
Definition: graph.h:659
THashIter EdgeHI
Definition: graph.h:658
TNEGraph::TEdgeI::TEdgeI ( const THashIter EdgeHIter,
const TNEGraph GraphPt 
)
inline

Definition at line 662 of file graph.h.

662 : EdgeHI(EdgeHIter), Graph(GraphPt) { }
const TNEGraph * Graph
Definition: graph.h:659
THashIter EdgeHI
Definition: graph.h:658
TNEGraph::TEdgeI::TEdgeI ( const TEdgeI EdgeI)
inline

Definition at line 663 of file graph.h.

663 : EdgeHI(EdgeI.EdgeHI), Graph(EdgeI.Graph) { }
const TNEGraph * Graph
Definition: graph.h:659
THashIter EdgeHI
Definition: graph.h:658

Member Function Documentation

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

Gets destination of an edge.

Definition at line 674 of file graph.h.

References EdgeHI.

Referenced by TNEGraph::AddEdge().

674 { return EdgeHI.GetDat().GetDstNId(); }
THashIter EdgeHI
Definition: graph.h:658

Here is the caller graph for this function:

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

Gets edge ID.

Definition at line 670 of file graph.h.

References EdgeHI.

Referenced by TNEGraph::AddEdge().

670 { return EdgeHI.GetDat().GetId(); }
THashIter EdgeHI
Definition: graph.h:658

Here is the caller graph for this function:

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

Gets the source of an edge.

Definition at line 672 of file graph.h.

References EdgeHI.

Referenced by TNEGraph::AddEdge().

672 { return EdgeHI.GetDat().GetSrcNId(); }
THashIter EdgeHI
Definition: graph.h:658

Here is the caller graph for this function:

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

Increment iterator.

Definition at line 666 of file graph.h.

References EdgeHI.

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

Definition at line 667 of file graph.h.

References EdgeHI.

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

Definition at line 664 of file graph.h.

References EdgeHI, and Graph.

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

Definition at line 668 of file graph.h.

References EdgeHI.

668 { return EdgeHI == EdgeI.EdgeHI; }
THashIter EdgeHI
Definition: graph.h:658

Friends And Related Function Documentation

friend class TNEGraph
friend

Definition at line 675 of file graph.h.

Member Data Documentation

THashIter TNEGraph::TEdgeI::EdgeHI
private

Definition at line 658 of file graph.h.

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

const TNEGraph* TNEGraph::TEdgeI::Graph
private

Definition at line 659 of file graph.h.

Referenced by operator=().


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