SNAP Library 4.0, Developer 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>

Collaboration diagram for TNEANetMP::TAFltI:

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.

References attr, and isNode.

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.

References isNode.

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.

References HI.

Referenced by IsDeleted().

240 { return HI[0]; }
TFltVecIter HI
Definition: networkmp.h:228

Here is the caller graph for this function:

bool TNEANetMP::TAFltI::IsDeleted ( ) const
inline

Returns true if the attribute has been deleted.

Definition at line 242 of file networkmp.h.

References attr, GetDat(), TNEANetMP::GetFltAttrDefaultE(), TNEANetMP::GetFltAttrDefaultN(), Graph, and isNode.

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

Here is the call graph for this function:

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

Definition at line 243 of file networkmp.h.

References HI.

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.

References HI.

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.

References attr, Graph, HI, and isNode.

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.

References HI.

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.

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

const TNEANetMP* TNEANetMP::TAFltI::Graph
private

Definition at line 231 of file networkmp.h.

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

TFltVecIter TNEANetMP::TAFltI::HI
private

Definition at line 228 of file networkmp.h.

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

bool TNEANetMP::TAFltI::isNode
private

Definition at line 229 of file networkmp.h.

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


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