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

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

#include <network.h>

Collaboration diagram for TNEANet::TEdgeI:

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.

References TNEANet::AttrNameEI().

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

Here is the call graph for this function:

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

Gets vector of attribute values.

Definition at line 1890 of file network.h.

References TNEANet::AttrValueEI().

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

Here is the call graph for this function:

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

Returns the destination of the edge.

Definition at line 1886 of file network.h.

Referenced by TNEANet::AddEdge(), TSnap::FindAugV(), TTable::GetEdgeTable(), and TSnap::GetMaxFlowIntEK().

1886 { return EdgeHI.GetDat().GetDstNId(); }
THashIter EdgeHI
Definition: network.h:1870

Here is the caller graph for this function:

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

Gets vector of flt attribute names.

Definition at line 1904 of file network.h.

References TNEANet::FltAttrNameEI().

Referenced by TTable::GetEdgeTable().

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Gets vector of flt attribute values.

Definition at line 1906 of file network.h.

References TNEANet::FltAttrValueEI().

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

Here is the call graph for this function:

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

Gets vector of int attribute names.

Definition at line 1892 of file network.h.

References TNEANet::IntAttrNameEI().

Referenced by TTable::GetEdgeTable().

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Gets vector of int attribute values.

Definition at line 1894 of file network.h.

References TNEANet::IntAttrValueEI().

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

Here is the call graph for this function:

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

Gets vector of int attribute names.

Definition at line 1896 of file network.h.

References TNEANet::IntVAttrNameEI().

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

Here is the call graph for this function:

void TNEANet::TEdgeI::GetIntVAttrVal ( TVec< TIntV > &  Val) const
inline

Gets vector of int attribute values.

Definition at line 1898 of file network.h.

References TNEANet::IntVAttrValueEI().

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

Here is the call graph for this function:

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

Returns the source of the edge.

Definition at line 1884 of file network.h.

Referenced by TNEANet::AddEdge(), TSnap::FindAugV(), TTable::GetEdgeTable(), and TSnap::GetMaxFlowIntEK().

1884 { return EdgeHI.GetDat().GetSrcNId(); }
THashIter EdgeHI
Definition: network.h:1870

Here is the caller graph for this function:

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

Gets vector of str attribute names.

Definition at line 1900 of file network.h.

References TNEANet::StrAttrNameEI().

Referenced by TTable::GetEdgeTable().

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Gets vector of str attribute values.

Definition at line 1902 of file network.h.

References TNEANet::StrAttrValueEI().

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

Here is the call graph for this function:

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.

References EdgeHI.

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.

References EdgeHI, and Graph.

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.

References EdgeHI.

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.

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

const TNEANet* TNEANet::TEdgeI::Graph
private

Definition at line 1871 of file network.h.

Referenced by operator=().


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