SNAP Library 6.0, User Reference  2020-12-09 16:24:20
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
TNEANet::TAStrI Class Reference

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

#include <network.h>

Public Member Functions

 TAStrI ()
 
 TAStrI (const TStrVecIter &HIter, TStr attribute, bool isEdgeIter, const TNEANet *GraphPt)
 
 TAStrI (const TAStrI &I)
 
TAStrIoperator= (const TAStrI &I)
 
bool operator< (const TAStrI &I) const
 
bool operator== (const TAStrI &I) const
 
TStr GetDat () const
 Returns an attribute of the node. More...
 
bool IsDeleted () const
 Returns true if the attribute has been deleted. More...
 
TAStrIoperator++ (int)
 

Private Types

typedef TStrV::TIter TStrVecIter
 

Private Attributes

TStrVecIter HI
 
bool isNode
 
TStr attr
 
const TNEANetGraph
 

Friends

class TNEANet
 

Detailed Description

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

Definition at line 1984 of file network.h.

Member Typedef Documentation

Definition at line 1986 of file network.h.

Constructor & Destructor Documentation

TNEANet::TAStrI::TAStrI ( )
inline

Definition at line 1992 of file network.h.

1992 : HI(), attr(), Graph(NULL) { }
TStrVecIter HI
Definition: network.h:1987
const TNEANet * Graph
Definition: network.h:1990
TNEANet::TAStrI::TAStrI ( const TStrVecIter HIter,
TStr  attribute,
bool  isEdgeIter,
const TNEANet GraphPt 
)
inline

Definition at line 1993 of file network.h.

1993 : HI(HIter), attr(), Graph(GraphPt) { isNode = !isEdgeIter; attr = attribute; }
TStrVecIter HI
Definition: network.h:1987
const TNEANet * Graph
Definition: network.h:1990
TNEANet::TAStrI::TAStrI ( const TAStrI I)
inline

Definition at line 1994 of file network.h.

1994 : HI(I.HI), attr(I.attr), Graph(I.Graph) { isNode = I.isNode; }
TStrVecIter HI
Definition: network.h:1987
const TNEANet * Graph
Definition: network.h:1990

Member Function Documentation

TStr TNEANet::TAStrI::GetDat ( ) const
inline

Returns an attribute of the node.

Definition at line 1999 of file network.h.

1999 { return HI[0]; }
TStrVecIter HI
Definition: network.h:1987
bool TNEANet::TAStrI::IsDeleted ( ) const
inline

Returns true if the attribute has been deleted.

Definition at line 2001 of file network.h.

TStr GetDat() const
Returns an attribute of the node.
Definition: network.h:1999
TStr GetStrAttrDefaultE(const TStr &attribute) const
Gets Str edge attribute val. If not a proper attr, return default.
Definition: network.h:2046
TStr GetStrAttrDefaultN(const TStr &attribute) const
Gets Str node attribute val. If not a proper attr, return default.
Definition: network.h:2040
const TNEANet * Graph
Definition: network.h:1990
TAStrI& TNEANet::TAStrI::operator++ ( int  )
inline

Definition at line 2002 of file network.h.

2002 { HI++; return *this; }
TStrVecIter HI
Definition: network.h:1987
bool TNEANet::TAStrI::operator< ( const TAStrI I) const
inline

Definition at line 1996 of file network.h.

1996 { return HI < I.HI; }
TStrVecIter HI
Definition: network.h:1987
TAStrI& TNEANet::TAStrI::operator= ( const TAStrI I)
inline

Definition at line 1995 of file network.h.

1995 { HI = I.HI; Graph=I.Graph; isNode = I.isNode; attr = I.attr; return *this; }
TStrVecIter HI
Definition: network.h:1987
const TNEANet * Graph
Definition: network.h:1990
bool TNEANet::TAStrI::operator== ( const TAStrI I) const
inline

Definition at line 1997 of file network.h.

1997 { return HI == I.HI; }
TStrVecIter HI
Definition: network.h:1987

Friends And Related Function Documentation

friend class TNEANet
friend

Definition at line 2003 of file network.h.

Member Data Documentation

TStr TNEANet::TAStrI::attr
private

Definition at line 1989 of file network.h.

const TNEANet* TNEANet::TAStrI::Graph
private

Definition at line 1990 of file network.h.

TStrVecIter TNEANet::TAStrI::HI
private

Definition at line 1987 of file network.h.

bool TNEANet::TAStrI::isNode
private

Definition at line 1988 of file network.h.


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