SNAP Library 2.4, User Reference  2015-05-11 19:40:56
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TNEANet::TAFltI Class Reference

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

#include <network.h>

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. More...
 
bool IsDeleted () const
 Returns true if the attribute has been deleted. More...
 
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

TNEANet::TAFltI::TAFltI ( )
inline

Definition at line 1793 of file network.h.

1793 : HI(), attr(), Graph(NULL) { }
TFltVecIter HI
Definition: network.h:1788
const TNEANet * Graph
Definition: network.h:1791
TNEANet::TAFltI::TAFltI ( const TFltVecIter HIter,
TStr  attribute,
bool  isEdgeIter,
const TNEANet GraphPt 
)
inline

Definition at line 1794 of file network.h.

1794 : HI(HIter), attr(), Graph(GraphPt) { isNode = !isEdgeIter; attr = attribute; }
TFltVecIter HI
Definition: network.h:1788
const TNEANet * Graph
Definition: network.h:1791
TNEANet::TAFltI::TAFltI ( const TAFltI I)
inline

Definition at line 1795 of file network.h.

1795 : HI(I.HI), attr(I.attr), Graph(I.Graph) { isNode = I.isNode; }
TFltVecIter HI
Definition: network.h:1788
const TNEANet * Graph
Definition: network.h:1791

Member Function Documentation

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

Returns an attribute of the node.

Definition at line 1800 of file network.h.

1800 { return HI[0]; }
TFltVecIter HI
Definition: network.h:1788
bool TNEANet::TAFltI::IsDeleted ( ) const
inline

Returns true if the attribute has been deleted.

Definition at line 1802 of file network.h.

TFlt GetDat() const
Returns an attribute of the node.
Definition: network.h:1800
TFlt GetFltAttrDefaultE(const TStr &attribute) const
Get Flt edge attribute val. If not a proper attr, return default.
Definition: network.h:1824
const TNEANet * Graph
Definition: network.h:1791
TFlt GetFltAttrDefaultN(const TStr &attribute) const
Get Flt node attribute val. If not a proper attr, return default.
Definition: network.h:1818
TAFltI& TNEANet::TAFltI::operator++ ( int  )
inline

Definition at line 1803 of file network.h.

1803 { HI++; return *this; }
TFltVecIter HI
Definition: network.h:1788
bool TNEANet::TAFltI::operator< ( const TAFltI I) const
inline

Definition at line 1797 of file network.h.

1797 { return HI < I.HI; }
TFltVecIter HI
Definition: network.h:1788
TAFltI& TNEANet::TAFltI::operator= ( const TAFltI I)
inline

Definition at line 1796 of file network.h.

1796 { HI = I.HI; Graph=I.Graph; isNode = I.isNode; attr = I.attr; return *this; }
TFltVecIter HI
Definition: network.h:1788
const TNEANet * Graph
Definition: network.h:1791
bool TNEANet::TAFltI::operator== ( const TAFltI I) const
inline

Definition at line 1798 of file network.h.

1798 { return HI == I.HI; }
TFltVecIter HI
Definition: network.h:1788

Friends And Related Function Documentation

friend class TNEANet
friend

Definition at line 1804 of file network.h.

Member Data Documentation

TStr TNEANet::TAFltI::attr
private

Definition at line 1790 of file network.h.

const TNEANet* TNEANet::TAFltI::Graph
private

Definition at line 1791 of file network.h.

TFltVecIter TNEANet::TAFltI::HI
private

Definition at line 1788 of file network.h.

bool TNEANet::TAFltI::isNode
private

Definition at line 1789 of file network.h.


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