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

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

#include <mmnet.h>

Collaboration diagram for TCrossNet::TAStrI:

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 212 of file mmnet.h.

Member Typedef Documentation

Definition at line 214 of file mmnet.h.

Constructor & Destructor Documentation

TCrossNet::TAStrI::TAStrI ( )
inline

Definition at line 219 of file mmnet.h.

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

Definition at line 220 of file mmnet.h.

References attr.

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

Definition at line 221 of file mmnet.h.

221 : HI(I.HI), attr(I.attr), Graph(I.Graph) { }
TStrVecIter HI
Definition: mmnet.h:215
const TCrossNet * Graph
Definition: mmnet.h:217

Member Function Documentation

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

Returns an attribute of the node.

Definition at line 226 of file mmnet.h.

References HI.

Referenced by IsDeleted().

226 { return HI[0]; }
TStrVecIter HI
Definition: mmnet.h:215

Here is the caller graph for this function:

bool TCrossNet::TAStrI::IsDeleted ( ) const
inline

Returns true if the attribute has been deleted.

Definition at line 228 of file mmnet.h.

References attr, GetDat(), TCrossNet::GetStrAttrDefaultE(), and Graph.

228 { return GetDat() == Graph->GetStrAttrDefaultE(attr); };
const TCrossNet * Graph
Definition: mmnet.h:217
TStr GetDat() const
Returns an attribute of the node.
Definition: mmnet.h:226
TStr GetStrAttrDefaultE(const TStr &attribute) const
Gets Str edge attribute val. If not a proper attr, return default.
Definition: mmnet.h:316

Here is the call graph for this function:

TAStrI& TCrossNet::TAStrI::operator++ ( int  )
inline

Definition at line 229 of file mmnet.h.

References HI.

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

Definition at line 223 of file mmnet.h.

References HI.

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

Definition at line 222 of file mmnet.h.

References attr, Graph, and HI.

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

Definition at line 224 of file mmnet.h.

References HI.

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

Friends And Related Function Documentation

friend class TCrossNet
friend

Definition at line 230 of file mmnet.h.

Member Data Documentation

TStr TCrossNet::TAStrI::attr
private

Definition at line 216 of file mmnet.h.

Referenced by IsDeleted(), operator=(), and TAStrI().

const TCrossNet* TCrossNet::TAStrI::Graph
private

Definition at line 217 of file mmnet.h.

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

TStrVecIter TCrossNet::TAStrI::HI
private

Definition at line 215 of file mmnet.h.

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


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