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
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
TNEANet::TAIntI Class Reference

Node/Edge Attr iterator. Iterate through all node for one attr value. More...

#include <network.h>

Collaboration diagram for TNEANet::TAIntI:

List of all members.

Public Member Functions

 TAIntI ()
 TAIntI (const TIntVecIter &HIter, TStr attribute, bool isEdgeIter, const TNEANet *GraphPt)
 TAIntI (const TAIntI &I)
TAIntIoperator= (const TAIntI &I)
bool operator< (const TAIntI &I) const
bool operator== (const TAIntI &I) const
TInt GetDat () const
 Returns an attribute of the node.
bool IsDeleted () const
 Returns true if node or edge has been deleted.
TAIntIoperator++ (int)

Private Types

typedef TIntV::TIter TIntVecIter

Private Attributes

TIntVecIter HI
bool isNode
TStr attr
const TNEANetGraph

Friends

class TNEANet

Detailed Description

Node/Edge Attr iterator. Iterate through all node for one attr value.

Definition at line 1727 of file network.h.


Member Typedef Documentation

Definition at line 1729 of file network.h.


Constructor & Destructor Documentation

Definition at line 1735 of file network.h.

: HI(), attr(), Graph(NULL) { }
TNEANet::TAIntI::TAIntI ( const TIntVecIter HIter,
TStr  attribute,
bool  isEdgeIter,
const TNEANet GraphPt 
) [inline]

Definition at line 1736 of file network.h.

: HI(HIter), attr(), Graph(GraphPt) { isNode = !isEdgeIter; attr = attribute; }
TNEANet::TAIntI::TAIntI ( const TAIntI I) [inline]

Definition at line 1737 of file network.h.

References isNode.

: HI(I.HI), attr(I.attr), Graph(I.Graph) { isNode = I.isNode; }

Member Function Documentation

TInt TNEANet::TAIntI::GetDat ( ) const [inline]

Returns an attribute of the node.

Definition at line 1742 of file network.h.

{ return HI[0]; }
bool TNEANet::TAIntI::IsDeleted ( ) const [inline]

Returns true if node or edge has been deleted.

Definition at line 1744 of file network.h.

TAIntI& TNEANet::TAIntI::operator++ ( int  ) [inline]

Definition at line 1745 of file network.h.

{ HI++; return *this; }
bool TNEANet::TAIntI::operator< ( const TAIntI I) const [inline]

Definition at line 1739 of file network.h.

References HI.

{ return HI < I.HI; }
TAIntI& TNEANet::TAIntI::operator= ( const TAIntI I) [inline]

Definition at line 1738 of file network.h.

References attr, Graph, HI, and isNode.

{ HI = I.HI; Graph=I.Graph; isNode = I.isNode; attr = I.attr; return *this; }
bool TNEANet::TAIntI::operator== ( const TAIntI I) const [inline]

Definition at line 1740 of file network.h.

References HI.

{ return HI == I.HI; }

Friends And Related Function Documentation

friend class TNEANet [friend]

Definition at line 1746 of file network.h.


Member Data Documentation

Definition at line 1732 of file network.h.

Referenced by operator=().

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

Definition at line 1733 of file network.h.

Referenced by operator=().

Definition at line 1730 of file network.h.

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

bool TNEANet::TAIntI::isNode [private]

Definition at line 1731 of file network.h.

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


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