SNAP Library 6.0, User Reference  2020-12-09 16:24:20
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
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 1867 of file network.h.

Member Typedef Documentation

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

Definition at line 1869 of file network.h.

Constructor & Destructor Documentation

TNEANet::TEdgeI::TEdgeI ( )
inline

Definition at line 1873 of file network.h.

1873 : EdgeHI(), Graph(NULL) { }
const TNEANet * Graph
Definition: network.h:1871
THashIter EdgeHI
Definition: network.h:1870
TNEANet::TEdgeI::TEdgeI ( const THashIter EdgeHIter,
const TNEANet GraphPt 
)
inline

Definition at line 1874 of file network.h.

1874 : EdgeHI(EdgeHIter), Graph(GraphPt) { }
const TNEANet * Graph
Definition: network.h:1871
THashIter EdgeHI
Definition: network.h:1870
TNEANet::TEdgeI::TEdgeI ( const TEdgeI EdgeI)
inline

Definition at line 1875 of file network.h.

1875 : EdgeHI(EdgeI.EdgeHI), Graph(EdgeI.Graph) { }
const TNEANet * Graph
Definition: network.h:1871
THashIter EdgeHI
Definition: network.h:1870

Member Function Documentation

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

Gets vector of attribute names.

Definition at line 1888 of file network.h.

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

Gets vector of attribute values.

Definition at line 1890 of file network.h.

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

Returns the destination of the edge.

Definition at line 1886 of file network.h.

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

Gets vector of flt attribute names.

Definition at line 1904 of file network.h.

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

Gets vector of flt attribute values.

Definition at line 1906 of file network.h.

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

Returns edge ID.

Definition at line 1882 of file network.h.

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

Gets vector of int attribute names.

Definition at line 1892 of file network.h.

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

Gets vector of int attribute values.

Definition at line 1894 of file network.h.

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

Gets vector of int attribute names.

Definition at line 1896 of file network.h.

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

Gets vector of int attribute values.

Definition at line 1898 of file network.h.

1898 { 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:2608
const TNEANet * Graph
Definition: network.h:1871
int GetId() const
Returns edge ID.
Definition: network.h:1882
int TNEANet::TEdgeI::GetSrcNId ( ) const
inline

Returns the source of the edge.

Definition at line 1884 of file network.h.

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

Gets vector of str attribute names.

Definition at line 1900 of file network.h.

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

Gets vector of str attribute values.

Definition at line 1902 of file network.h.

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

Increment iterator.

Definition at line 1878 of file network.h.

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

Definition at line 1879 of file network.h.

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

Definition at line 1876 of file network.h.

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

Definition at line 1880 of file network.h.

1880 { return EdgeHI == EdgeI.EdgeHI; }
THashIter EdgeHI
Definition: network.h:1870

Friends And Related Function Documentation

friend class TNEANet
friend

Definition at line 1907 of file network.h.

Member Data Documentation

THashIter TNEANet::TEdgeI::EdgeHI
private

Definition at line 1870 of file network.h.

const TNEANet* TNEANet::TEdgeI::Graph
private

Definition at line 1871 of file network.h.


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