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::TAStrI Class Reference

Node/edge string attribute iterator. Iterates through all nodes/edges for one string attribute. More...

#include <network.h>

List of all members.

Public Member Functions

 TAStrI ()
 TAStrI (const TStrVecIter &HIter, TStr attribute, bool isEdgeIter, const TNEANet *GraphPt)
 TAStrI (const TAStrI &I)
TAStrIoperator= (const TAStrI &I)
bool operator< (const TAStrI &I) const
bool operator== (const TAStrI &I) const
TStr GetDat () const
 Returns an attribute of the node.
bool IsDeleted () const
 Returns true if the attribute has been deleted.
TAStrIoperator++ (int)

Private Types

typedef TStrV::TIter TStrVecIter

Private Attributes

TStrVecIter HI
bool isNode
TStr attr
const TNEANetGraph

Friends

class TNEANet

Detailed Description

Node/edge string attribute iterator. Iterates through all nodes/edges for one string attribute.

Definition at line 1762 of file network.h.


Member Typedef Documentation

Definition at line 1764 of file network.h.


Constructor & Destructor Documentation

Definition at line 1770 of file network.h.

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

Definition at line 1771 of file network.h.

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

Definition at line 1772 of file network.h.

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

Member Function Documentation

TStr TNEANet::TAStrI::GetDat ( ) const [inline]

Returns an attribute of the node.

Definition at line 1777 of file network.h.

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

Returns true if the attribute has been deleted.

Definition at line 1779 of file network.h.

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

Definition at line 1780 of file network.h.

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

Definition at line 1774 of file network.h.

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

Definition at line 1773 of file network.h.

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

Definition at line 1775 of file network.h.

{ return HI == I.HI; }

Friends And Related Function Documentation

friend class TNEANet [friend]

Definition at line 1781 of file network.h.


Member Data Documentation

Definition at line 1767 of file network.h.

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

Definition at line 1768 of file network.h.

Definition at line 1765 of file network.h.

bool TNEANet::TAStrI::isNode [private]

Definition at line 1766 of file network.h.


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