SNAP Library 3.0, User 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
TNEANet::TAFltI Class Reference

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

#include <network.h>

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

Member Typedef Documentation

Definition at line 1819 of file network.h.

Constructor & Destructor Documentation

TNEANet::TAFltI::TAFltI ( )
inline

Definition at line 1825 of file network.h.

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

Definition at line 1826 of file network.h.

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

Definition at line 1827 of file network.h.

1827 : HI(I.HI), attr(I.attr), Graph(I.Graph) { isNode = I.isNode; }
TFltVecIter HI
Definition: network.h:1820
const TNEANet * Graph
Definition: network.h:1823

Member Function Documentation

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

Returns an attribute of the node.

Definition at line 1832 of file network.h.

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

Returns true if the attribute has been deleted.

Definition at line 1834 of file network.h.

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

Definition at line 1835 of file network.h.

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

Definition at line 1829 of file network.h.

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

Definition at line 1828 of file network.h.

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

Definition at line 1830 of file network.h.

1830 { return HI == I.HI; }
TFltVecIter HI
Definition: network.h:1820

Friends And Related Function Documentation

friend class TNEANet
friend

Definition at line 1836 of file network.h.

Member Data Documentation

TStr TNEANet::TAFltI::attr
private

Definition at line 1822 of file network.h.

const TNEANet* TNEANet::TAFltI::Graph
private

Definition at line 1823 of file network.h.

TFltVecIter TNEANet::TAFltI::HI
private

Definition at line 1820 of file network.h.

bool TNEANet::TAFltI::isNode
private

Definition at line 1821 of file network.h.


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