SNAP Library 3.0, User Reference  2016-07-20 17:56:49
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 686 of file graph.h.

Member Typedef Documentation

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

Definition at line 688 of file graph.h.

Constructor & Destructor Documentation

TNEGraph::TEdgeI::TEdgeI ( )
inline

Definition at line 692 of file graph.h.

692 : EdgeHI(), Graph(NULL) { }
const TNEGraph * Graph
Definition: graph.h:690
THashIter EdgeHI
Definition: graph.h:689
TNEGraph::TEdgeI::TEdgeI ( const THashIter EdgeHIter,
const TNEGraph GraphPt 
)
inline

Definition at line 693 of file graph.h.

693 : EdgeHI(EdgeHIter), Graph(GraphPt) { }
const TNEGraph * Graph
Definition: graph.h:690
THashIter EdgeHI
Definition: graph.h:689
TNEGraph::TEdgeI::TEdgeI ( const TEdgeI EdgeI)
inline

Definition at line 694 of file graph.h.

694 : EdgeHI(EdgeI.EdgeHI), Graph(EdgeI.Graph) { }
const TNEGraph * Graph
Definition: graph.h:690
THashIter EdgeHI
Definition: graph.h:689

Member Function Documentation

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

Gets destination of an edge.

Definition at line 705 of file graph.h.

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

Gets edge ID.

Definition at line 701 of file graph.h.

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

Gets the source of an edge.

Definition at line 703 of file graph.h.

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

Increment iterator.

Definition at line 697 of file graph.h.

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

Definition at line 698 of file graph.h.

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

Definition at line 695 of file graph.h.

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

Definition at line 699 of file graph.h.

699 { return EdgeHI == EdgeI.EdgeHI; }
THashIter EdgeHI
Definition: graph.h:689

Friends And Related Function Documentation

friend class TNEGraph
friend

Definition at line 706 of file graph.h.

Member Data Documentation

THashIter TNEGraph::TEdgeI::EdgeHI
private

Definition at line 689 of file graph.h.

const TNEGraph* TNEGraph::TEdgeI::Graph
private

Definition at line 690 of file graph.h.


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