SNAP Library 3.0, Developer Reference  2016-07-20 17:56:49
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 225 of file mmnet.h.

Member Typedef Documentation

Definition at line 227 of file mmnet.h.

Constructor & Destructor Documentation

TCrossNet::TAFltI::TAFltI ( )
inline

Definition at line 232 of file mmnet.h.

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

Definition at line 233 of file mmnet.h.

References attr.

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

Definition at line 234 of file mmnet.h.

234 : HI(I.HI), attr(I.attr), Graph(I.Graph) { }
const TCrossNet * Graph
Definition: mmnet.h:230
TFltVecIter HI
Definition: mmnet.h:228

Member Function Documentation

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

Returns an attribute of the node.

Definition at line 239 of file mmnet.h.

References HI.

Referenced by IsDeleted().

239 { return HI[0]; }
TFltVecIter HI
Definition: mmnet.h:228

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 241 of file mmnet.h.

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

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

Here is the call graph for this function:

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

Definition at line 242 of file mmnet.h.

References HI.

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

Definition at line 236 of file mmnet.h.

References HI.

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

Definition at line 235 of file mmnet.h.

References attr, Graph, and HI.

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

Definition at line 237 of file mmnet.h.

References HI.

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

Friends And Related Function Documentation

friend class TCrossNet
friend

Definition at line 243 of file mmnet.h.

Member Data Documentation

TStr TCrossNet::TAFltI::attr
private

Definition at line 229 of file mmnet.h.

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

const TCrossNet* TCrossNet::TAFltI::Graph
private

Definition at line 230 of file mmnet.h.

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

TFltVecIter TCrossNet::TAFltI::HI
private

Definition at line 228 of file mmnet.h.

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


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