SNAP Library 6.0, Developer Reference  2020-12-09 16:24:20
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
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:

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 2007 of file network.h.

Member Typedef Documentation

Definition at line 2009 of file network.h.

Constructor & Destructor Documentation

TNEANet::TAFltI::TAFltI ( )
inline

Definition at line 2015 of file network.h.

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

Definition at line 2016 of file network.h.

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

Definition at line 2017 of file network.h.

References isNode.

2017 : HI(I.HI), attr(I.attr), Graph(I.Graph) { isNode = I.isNode; }
TFltVecIter HI
Definition: network.h:2010
const TNEANet * Graph
Definition: network.h:2013

Member Function Documentation

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

Returns an attribute of the node.

Definition at line 2022 of file network.h.

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

Returns true if the attribute has been deleted.

Definition at line 2024 of file network.h.

References TNEANet::GetFltAttrDefaultE(), and TNEANet::GetFltAttrDefaultN().

TFlt GetDat() const
Returns an attribute of the node.
Definition: network.h:2022
TFlt GetFltAttrDefaultE(const TStr &attribute) const
Gets Flt edge attribute val. If not a proper attr, return default.
Definition: network.h:2048
const TNEANet * Graph
Definition: network.h:2013
TFlt GetFltAttrDefaultN(const TStr &attribute) const
Gets Flt node attribute val. If not a proper attr, return default.
Definition: network.h:2042

Here is the call graph for this function:

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

Definition at line 2025 of file network.h.

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

Definition at line 2019 of file network.h.

References HI.

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

Definition at line 2018 of file network.h.

References attr, Graph, HI, and isNode.

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

Definition at line 2020 of file network.h.

References HI.

2020 { return HI == I.HI; }
TFltVecIter HI
Definition: network.h:2010

Friends And Related Function Documentation

friend class TNEANet
friend

Definition at line 2026 of file network.h.

Member Data Documentation

TStr TNEANet::TAFltI::attr
private

Definition at line 2012 of file network.h.

Referenced by operator=().

const TNEANet* TNEANet::TAFltI::Graph
private

Definition at line 2013 of file network.h.

Referenced by operator=().

TFltVecIter TNEANet::TAFltI::HI
private

Definition at line 2010 of file network.h.

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

bool TNEANet::TAFltI::isNode
private

Definition at line 2011 of file network.h.

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


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