SNAP Library 4.0, User Reference  2017-07-27 13:18:06
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
TNEANetMP::TAFltI Class Reference

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

#include <networkmp.h>

Public Member Functions

 TAFltI ()
 
 TAFltI (const TFltVecIter &HIter, TStr attribute, bool isEdgeIter, const TNEANetMP *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 TNEANetMPGraph
 

Friends

class TNEANetMP
 

Detailed Description

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

Definition at line 225 of file networkmp.h.

Member Typedef Documentation

Definition at line 227 of file networkmp.h.

Constructor & Destructor Documentation

TNEANetMP::TAFltI::TAFltI ( )
inline

Definition at line 233 of file networkmp.h.

233 : HI(), attr(), Graph(NULL) { }
TFltVecIter HI
Definition: networkmp.h:228
const TNEANetMP * Graph
Definition: networkmp.h:231
TNEANetMP::TAFltI::TAFltI ( const TFltVecIter HIter,
TStr  attribute,
bool  isEdgeIter,
const TNEANetMP GraphPt 
)
inline

Definition at line 234 of file networkmp.h.

234 : HI(HIter), attr(), Graph(GraphPt) { isNode = !isEdgeIter; attr = attribute; }
TFltVecIter HI
Definition: networkmp.h:228
const TNEANetMP * Graph
Definition: networkmp.h:231
TNEANetMP::TAFltI::TAFltI ( const TAFltI I)
inline

Definition at line 235 of file networkmp.h.

235 : HI(I.HI), attr(I.attr), Graph(I.Graph) { isNode = I.isNode; }
TFltVecIter HI
Definition: networkmp.h:228
const TNEANetMP * Graph
Definition: networkmp.h:231

Member Function Documentation

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

Returns an attribute of the node.

Definition at line 240 of file networkmp.h.

240 { return HI[0]; }
TFltVecIter HI
Definition: networkmp.h:228
bool TNEANetMP::TAFltI::IsDeleted ( ) const
inline

Returns true if the attribute has been deleted.

Definition at line 242 of file networkmp.h.

TFlt GetFltAttrDefaultE(const TStr &attribute) const
Get Flt edge attribute val. If not a proper attr, return default.
Definition: networkmp.h:264
TFlt GetFltAttrDefaultN(const TStr &attribute) const
Get Flt node attribute val. If not a proper attr, return default.
Definition: networkmp.h:258
TFlt GetDat() const
Returns an attribute of the node.
Definition: networkmp.h:240
const TNEANetMP * Graph
Definition: networkmp.h:231
TAFltI& TNEANetMP::TAFltI::operator++ ( int  )
inline

Definition at line 243 of file networkmp.h.

243 { HI++; return *this; }
TFltVecIter HI
Definition: networkmp.h:228
bool TNEANetMP::TAFltI::operator< ( const TAFltI I) const
inline

Definition at line 237 of file networkmp.h.

237 { return HI < I.HI; }
TFltVecIter HI
Definition: networkmp.h:228
TAFltI& TNEANetMP::TAFltI::operator= ( const TAFltI I)
inline

Definition at line 236 of file networkmp.h.

236 { HI = I.HI; Graph=I.Graph; isNode = I.isNode; attr = I.attr; return *this; }
TFltVecIter HI
Definition: networkmp.h:228
const TNEANetMP * Graph
Definition: networkmp.h:231
bool TNEANetMP::TAFltI::operator== ( const TAFltI I) const
inline

Definition at line 238 of file networkmp.h.

238 { return HI == I.HI; }
TFltVecIter HI
Definition: networkmp.h:228

Friends And Related Function Documentation

friend class TNEANetMP
friend

Definition at line 244 of file networkmp.h.

Member Data Documentation

TStr TNEANetMP::TAFltI::attr
private

Definition at line 230 of file networkmp.h.

const TNEANetMP* TNEANetMP::TAFltI::Graph
private

Definition at line 231 of file networkmp.h.

TFltVecIter TNEANetMP::TAFltI::HI
private

Definition at line 228 of file networkmp.h.

bool TNEANetMP::TAFltI::isNode
private

Definition at line 229 of file networkmp.h.


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