SNAP Library 2.1, User Reference  2013-09-25 10:47:25
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
TNEGraph::TEdgeI Class Reference

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

#include <graph.h>

List of all members.

Public Member Functions

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

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


Member Typedef Documentation

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

Definition at line 656 of file graph.h.


Constructor & Destructor Documentation

Definition at line 660 of file graph.h.

: EdgeHI(), Graph(NULL) { }
TNEGraph::TEdgeI::TEdgeI ( const THashIter EdgeHIter,
const TNEGraph GraphPt 
) [inline]

Definition at line 661 of file graph.h.

: EdgeHI(EdgeHIter), Graph(GraphPt) { }
TNEGraph::TEdgeI::TEdgeI ( const TEdgeI EdgeI) [inline]

Definition at line 662 of file graph.h.

: EdgeHI(EdgeI.EdgeHI), Graph(EdgeI.Graph) { }

Member Function Documentation

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

Gets destination of an edge.

Definition at line 673 of file graph.h.

{ return EdgeHI.GetDat().GetDstNId(); }
int TNEGraph::TEdgeI::GetId ( ) const [inline]

Gets edge ID.

Definition at line 669 of file graph.h.

{ return EdgeHI.GetDat().GetId(); }
int TNEGraph::TEdgeI::GetSrcNId ( ) const [inline]

Gets the source of an edge.

Definition at line 671 of file graph.h.

{ return EdgeHI.GetDat().GetSrcNId(); }
TEdgeI& TNEGraph::TEdgeI::operator++ ( int  ) [inline]

Increment iterator.

Definition at line 665 of file graph.h.

{ EdgeHI++; return *this; }
bool TNEGraph::TEdgeI::operator< ( const TEdgeI EdgeI) const [inline]

Definition at line 666 of file graph.h.

{ return EdgeHI < EdgeI.EdgeHI; }
TEdgeI& TNEGraph::TEdgeI::operator= ( const TEdgeI EdgeI) [inline]

Definition at line 663 of file graph.h.

{ if (this!=&EdgeI) { EdgeHI=EdgeI.EdgeHI; Graph=EdgeI.Graph; }  return *this; }
bool TNEGraph::TEdgeI::operator== ( const TEdgeI EdgeI) const [inline]

Definition at line 667 of file graph.h.

{ return EdgeHI == EdgeI.EdgeHI; }

Friends And Related Function Documentation

friend class TNEGraph [friend]

Definition at line 674 of file graph.h.


Member Data Documentation

Definition at line 657 of file graph.h.

Definition at line 658 of file graph.h.


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