SNAP Library 2.1, User Reference  2013-09-25 10:47:25
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
TNEANet::TEdgeI Class Reference

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

#include <network.h>

List of all members.

Public Member Functions

 TEdgeI ()
 TEdgeI (const THashIter &EdgeHIter, const TNEANet *GraphPt)
 TEdgeI (const TEdgeI &EdgeI)
TEdgeIoperator= (const TEdgeI &EdgeI)
TEdgeIoperator++ (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 TNEANetGraph

Friends

class TNEANet

Detailed Description

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

Definition at line 1687 of file network.h.


Member Typedef Documentation

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

Definition at line 1689 of file network.h.


Constructor & Destructor Documentation

Definition at line 1693 of file network.h.

: EdgeHI(), Graph(NULL) { }
TNEANet::TEdgeI::TEdgeI ( const THashIter EdgeHIter,
const TNEANet GraphPt 
) [inline]

Definition at line 1694 of file network.h.

: EdgeHI(EdgeHIter), Graph(GraphPt) { }
TNEANet::TEdgeI::TEdgeI ( const TEdgeI EdgeI) [inline]

Definition at line 1695 of file network.h.

: EdgeHI(EdgeI.EdgeHI), Graph(EdgeI.Graph) { }

Member Function Documentation

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.

{ 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.

{ 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.

{ 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]

Increment iterator.

Definition at line 1698 of file network.h.

{ EdgeHI++; return *this; }
bool TNEANet::TEdgeI::operator< ( const TEdgeI EdgeI) const [inline]

Definition at line 1699 of file network.h.

{ return EdgeHI < EdgeI.EdgeHI; }
TEdgeI& TNEANet::TEdgeI::operator= ( const TEdgeI EdgeI) [inline]

Definition at line 1696 of file network.h.

{ if (this!=&EdgeI) { EdgeHI=EdgeI.EdgeHI; Graph=EdgeI.Graph; }  return *this; }
bool TNEANet::TEdgeI::operator== ( const TEdgeI EdgeI) const [inline]

Definition at line 1700 of file network.h.

{ return EdgeHI == EdgeI.EdgeHI; }

Friends And Related Function Documentation

friend class TNEANet [friend]

Definition at line 1723 of file network.h.


Member Data Documentation

Definition at line 1690 of file network.h.

const TNEANet* TNEANet::TEdgeI::Graph [private]

Definition at line 1691 of file network.h.


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