SNAP Library 2.2, User Reference  2014-03-11 19:15:55
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
 Returns edge ID.
int GetSrcNId () const
 Returns the source of the edge.
int GetDstNId () const
 Returns the destination of the 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 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

Definition at line 1705 of file network.h.

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

Definition at line 1706 of file network.h.

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

Definition at line 1707 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 1720 of file network.h.

{ Graph->AttrNameEI(GetId(), Names); }
void TNEANet::TEdgeI::GetAttrVal ( TStrV Val) const [inline]

Gets vector of attribute values.

Definition at line 1722 of file network.h.

{ Graph->AttrValueEI(GetId(), Val); }
int TNEANet::TEdgeI::GetDstNId ( ) const [inline]

Returns the destination of the edge.

Definition at line 1718 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 1732 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 1734 of file network.h.

{ Graph->FltAttrValueEI(GetId(), Val); }
int TNEANet::TEdgeI::GetId ( ) const [inline]

Returns edge ID.

Definition at line 1714 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 1724 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 1726 of file network.h.

{ Graph->IntAttrValueEI(GetId(), Val); }
int TNEANet::TEdgeI::GetSrcNId ( ) const [inline]

Returns the source of the edge.

Definition at line 1716 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 1728 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 1730 of file network.h.

{ Graph->StrAttrValueEI(GetId(), Val); }
TEdgeI& TNEANet::TEdgeI::operator++ ( int  ) [inline]

Increment iterator.

Definition at line 1710 of file network.h.

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

Definition at line 1711 of file network.h.

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

Definition at line 1708 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 1712 of file network.h.

{ return EdgeHI == EdgeI.EdgeHI; }

Friends And Related Function Documentation

friend class TNEANet [friend]

Definition at line 1735 of file network.h.


Member Data Documentation

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: