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
TCrossNet::TAFltI Class Reference

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

#include <mmnet.h>

Collaboration diagram for TCrossNet::TAFltI:

Public Member Functions

 TAFltI ()
 
 TAFltI (const TFltVecIter &HIter, TStr attribute, const TCrossNet *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
 
TStr attr
 
const TCrossNetGraph
 

Friends

class TCrossNet
 

Detailed Description

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

Definition at line 234 of file mmnet.h.

Member Typedef Documentation

Definition at line 236 of file mmnet.h.

Constructor & Destructor Documentation

TCrossNet::TAFltI::TAFltI ( )
inline

Definition at line 241 of file mmnet.h.

241 : HI(), attr(), Graph(NULL) { }
const TCrossNet * Graph
Definition: mmnet.h:239
TFltVecIter HI
Definition: mmnet.h:237
TCrossNet::TAFltI::TAFltI ( const TFltVecIter HIter,
TStr  attribute,
const TCrossNet GraphPt 
)
inline

Definition at line 242 of file mmnet.h.

References attr.

242 : HI(HIter), attr(), Graph(GraphPt) { attr = attribute; }
const TCrossNet * Graph
Definition: mmnet.h:239
TFltVecIter HI
Definition: mmnet.h:237
TCrossNet::TAFltI::TAFltI ( const TAFltI I)
inline

Definition at line 243 of file mmnet.h.

243 : HI(I.HI), attr(I.attr), Graph(I.Graph) { }
const TCrossNet * Graph
Definition: mmnet.h:239
TFltVecIter HI
Definition: mmnet.h:237

Member Function Documentation

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

Returns an attribute of the node.

Definition at line 248 of file mmnet.h.

References HI.

Referenced by IsDeleted().

248 { return HI[0]; }
TFltVecIter HI
Definition: mmnet.h:237

Here is the caller graph for this function:

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

Returns true if the attribute has been deleted.

Definition at line 250 of file mmnet.h.

References attr, GetDat(), TCrossNet::GetFltAttrDefaultE(), and Graph.

250 { return GetDat() == Graph->GetFltAttrDefaultE(attr); };
const TCrossNet * Graph
Definition: mmnet.h:239
TFlt GetDat() const
Returns an attribute of the node.
Definition: mmnet.h:248
TFlt GetFltAttrDefaultE(const TStr &attribute) const
Gets Flt edge attribute val. If not a proper attr, return default.
Definition: mmnet.h:318

Here is the call graph for this function:

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

Definition at line 251 of file mmnet.h.

References HI.

251 { HI++; return *this; }
TFltVecIter HI
Definition: mmnet.h:237
bool TCrossNet::TAFltI::operator< ( const TAFltI I) const
inline

Definition at line 245 of file mmnet.h.

References HI.

245 { return HI < I.HI; }
TFltVecIter HI
Definition: mmnet.h:237
TAFltI& TCrossNet::TAFltI::operator= ( const TAFltI I)
inline

Definition at line 244 of file mmnet.h.

References attr, Graph, and HI.

244 { HI = I.HI; Graph=I.Graph; attr = I.attr; return *this; }
const TCrossNet * Graph
Definition: mmnet.h:239
TFltVecIter HI
Definition: mmnet.h:237
bool TCrossNet::TAFltI::operator== ( const TAFltI I) const
inline

Definition at line 246 of file mmnet.h.

References HI.

246 { return HI == I.HI; }
TFltVecIter HI
Definition: mmnet.h:237

Friends And Related Function Documentation

friend class TCrossNet
friend

Definition at line 252 of file mmnet.h.

Member Data Documentation

TStr TCrossNet::TAFltI::attr
private

Definition at line 238 of file mmnet.h.

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

const TCrossNet* TCrossNet::TAFltI::Graph
private

Definition at line 239 of file mmnet.h.

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

TFltVecIter TCrossNet::TAFltI::HI
private

Definition at line 237 of file mmnet.h.

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


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