SNAP Library 4.0, User Reference  2017-07-27 13:18:06
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
TNEANetMP::TEdgeI Class Reference

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

#include <networkmp.h>

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.

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
void TNEANetMP::TEdgeI::GetAttrVal ( TStrV Val) const
inline

Gets vector of attribute values.

Definition at line 162 of file networkmp.h.

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
int TNEANetMP::TEdgeI::GetDstNId ( ) const
inline

Returns the destination of the edge.

Definition at line 158 of file networkmp.h.

158 { return EdgeHI.GetDat().GetDstNId(); }
THashIter EdgeHI
Definition: networkmp.h:142
void TNEANetMP::TEdgeI::GetFltAttrNames ( TStrV Names) const
inline

Gets vector of flt attribute names.

Definition at line 172 of file networkmp.h.

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
void TNEANetMP::TEdgeI::GetFltAttrVal ( TFltV Val) const
inline

Gets vector of flt attribute values.

Definition at line 174 of file networkmp.h.

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
int TNEANetMP::TEdgeI::GetId ( ) const
inline

Returns edge ID.

Definition at line 154 of file networkmp.h.

154 { return EdgeHI.GetDat().GetId(); }
THashIter EdgeHI
Definition: networkmp.h:142
void TNEANetMP::TEdgeI::GetIntAttrNames ( TStrV Names) const
inline

Gets vector of int attribute names.

Definition at line 164 of file networkmp.h.

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
void TNEANetMP::TEdgeI::GetIntAttrVal ( TIntV Val) const
inline

Gets vector of int attribute values.

Definition at line 166 of file networkmp.h.

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
int TNEANetMP::TEdgeI::GetSrcNId ( ) const
inline

Returns the source of the edge.

Definition at line 156 of file networkmp.h.

156 { return EdgeHI.GetDat().GetSrcNId(); }
THashIter EdgeHI
Definition: networkmp.h:142
void TNEANetMP::TEdgeI::GetStrAttrNames ( TStrV Names) const
inline

Gets vector of str attribute names.

Definition at line 168 of file networkmp.h.

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
void TNEANetMP::TEdgeI::GetStrAttrVal ( TStrV Val) const
inline

Gets vector of str attribute values.

Definition at line 170 of file networkmp.h.

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
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.

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.

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.

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.

const TNEANetMP* TNEANetMP::TEdgeI::Graph
private

Definition at line 143 of file networkmp.h.


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