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

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

#include <mmnet.h>

Public Member Functions

 TAStrI ()
 
 TAStrI (const TStrVecIter &HIter, TStr attribute, const TCrossNet *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
 
TStr attr
 
const TCrossNetGraph
 

Friends

class TCrossNet
 

Detailed Description

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

Definition at line 203 of file mmnet.h.

Member Typedef Documentation

Definition at line 205 of file mmnet.h.

Constructor & Destructor Documentation

TCrossNet::TAStrI::TAStrI ( )
inline

Definition at line 210 of file mmnet.h.

210 : HI(), attr(), Graph(NULL) { }
TStrVecIter HI
Definition: mmnet.h:206
const TCrossNet * Graph
Definition: mmnet.h:208
TCrossNet::TAStrI::TAStrI ( const TStrVecIter HIter,
TStr  attribute,
const TCrossNet GraphPt 
)
inline

Definition at line 211 of file mmnet.h.

211 : HI(HIter), attr(), Graph(GraphPt) { attr = attribute; }
TStrVecIter HI
Definition: mmnet.h:206
const TCrossNet * Graph
Definition: mmnet.h:208
TCrossNet::TAStrI::TAStrI ( const TAStrI I)
inline

Definition at line 212 of file mmnet.h.

212 : HI(I.HI), attr(I.attr), Graph(I.Graph) { }
TStrVecIter HI
Definition: mmnet.h:206
const TCrossNet * Graph
Definition: mmnet.h:208

Member Function Documentation

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

Returns an attribute of the node.

Definition at line 217 of file mmnet.h.

217 { return HI[0]; }
TStrVecIter HI
Definition: mmnet.h:206
bool TCrossNet::TAStrI::IsDeleted ( ) const
inline

Returns true if the attribute has been deleted.

Definition at line 219 of file mmnet.h.

219 { return GetDat() == Graph->GetStrAttrDefaultE(attr); };
const TCrossNet * Graph
Definition: mmnet.h:208
TStr GetDat() const
Returns an attribute of the node.
Definition: mmnet.h:217
TStr GetStrAttrDefaultE(const TStr &attribute) const
Gets Str edge attribute val. If not a proper attr, return default.
Definition: mmnet.h:298
TAStrI& TCrossNet::TAStrI::operator++ ( int  )
inline

Definition at line 220 of file mmnet.h.

220 { HI++; return *this; }
TStrVecIter HI
Definition: mmnet.h:206
bool TCrossNet::TAStrI::operator< ( const TAStrI I) const
inline

Definition at line 214 of file mmnet.h.

214 { return HI < I.HI; }
TStrVecIter HI
Definition: mmnet.h:206
TAStrI& TCrossNet::TAStrI::operator= ( const TAStrI I)
inline

Definition at line 213 of file mmnet.h.

213 { HI = I.HI; Graph=I.Graph; attr = I.attr; return *this; }
TStrVecIter HI
Definition: mmnet.h:206
const TCrossNet * Graph
Definition: mmnet.h:208
bool TCrossNet::TAStrI::operator== ( const TAStrI I) const
inline

Definition at line 215 of file mmnet.h.

215 { return HI == I.HI; }
TStrVecIter HI
Definition: mmnet.h:206

Friends And Related Function Documentation

friend class TCrossNet
friend

Definition at line 221 of file mmnet.h.

Member Data Documentation

TStr TCrossNet::TAStrI::attr
private

Definition at line 207 of file mmnet.h.

const TCrossNet* TCrossNet::TAStrI::Graph
private

Definition at line 208 of file mmnet.h.

TStrVecIter TCrossNet::TAStrI::HI
private

Definition at line 206 of file mmnet.h.


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