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
TNEANet::TEdgeI Class Reference

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

#include <network.h>

Public Member Functions

 TEdgeI ()
 
 TEdgeI (const THashIter &EdgeHIter, const TNEANet *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 GetIntVAttrNames (TStrV &Names) const
 Gets vector of int attribute names. More...
 
void GetIntVAttrVal (TVec< 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 THash< TInt, TEdge >::TIter THashIter
 

Private Attributes

THashIter EdgeHI
 
const TNEANetGraph
 

Friends

class TNEANet
 

Detailed Description

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

Definition at line 1707 of file network.h.

Member Typedef Documentation

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

Definition at line 1709 of file network.h.

Constructor & Destructor Documentation

TNEANet::TEdgeI::TEdgeI ( )
inline

Definition at line 1713 of file network.h.

1713 : EdgeHI(), Graph(NULL) { }
const TNEANet * Graph
Definition: network.h:1711
THashIter EdgeHI
Definition: network.h:1710
TNEANet::TEdgeI::TEdgeI ( const THashIter EdgeHIter,
const TNEANet GraphPt 
)
inline

Definition at line 1714 of file network.h.

1714 : EdgeHI(EdgeHIter), Graph(GraphPt) { }
const TNEANet * Graph
Definition: network.h:1711
THashIter EdgeHI
Definition: network.h:1710
TNEANet::TEdgeI::TEdgeI ( const TEdgeI EdgeI)
inline

Definition at line 1715 of file network.h.

1715 : EdgeHI(EdgeI.EdgeHI), Graph(EdgeI.Graph) { }
const TNEANet * Graph
Definition: network.h:1711
THashIter EdgeHI
Definition: network.h:1710

Member Function Documentation

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

Gets vector of attribute names.

Definition at line 1728 of file network.h.

1728 { Graph->AttrNameEI(GetId(), Names); }
void AttrNameEI(const TInt &EId, TStrV &Names) const
Returns a vector of attr names for edge EId.
Definition: network.h:2080
const TNEANet * Graph
Definition: network.h:1711
int GetId() const
Returns edge ID.
Definition: network.h:1722
void TNEANet::TEdgeI::GetAttrVal ( TStrV Val) const
inline

Gets vector of attribute values.

Definition at line 1730 of file network.h.

1730 { Graph->AttrValueEI(GetId(), Val); }
const TNEANet * Graph
Definition: network.h:1711
int GetId() const
Returns edge ID.
Definition: network.h:1722
void AttrValueEI(const TInt &EId, TStrV &Values) const
Returns a vector of attr values for edge EId.
Definition: network.h:2084
int TNEANet::TEdgeI::GetDstNId ( ) const
inline

Returns the destination of the edge.

Definition at line 1726 of file network.h.

1726 { return EdgeHI.GetDat().GetDstNId(); }
THashIter EdgeHI
Definition: network.h:1710
void TNEANet::TEdgeI::GetFltAttrNames ( TStrV Names) const
inline

Gets vector of flt attribute names.

Definition at line 1744 of file network.h.

1744 { Graph->FltAttrNameEI(GetId(), Names); }
const TNEANet * Graph
Definition: network.h:1711
int GetId() const
Returns edge ID.
Definition: network.h:1722
void FltAttrNameEI(const TInt &EId, TStrV &Names) const
Returns a vector of int attr names for node NId.
Definition: network.h:2116
void TNEANet::TEdgeI::GetFltAttrVal ( TFltV Val) const
inline

Gets vector of flt attribute values.

Definition at line 1746 of file network.h.

1746 { Graph->FltAttrValueEI(GetId(), Val); }
const TNEANet * Graph
Definition: network.h:1711
int GetId() const
Returns edge ID.
Definition: network.h:1722
void FltAttrValueEI(const TInt &EId, TFltV &Values) const
Returns a vector of attr values for node NId.
Definition: network.h:2120
int TNEANet::TEdgeI::GetId ( ) const
inline

Returns edge ID.

Definition at line 1722 of file network.h.

1722 { return EdgeHI.GetDat().GetId(); }
THashIter EdgeHI
Definition: network.h:1710
void TNEANet::TEdgeI::GetIntAttrNames ( TStrV Names) const
inline

Gets vector of int attribute names.

Definition at line 1732 of file network.h.

1732 { Graph->IntAttrNameEI(GetId(), Names); }
const TNEANet * Graph
Definition: network.h:1711
int GetId() const
Returns edge ID.
Definition: network.h:1722
void IntAttrNameEI(const TInt &EId, TStrV &Names) const
Returns a vector of int attr names for edge EId.
Definition: network.h:2088
void TNEANet::TEdgeI::GetIntAttrVal ( TIntV Val) const
inline

Gets vector of int attribute values.

Definition at line 1734 of file network.h.

1734 { Graph->IntAttrValueEI(GetId(), Val); }
const TNEANet * Graph
Definition: network.h:1711
void IntAttrValueEI(const TInt &EId, TIntV &Values) const
Returns a vector of attr values for edge EId.
Definition: network.h:2092
int GetId() const
Returns edge ID.
Definition: network.h:1722
void TNEANet::TEdgeI::GetIntVAttrNames ( TStrV Names) const
inline

Gets vector of int attribute names.

Definition at line 1736 of file network.h.

1736 { Graph->IntVAttrNameEI(GetId(), Names); }
const TNEANet * Graph
Definition: network.h:1711
int GetId() const
Returns edge ID.
Definition: network.h:1722
void IntVAttrNameEI(const TInt &EId, TStrV &Names) const
Returns a vector of int attr names for edge EId.
Definition: network.h:2098
void TNEANet::TEdgeI::GetIntVAttrVal ( TVec< TIntV > &  Val) const
inline

Gets vector of int attribute values.

Definition at line 1738 of file network.h.

1738 { Graph->IntVAttrValueEI(GetId(), Val); }
void IntVAttrValueEI(const TInt &EId, TVec< TIntV > &Values) const
Returns a vector of attr values for edge EId.
Definition: network.h:2102
const TNEANet * Graph
Definition: network.h:1711
int GetId() const
Returns edge ID.
Definition: network.h:1722
int TNEANet::TEdgeI::GetSrcNId ( ) const
inline

Returns the source of the edge.

Definition at line 1724 of file network.h.

1724 { return EdgeHI.GetDat().GetSrcNId(); }
THashIter EdgeHI
Definition: network.h:1710
void TNEANet::TEdgeI::GetStrAttrNames ( TStrV Names) const
inline

Gets vector of str attribute names.

Definition at line 1740 of file network.h.

1740 { Graph->StrAttrNameEI(GetId(), Names); }
const TNEANet * Graph
Definition: network.h:1711
int GetId() const
Returns edge ID.
Definition: network.h:1722
void StrAttrNameEI(const TInt &EId, TStrV &Names) const
Returns a vector of str attr names for node NId.
Definition: network.h:2108
void TNEANet::TEdgeI::GetStrAttrVal ( TStrV Val) const
inline

Gets vector of str attribute values.

Definition at line 1742 of file network.h.

1742 { Graph->StrAttrValueEI(GetId(), Val); }
const TNEANet * Graph
Definition: network.h:1711
int GetId() const
Returns edge ID.
Definition: network.h:1722
void StrAttrValueEI(const TInt &EId, TStrV &Values) const
Returns a vector of attr values for node NId.
Definition: network.h:2112
TEdgeI& TNEANet::TEdgeI::operator++ ( int  )
inline

Increment iterator.

Definition at line 1718 of file network.h.

1718 { EdgeHI++; return *this; }
THashIter EdgeHI
Definition: network.h:1710
bool TNEANet::TEdgeI::operator< ( const TEdgeI EdgeI) const
inline

Definition at line 1719 of file network.h.

1719 { return EdgeHI < EdgeI.EdgeHI; }
THashIter EdgeHI
Definition: network.h:1710
TEdgeI& TNEANet::TEdgeI::operator= ( const TEdgeI EdgeI)
inline

Definition at line 1716 of file network.h.

1716 { if (this!=&EdgeI) { EdgeHI=EdgeI.EdgeHI; Graph=EdgeI.Graph; } return *this; }
const TNEANet * Graph
Definition: network.h:1711
THashIter EdgeHI
Definition: network.h:1710
bool TNEANet::TEdgeI::operator== ( const TEdgeI EdgeI) const
inline

Definition at line 1720 of file network.h.

1720 { return EdgeHI == EdgeI.EdgeHI; }
THashIter EdgeHI
Definition: network.h:1710

Friends And Related Function Documentation

friend class TNEANet
friend

Definition at line 1747 of file network.h.

Member Data Documentation

THashIter TNEANet::TEdgeI::EdgeHI
private

Definition at line 1710 of file network.h.

const TNEANet* TNEANet::TEdgeI::Graph
private

Definition at line 1711 of file network.h.


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