SNAP Library 2.2, Developer 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::TAFltI Class Reference

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

#include <network.h>

Collaboration diagram for TNEANet::TAFltI:

List of all members.

Public Member Functions

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

Private Types

typedef TFltV::TIter TFltVecIter

Private Attributes

TFltVecIter HI
bool isNode
TStr attr
const TNEANetGraph

Friends

class TNEANet

Detailed Description

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

Definition at line 1785 of file network.h.


Member Typedef Documentation

Definition at line 1787 of file network.h.


Constructor & Destructor Documentation

Definition at line 1793 of file network.h.

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

Definition at line 1794 of file network.h.

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

Definition at line 1795 of file network.h.

References isNode.

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

Member Function Documentation

TFlt TNEANet::TAFltI::GetDat ( ) const [inline]

Returns an attribute of the node.

Definition at line 1800 of file network.h.

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

Returns true if the attribute has been deleted.

Definition at line 1802 of file network.h.

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

Definition at line 1803 of file network.h.

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

Definition at line 1797 of file network.h.

References HI.

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

Definition at line 1796 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::TAFltI::operator== ( const TAFltI I) const [inline]

Definition at line 1798 of file network.h.

References HI.

{ return HI == I.HI; }

Friends And Related Function Documentation

friend class TNEANet [friend]

Definition at line 1804 of file network.h.


Member Data Documentation

Definition at line 1790 of file network.h.

Referenced by operator=().

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

Definition at line 1791 of file network.h.

Referenced by operator=().

Definition at line 1788 of file network.h.

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

bool TNEANet::TAFltI::isNode [private]

Definition at line 1789 of file network.h.

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


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