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

Member Typedef Documentation

Definition at line 1984 of file network.h.

Constructor & Destructor Documentation

TNEANet::TAFltI::TAFltI ( )
inline

Definition at line 1990 of file network.h.

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

Definition at line 1991 of file network.h.

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

Definition at line 1992 of file network.h.

References isNode.

1992 : HI(I.HI), attr(I.attr), Graph(I.Graph) { isNode = I.isNode; }
TFltVecIter HI
Definition: network.h:1985
const TNEANet * Graph
Definition: network.h:1988

Member Function Documentation

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

Returns an attribute of the node.

Definition at line 1997 of file network.h.

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

Returns true if the attribute has been deleted.

Definition at line 1999 of file network.h.

TFlt GetDat() const
Returns an attribute of the node.
Definition: network.h:1997
TFlt GetFltAttrDefaultE(const TStr &attribute) const
Gets Flt edge attribute val. If not a proper attr, return default.
Definition: network.h:2023
const TNEANet * Graph
Definition: network.h:1988
TFlt GetFltAttrDefaultN(const TStr &attribute) const
Gets Flt node attribute val. If not a proper attr, return default.
Definition: network.h:2017
TAFltI& TNEANet::TAFltI::operator++ ( int  )
inline

Definition at line 2000 of file network.h.

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

Definition at line 1994 of file network.h.

References HI.

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

Definition at line 1993 of file network.h.

References attr, Graph, HI, and isNode.

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

Definition at line 1995 of file network.h.

References HI.

1995 { return HI == I.HI; }
TFltVecIter HI
Definition: network.h:1985

Friends And Related Function Documentation

friend class TNEANet
friend

Definition at line 2001 of file network.h.

Member Data Documentation

TStr TNEANet::TAFltI::attr
private

Definition at line 1987 of file network.h.

Referenced by operator=().

const TNEANet* TNEANet::TAFltI::Graph
private

Definition at line 1988 of file network.h.

Referenced by operator=().

TFltVecIter TNEANet::TAFltI::HI
private

Definition at line 1985 of file network.h.

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

bool TNEANet::TAFltI::isNode
private

Definition at line 1986 of file network.h.

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


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