SNAP Library 2.4, User Reference  2015-05-11 19:40:56
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 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 1699 of file network.h.

Member Typedef Documentation

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

Definition at line 1701 of file network.h.

Constructor & Destructor Documentation

TNEANet::TEdgeI::TEdgeI ( )
inline

Definition at line 1705 of file network.h.

1705 : EdgeHI(), Graph(NULL) { }
const TNEANet * Graph
Definition: network.h:1703
THashIter EdgeHI
Definition: network.h:1702
TNEANet::TEdgeI::TEdgeI ( const THashIter EdgeHIter,
const TNEANet GraphPt 
)
inline

Definition at line 1706 of file network.h.

1706 : EdgeHI(EdgeHIter), Graph(GraphPt) { }
const TNEANet * Graph
Definition: network.h:1703
THashIter EdgeHI
Definition: network.h:1702
TNEANet::TEdgeI::TEdgeI ( const TEdgeI EdgeI)
inline

Definition at line 1707 of file network.h.

1707 : EdgeHI(EdgeI.EdgeHI), Graph(EdgeI.Graph) { }
const TNEANet * Graph
Definition: network.h:1703
THashIter EdgeHI
Definition: network.h:1702

Member Function Documentation

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

Gets vector of attribute names.

Definition at line 1720 of file network.h.

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

Gets vector of attribute values.

Definition at line 1722 of file network.h.

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

Returns the destination of the edge.

Definition at line 1718 of file network.h.

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

Gets vector of flt attribute names.

Definition at line 1732 of file network.h.

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

Gets vector of flt attribute values.

Definition at line 1734 of file network.h.

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

Returns edge ID.

Definition at line 1714 of file network.h.

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

Gets vector of int attribute names.

Definition at line 1724 of file network.h.

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

Gets vector of int attribute values.

Definition at line 1726 of file network.h.

1726 { Graph->IntAttrValueEI(GetId(), Val); }
const TNEANet * Graph
Definition: network.h:1703
void IntAttrValueEI(const TInt &EId, TIntV &Values) const
Returns a vector of attr values for edge EId.
Definition: network.h:1988
int GetId() const
Returns edge ID.
Definition: network.h:1714
int TNEANet::TEdgeI::GetSrcNId ( ) const
inline

Returns the source of the edge.

Definition at line 1716 of file network.h.

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

Gets vector of str attribute names.

Definition at line 1728 of file network.h.

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

Gets vector of str attribute values.

Definition at line 1730 of file network.h.

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

Increment iterator.

Definition at line 1710 of file network.h.

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

Definition at line 1711 of file network.h.

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

Definition at line 1708 of file network.h.

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

Definition at line 1712 of file network.h.

1712 { return EdgeHI == EdgeI.EdgeHI; }
THashIter EdgeHI
Definition: network.h:1702

Friends And Related Function Documentation

friend class TNEANet
friend

Definition at line 1735 of file network.h.

Member Data Documentation

THashIter TNEANet::TEdgeI::EdgeHI
private

Definition at line 1702 of file network.h.

const TNEANet* TNEANet::TEdgeI::Graph
private

Definition at line 1703 of file network.h.


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