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
TNEANetMP::TAStrI Class Reference

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

#include <networkmp.h>

Public Member Functions

 TAStrI ()
 
 TAStrI (const TStrVecIter &HIter, TStr attribute, bool isEdgeIter, const TNEANetMP *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 TNEANetMPGraph
 

Friends

class TNEANetMP
 

Detailed Description

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

Definition at line 202 of file networkmp.h.

Member Typedef Documentation

Definition at line 204 of file networkmp.h.

Constructor & Destructor Documentation

TNEANetMP::TAStrI::TAStrI ( )
inline

Definition at line 210 of file networkmp.h.

210 : HI(), attr(), Graph(NULL) { }
TStrVecIter HI
Definition: networkmp.h:205
const TNEANetMP * Graph
Definition: networkmp.h:208
TNEANetMP::TAStrI::TAStrI ( const TStrVecIter HIter,
TStr  attribute,
bool  isEdgeIter,
const TNEANetMP GraphPt 
)
inline

Definition at line 211 of file networkmp.h.

211 : HI(HIter), attr(), Graph(GraphPt) { isNode = !isEdgeIter; attr = attribute; }
TStrVecIter HI
Definition: networkmp.h:205
const TNEANetMP * Graph
Definition: networkmp.h:208
TNEANetMP::TAStrI::TAStrI ( const TAStrI I)
inline

Definition at line 212 of file networkmp.h.

212 : HI(I.HI), attr(I.attr), Graph(I.Graph) { isNode = I.isNode; }
TStrVecIter HI
Definition: networkmp.h:205
const TNEANetMP * Graph
Definition: networkmp.h:208

Member Function Documentation

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

Returns an attribute of the node.

Definition at line 217 of file networkmp.h.

217 { return HI[0]; }
TStrVecIter HI
Definition: networkmp.h:205
bool TNEANetMP::TAStrI::IsDeleted ( ) const
inline

Returns true if the attribute has been deleted.

Definition at line 219 of file networkmp.h.

TStr GetDat() const
Returns an attribute of the node.
Definition: networkmp.h:217
TStr GetStrAttrDefaultN(const TStr &attribute) const
Get Str node attribute val. If not a proper attr, return default.
Definition: networkmp.h:256
TStr GetStrAttrDefaultE(const TStr &attribute) const
Get Str edge attribute val. If not a proper attr, return default.
Definition: networkmp.h:262
const TNEANetMP * Graph
Definition: networkmp.h:208
TAStrI& TNEANetMP::TAStrI::operator++ ( int  )
inline

Definition at line 220 of file networkmp.h.

220 { HI++; return *this; }
TStrVecIter HI
Definition: networkmp.h:205
bool TNEANetMP::TAStrI::operator< ( const TAStrI I) const
inline

Definition at line 214 of file networkmp.h.

214 { return HI < I.HI; }
TStrVecIter HI
Definition: networkmp.h:205
TAStrI& TNEANetMP::TAStrI::operator= ( const TAStrI I)
inline

Definition at line 213 of file networkmp.h.

213 { HI = I.HI; Graph=I.Graph; isNode = I.isNode; attr = I.attr; return *this; }
TStrVecIter HI
Definition: networkmp.h:205
const TNEANetMP * Graph
Definition: networkmp.h:208
bool TNEANetMP::TAStrI::operator== ( const TAStrI I) const
inline

Definition at line 215 of file networkmp.h.

215 { return HI == I.HI; }
TStrVecIter HI
Definition: networkmp.h:205

Friends And Related Function Documentation

friend class TNEANetMP
friend

Definition at line 221 of file networkmp.h.

Member Data Documentation

TStr TNEANetMP::TAStrI::attr
private

Definition at line 207 of file networkmp.h.

const TNEANetMP* TNEANetMP::TAStrI::Graph
private

Definition at line 208 of file networkmp.h.

TStrVecIter TNEANetMP::TAStrI::HI
private

Definition at line 205 of file networkmp.h.

bool TNEANetMP::TAStrI::isNode
private

Definition at line 206 of file networkmp.h.


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