SNAP Library 2.1, Developer Reference
2013-09-25 10:47:25
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
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) | |
TEdgeI & | operator= (const TEdgeI &EdgeI) |
TEdgeI & | operator++ (int) |
Increment iterator. | |
bool | operator< (const TEdgeI &EdgeI) const |
bool | operator== (const TEdgeI &EdgeI) const |
int | GetId () const |
Gets edge ID. | |
int | GetSrcNId () const |
Gets the source of an edge. | |
int | GetDstNId () const |
Gets destination of an edge. | |
void | GetAttrNames (TStrV &Names) const |
Gets vector of attribute names. | |
void | GetAttrVal (TStrV &Val) const |
Gets vector of attribute values. | |
void | GetIntAttrNames (TStrV &Names) const |
Gets vector of int attribute names. | |
void | GetIntAttrVal (TIntV &Val) const |
Gets vector of int attribute values. | |
void | GetStrAttrNames (TStrV &Names) const |
Gets vector of str attribute names. | |
void | GetStrAttrVal (TStrV &Val) const |
Gets vector of str attribute values. | |
void | GetFltAttrNames (TStrV &Names) const |
Gets vector of flt attribute names. | |
void | GetFltAttrVal (TFltV &Val) const |
Gets vector of flt attribute values. | |
Private Types | |
typedef THash< TInt, TEdge >::TIter | THashIter |
Private Attributes | |
THashIter | EdgeHI |
const TNEANet * | Graph |
Friends | |
class | TNEANet |
Edge iterator. Only forward iteration (operator++) is supported.
typedef THash<TInt, TEdge>::TIter TNEANet::TEdgeI::THashIter [private] |
TNEANet::TEdgeI::TEdgeI | ( | ) | [inline] |
TNEANet::TEdgeI::TEdgeI | ( | const THashIter & | EdgeHIter, |
const TNEANet * | GraphPt | ||
) | [inline] |
TNEANet::TEdgeI::TEdgeI | ( | const TEdgeI & | EdgeI | ) | [inline] |
void TNEANet::TEdgeI::GetAttrNames | ( | TStrV & | Names | ) | const [inline] |
Gets vector of attribute names.
Definition at line 1708 of file network.h.
{ Graph->AttrNameEI(GetId(), Names); }
void TNEANet::TEdgeI::GetAttrVal | ( | TStrV & | Val | ) | const [inline] |
Gets vector of attribute values.
Definition at line 1710 of file network.h.
{ Graph->AttrValueEI(GetId(), Val); }
int TNEANet::TEdgeI::GetDstNId | ( | ) | const [inline] |
Gets destination of an edge.
Definition at line 1706 of file network.h.
Referenced by TNEANet::AddEdge().
{ return EdgeHI.GetDat().GetDstNId(); }
void TNEANet::TEdgeI::GetFltAttrNames | ( | TStrV & | Names | ) | const [inline] |
Gets vector of flt attribute names.
Definition at line 1720 of file network.h.
{ Graph->FltAttrNameEI(GetId(), Names); }
void TNEANet::TEdgeI::GetFltAttrVal | ( | TFltV & | Val | ) | const [inline] |
Gets vector of flt attribute values.
Definition at line 1722 of file network.h.
{ Graph->FltAttrValueEI(GetId(), Val); }
int TNEANet::TEdgeI::GetId | ( | ) | const [inline] |
Gets edge ID.
Definition at line 1702 of file network.h.
Referenced by TNEANet::AddEdge(), TNEANet::AddFltAttrDatE(), TNEANet::AddIntAttrDatE(), TNEANet::AddStrAttrDatE(), TNEANet::DelAttrDatE(), TNEANet::GetFltAttrDatE(), TNEANet::GetIntAttrDatE(), and TNEANet::GetStrAttrDatE().
{ return EdgeHI.GetDat().GetId(); }
void TNEANet::TEdgeI::GetIntAttrNames | ( | TStrV & | Names | ) | const [inline] |
Gets vector of int attribute names.
Definition at line 1712 of file network.h.
{ Graph->IntAttrNameEI(GetId(), Names); }
void TNEANet::TEdgeI::GetIntAttrVal | ( | TIntV & | Val | ) | const [inline] |
Gets vector of int attribute values.
Definition at line 1714 of file network.h.
{ Graph->IntAttrValueEI(GetId(), Val); }
int TNEANet::TEdgeI::GetSrcNId | ( | ) | const [inline] |
Gets the source of an edge.
Definition at line 1704 of file network.h.
Referenced by TNEANet::AddEdge().
{ return EdgeHI.GetDat().GetSrcNId(); }
void TNEANet::TEdgeI::GetStrAttrNames | ( | TStrV & | Names | ) | const [inline] |
Gets vector of str attribute names.
Definition at line 1716 of file network.h.
{ Graph->StrAttrNameEI(GetId(), Names); }
void TNEANet::TEdgeI::GetStrAttrVal | ( | TStrV & | Val | ) | const [inline] |
Gets vector of str attribute values.
Definition at line 1718 of file network.h.
{ Graph->StrAttrValueEI(GetId(), Val); }
TEdgeI& TNEANet::TEdgeI::operator++ | ( | int | ) | [inline] |
bool TNEANet::TEdgeI::operator< | ( | const TEdgeI & | EdgeI | ) | const [inline] |
bool TNEANet::TEdgeI::operator== | ( | const TEdgeI & | EdgeI | ) | const [inline] |
THashIter TNEANet::TEdgeI::EdgeHI [private] |
Definition at line 1690 of file network.h.
Referenced by operator<(), operator=(), and operator==().
const TNEANet* TNEANet::TEdgeI::Graph [private] |
Definition at line 1691 of file network.h.
Referenced by operator=().