SNAP Library 6.0, Developer Reference  2020-12-09 16:24:20
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
TNEANetMP::TEdgeI Class Reference

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

#include <networkmp.h>

Collaboration diagram for TNEANetMP::TEdgeI:

Public Member Functions

 TEdgeI ()
 
 TEdgeI (const THashIter &EdgeHIter, const TNEANetMP *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
 Returns edge ID. More...
 
int GetSrcNId () const
 Returns the source of the edge. More...
 
int GetDstNId () const
 Returns the destination of the edge. More...
 
void GetAttrNames (TStrV &Names) const
 Gets vector of attribute names. More...
 
void GetAttrVal (TStrV &Val) const
 Gets vector of attribute values. More...
 
void GetIntAttrNames (TStrV &Names) const
 Gets vector of int attribute names. More...
 
void GetIntAttrVal (TIntV &Val) const
 Gets vector of int attribute values. More...
 
void GetStrAttrNames (TStrV &Names) const
 Gets vector of str attribute names. More...
 
void GetStrAttrVal (TStrV &Val) const
 Gets vector of str attribute values. More...
 
void GetFltAttrNames (TStrV &Names) const
 Gets vector of flt attribute names. More...
 
void GetFltAttrVal (TFltV &Val) const
 Gets vector of flt attribute values. More...
 

Private Types

typedef THashMP< TInt, TEdge >::TIter THashIter
 

Private Attributes

THashIter EdgeHI
 
const TNEANetMPGraph
 

Friends

class TNEANetMP
 

Detailed Description

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

Definition at line 139 of file networkmp.h.

Member Typedef Documentation

typedef THashMP<TInt, TEdge>::TIter TNEANetMP::TEdgeI::THashIter
private

Definition at line 141 of file networkmp.h.

Constructor & Destructor Documentation

TNEANetMP::TEdgeI::TEdgeI ( )
inline

Definition at line 145 of file networkmp.h.

145 : EdgeHI(), Graph(NULL) { }
const TNEANetMP * Graph
Definition: networkmp.h:143
THashIter EdgeHI
Definition: networkmp.h:142
TNEANetMP::TEdgeI::TEdgeI ( const THashIter EdgeHIter,
const TNEANetMP GraphPt 
)
inline

Definition at line 146 of file networkmp.h.

146 : EdgeHI(EdgeHIter), Graph(GraphPt) { }
const TNEANetMP * Graph
Definition: networkmp.h:143
THashIter EdgeHI
Definition: networkmp.h:142
TNEANetMP::TEdgeI::TEdgeI ( const TEdgeI EdgeI)
inline

Definition at line 147 of file networkmp.h.

147 : EdgeHI(EdgeI.EdgeHI), Graph(EdgeI.Graph) { }
const TNEANetMP * Graph
Definition: networkmp.h:143
THashIter EdgeHI
Definition: networkmp.h:142

Member Function Documentation

void TNEANetMP::TEdgeI::GetAttrNames ( TStrV Names) const
inline

Gets vector of attribute names.

Definition at line 160 of file networkmp.h.

References TNEANetMP::AttrNameEI(), and GetId().

160 { Graph->AttrNameEI(GetId(), Names); }
const TNEANetMP * Graph
Definition: networkmp.h:143
void AttrNameEI(const TInt &EId, TStrV &Names) const
Returns a vector of attr names for edge EId.
Definition: networkmp.h:419
int GetId() const
Returns edge ID.
Definition: networkmp.h:154

Here is the call graph for this function:

void TNEANetMP::TEdgeI::GetAttrVal ( TStrV Val) const
inline

Gets vector of attribute values.

Definition at line 162 of file networkmp.h.

References TNEANetMP::AttrValueEI(), and GetId().

162 { Graph->AttrValueEI(GetId(), Val); }
const TNEANetMP * Graph
Definition: networkmp.h:143
void AttrValueEI(const TInt &EId, TStrV &Values) const
Returns a vector of attr values for edge EId.
Definition: networkmp.h:423
int GetId() const
Returns edge ID.
Definition: networkmp.h:154

Here is the call graph for this function:

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

Returns the destination of the edge.

Definition at line 158 of file networkmp.h.

Referenced by TNEANetMP::AddEdge().

158 { return EdgeHI.GetDat().GetDstNId(); }
THashIter EdgeHI
Definition: networkmp.h:142

Here is the caller graph for this function:

void TNEANetMP::TEdgeI::GetFltAttrNames ( TStrV Names) const
inline

Gets vector of flt attribute names.

Definition at line 172 of file networkmp.h.

References TNEANetMP::FltAttrNameEI(), and GetId().

172 { Graph->FltAttrNameEI(GetId(), Names); }
const TNEANetMP * Graph
Definition: networkmp.h:143
void FltAttrNameEI(const TInt &EId, TStrV &Names) const
Returns a vector of int attr names for node NId.
Definition: networkmp.h:443
int GetId() const
Returns edge ID.
Definition: networkmp.h:154

Here is the call graph for this function:

void TNEANetMP::TEdgeI::GetFltAttrVal ( TFltV Val) const
inline

Gets vector of flt attribute values.

Definition at line 174 of file networkmp.h.

References TNEANetMP::FltAttrValueEI(), and GetId().

174 { Graph->FltAttrValueEI(GetId(), Val); }
const TNEANetMP * Graph
Definition: networkmp.h:143
void FltAttrValueEI(const TInt &EId, TFltV &Values) const
Returns a vector of attr values for node NId.
Definition: networkmp.h:447
int GetId() const
Returns edge ID.
Definition: networkmp.h:154

Here is the call graph for this function:

void TNEANetMP::TEdgeI::GetIntAttrNames ( TStrV Names) const
inline

Gets vector of int attribute names.

Definition at line 164 of file networkmp.h.

References GetId(), and TNEANetMP::IntAttrNameEI().

164 { Graph->IntAttrNameEI(GetId(), Names); }
const TNEANetMP * Graph
Definition: networkmp.h:143
void IntAttrNameEI(const TInt &EId, TStrV &Names) const
Returns a vector of int attr names for edge EId.
Definition: networkmp.h:427
int GetId() const
Returns edge ID.
Definition: networkmp.h:154

Here is the call graph for this function:

void TNEANetMP::TEdgeI::GetIntAttrVal ( TIntV Val) const
inline

Gets vector of int attribute values.

Definition at line 166 of file networkmp.h.

References GetId(), and TNEANetMP::IntAttrValueEI().

166 { Graph->IntAttrValueEI(GetId(), Val); }
const TNEANetMP * Graph
Definition: networkmp.h:143
void IntAttrValueEI(const TInt &EId, TIntV &Values) const
Returns a vector of attr values for edge EId.
Definition: networkmp.h:431
int GetId() const
Returns edge ID.
Definition: networkmp.h:154

Here is the call graph for this function:

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

Returns the source of the edge.

Definition at line 156 of file networkmp.h.

Referenced by TNEANetMP::AddEdge().

156 { return EdgeHI.GetDat().GetSrcNId(); }
THashIter EdgeHI
Definition: networkmp.h:142

Here is the caller graph for this function:

void TNEANetMP::TEdgeI::GetStrAttrNames ( TStrV Names) const
inline

Gets vector of str attribute names.

Definition at line 168 of file networkmp.h.

References GetId(), and TNEANetMP::StrAttrNameEI().

168 { Graph->StrAttrNameEI(GetId(), Names); }
const TNEANetMP * Graph
Definition: networkmp.h:143
void StrAttrNameEI(const TInt &EId, TStrV &Names) const
Returns a vector of str attr names for node NId.
Definition: networkmp.h:435
int GetId() const
Returns edge ID.
Definition: networkmp.h:154

Here is the call graph for this function:

void TNEANetMP::TEdgeI::GetStrAttrVal ( TStrV Val) const
inline

Gets vector of str attribute values.

Definition at line 170 of file networkmp.h.

References GetId(), and TNEANetMP::StrAttrValueEI().

170 { Graph->StrAttrValueEI(GetId(), Val); }
void StrAttrValueEI(const TInt &EId, TStrV &Values) const
Returns a vector of attr values for node NId.
Definition: networkmp.h:439
const TNEANetMP * Graph
Definition: networkmp.h:143
int GetId() const
Returns edge ID.
Definition: networkmp.h:154

Here is the call graph for this function:

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

Increment iterator.

Definition at line 150 of file networkmp.h.

150 { EdgeHI++; return *this; }
THashIter EdgeHI
Definition: networkmp.h:142
bool TNEANetMP::TEdgeI::operator< ( const TEdgeI EdgeI) const
inline

Definition at line 151 of file networkmp.h.

References EdgeHI.

151 { return EdgeHI < EdgeI.EdgeHI; }
THashIter EdgeHI
Definition: networkmp.h:142
TEdgeI& TNEANetMP::TEdgeI::operator= ( const TEdgeI EdgeI)
inline

Definition at line 148 of file networkmp.h.

References EdgeHI, and Graph.

148 { if (this!=&EdgeI) { EdgeHI=EdgeI.EdgeHI; Graph=EdgeI.Graph; } return *this; }
const TNEANetMP * Graph
Definition: networkmp.h:143
THashIter EdgeHI
Definition: networkmp.h:142
bool TNEANetMP::TEdgeI::operator== ( const TEdgeI EdgeI) const
inline

Definition at line 152 of file networkmp.h.

References EdgeHI.

152 { return EdgeHI == EdgeI.EdgeHI; }
THashIter EdgeHI
Definition: networkmp.h:142

Friends And Related Function Documentation

friend class TNEANetMP
friend

Definition at line 175 of file networkmp.h.

Member Data Documentation

THashIter TNEANetMP::TEdgeI::EdgeHI
private

Definition at line 142 of file networkmp.h.

Referenced by operator<(), operator=(), and operator==().

const TNEANetMP* TNEANetMP::TEdgeI::Graph
private

Definition at line 143 of file networkmp.h.

Referenced by operator=().


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