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
TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI Class Reference

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

#include <network.h>

List of all members.

Public Member Functions

 TEdgeI ()
 TEdgeI (const THashIter &EdgeHIter, const TNodeEdgeNet *NetPt)
 TEdgeI (const TEdgeI &EdgeI)
TEdgeIoperator= (const TEdgeI &EdgeI)
TEdgeIoperator++ (int)
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.
const TEdgeData & operator() () const
TEdgeData & operator() ()
const TEdgeData & GetDat () const
TEdgeData & GetDat ()
const TNodeData & GetSrcNDat () const
TNodeData & GetSrcNDat ()
const TNodeData & GetDstNDat () const
TNodeData & GetDstNDat ()

Private Types

typedef THash< TInt, TEdge >::TIter THashIter

Private Attributes

THashIter EdgeHI
TNodeEdgeNetNet

Friends

class TNodeEdgeNet

Detailed Description

template<class TNodeData, class TEdgeData>
class TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI

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

Definition at line 1110 of file network.h.


Member Typedef Documentation

template<class TNodeData, class TEdgeData>
typedef THash<TInt, TEdge>::TIter TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::THashIter [private]

Definition at line 1112 of file network.h.


Constructor & Destructor Documentation

template<class TNodeData, class TEdgeData>
TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::TEdgeI ( ) [inline]

Definition at line 1116 of file network.h.

: EdgeHI(), Net(NULL) { }
template<class TNodeData, class TEdgeData>
TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::TEdgeI ( const THashIter EdgeHIter,
const TNodeEdgeNet NetPt 
) [inline]

Definition at line 1117 of file network.h.

: EdgeHI(EdgeHIter), Net((TNodeEdgeNet *) NetPt) { }
template<class TNodeData, class TEdgeData>
TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::TEdgeI ( const TEdgeI EdgeI) [inline]

Definition at line 1118 of file network.h.

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

Member Function Documentation

template<class TNodeData, class TEdgeData>
const TEdgeData& TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::GetDat ( ) const [inline]

Definition at line 1131 of file network.h.

{ return EdgeHI.GetDat().GetDat(); }
template<class TNodeData, class TEdgeData>
TEdgeData& TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::GetDat ( ) [inline]

Definition at line 1132 of file network.h.

{ return EdgeHI.GetDat().GetDat(); }
template<class TNodeData, class TEdgeData>
const TNodeData& TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::GetDstNDat ( ) const [inline]

Definition at line 1135 of file network.h.

{ return Net->GetNDat(GetDstNId()); }
template<class TNodeData, class TEdgeData>
TNodeData& TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::GetDstNDat ( ) [inline]

Definition at line 1136 of file network.h.

{ return Net->GetNDat(GetDstNId()); }
template<class TNodeData, class TEdgeData>
int TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::GetDstNId ( ) const [inline]

Gets destination of an edge.

Definition at line 1128 of file network.h.

{ return EdgeHI.GetDat().GetDstNId(); }
template<class TNodeData, class TEdgeData>
int TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::GetId ( ) const [inline]

Gets edge ID.

Definition at line 1124 of file network.h.

{ return EdgeHI.GetDat().GetId(); }
template<class TNodeData, class TEdgeData>
const TNodeData& TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::GetSrcNDat ( ) const [inline]

Definition at line 1133 of file network.h.

{ return Net->GetNDat(GetSrcNId()); }
template<class TNodeData, class TEdgeData>
TNodeData& TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::GetSrcNDat ( ) [inline]

Definition at line 1134 of file network.h.

{ return Net->GetNDat(GetSrcNId()); }
template<class TNodeData, class TEdgeData>
int TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::GetSrcNId ( ) const [inline]

Gets the source of an edge.

Definition at line 1126 of file network.h.

{ return EdgeHI.GetDat().GetSrcNId(); }
template<class TNodeData, class TEdgeData>
const TEdgeData& TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::operator() ( ) const [inline]

Definition at line 1129 of file network.h.

{ return EdgeHI.GetDat().GetDat(); }
template<class TNodeData, class TEdgeData>
TEdgeData& TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::operator() ( ) [inline]

Definition at line 1130 of file network.h.

{ return EdgeHI.GetDat().GetDat(); }
template<class TNodeData, class TEdgeData>
TEdgeI& TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::operator++ ( int  ) [inline]

Definition at line 1120 of file network.h.

{ EdgeHI++;  return *this; }
template<class TNodeData, class TEdgeData>
bool TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::operator< ( const TEdgeI EdgeI) const [inline]

Definition at line 1121 of file network.h.

{ return EdgeHI < EdgeI.EdgeHI; }
template<class TNodeData, class TEdgeData>
TEdgeI& TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::operator= ( const TEdgeI EdgeI) [inline]

Definition at line 1119 of file network.h.

{ if (this!=&EdgeI) { EdgeHI=EdgeI.EdgeHI;  Net=EdgeI.Net; }  return *this; }
template<class TNodeData, class TEdgeData>
bool TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::operator== ( const TEdgeI EdgeI) const [inline]

Definition at line 1122 of file network.h.

{ return EdgeHI == EdgeI.EdgeHI; }

Friends And Related Function Documentation

template<class TNodeData, class TEdgeData>
friend class TNodeEdgeNet [friend]

Definition at line 1137 of file network.h.


Member Data Documentation

template<class TNodeData, class TEdgeData>
THashIter TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::EdgeHI [private]

Definition at line 1113 of file network.h.

template<class TNodeData, class TEdgeData>
TNodeEdgeNet* TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeI::Net [private]

Definition at line 1114 of file network.h.


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