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

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

#include <mmnet.h>

Public Member Functions

 TAIntI ()
 
 TAIntI (const TIntVecIter &HIter, TStr attribute, const TCrossNet *GraphPt)
 
 TAIntI (const TAIntI &I)
 
TAIntIoperator= (const TAIntI &I)
 
bool operator< (const TAIntI &I) const
 
bool operator== (const TAIntI &I) const
 
TInt GetDat () const
 Returns an attribute of the node. More...
 
bool IsDeleted () const
 Returns true if the attribute has been deleted. More...
 
TAIntIoperator++ (int)
 

Private Types

typedef TIntV::TIter TIntVecIter
 

Private Attributes

TIntVecIter HI
 
TStr attr
 
const TCrossNetGraph
 

Friends

class TCrossNet
 

Detailed Description

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

Definition at line 190 of file mmnet.h.

Member Typedef Documentation

Definition at line 192 of file mmnet.h.

Constructor & Destructor Documentation

TCrossNet::TAIntI::TAIntI ( )
inline

Definition at line 197 of file mmnet.h.

197 : HI(), attr(), Graph(NULL) { }
const TCrossNet * Graph
Definition: mmnet.h:195
TIntVecIter HI
Definition: mmnet.h:193
TCrossNet::TAIntI::TAIntI ( const TIntVecIter HIter,
TStr  attribute,
const TCrossNet GraphPt 
)
inline

Definition at line 198 of file mmnet.h.

198 : HI(HIter), attr(), Graph(GraphPt) { attr = attribute; }
const TCrossNet * Graph
Definition: mmnet.h:195
TIntVecIter HI
Definition: mmnet.h:193
TCrossNet::TAIntI::TAIntI ( const TAIntI I)
inline

Definition at line 199 of file mmnet.h.

199 : HI(I.HI), attr(I.attr), Graph(I.Graph) { }
const TCrossNet * Graph
Definition: mmnet.h:195
TIntVecIter HI
Definition: mmnet.h:193

Member Function Documentation

TInt TCrossNet::TAIntI::GetDat ( ) const
inline

Returns an attribute of the node.

Definition at line 204 of file mmnet.h.

204 { return HI[0]; }
TIntVecIter HI
Definition: mmnet.h:193
bool TCrossNet::TAIntI::IsDeleted ( ) const
inline

Returns true if the attribute has been deleted.

Definition at line 206 of file mmnet.h.

206 { return GetDat() == Graph->GetIntAttrDefaultE(attr); };
TInt GetIntAttrDefaultE(const TStr &attribute) const
Gets Int edge attribute val. If not a proper attr, return default.
Definition: mmnet.h:314
const TCrossNet * Graph
Definition: mmnet.h:195
TInt GetDat() const
Returns an attribute of the node.
Definition: mmnet.h:204
TAIntI& TCrossNet::TAIntI::operator++ ( int  )
inline

Definition at line 207 of file mmnet.h.

207 { HI++; return *this; }
TIntVecIter HI
Definition: mmnet.h:193
bool TCrossNet::TAIntI::operator< ( const TAIntI I) const
inline

Definition at line 201 of file mmnet.h.

201 { return HI < I.HI; }
TIntVecIter HI
Definition: mmnet.h:193
TAIntI& TCrossNet::TAIntI::operator= ( const TAIntI I)
inline

Definition at line 200 of file mmnet.h.

200 { HI = I.HI; Graph=I.Graph; attr = I.attr; return *this; }
const TCrossNet * Graph
Definition: mmnet.h:195
TIntVecIter HI
Definition: mmnet.h:193
bool TCrossNet::TAIntI::operator== ( const TAIntI I) const
inline

Definition at line 202 of file mmnet.h.

202 { return HI == I.HI; }
TIntVecIter HI
Definition: mmnet.h:193

Friends And Related Function Documentation

friend class TCrossNet
friend

Definition at line 208 of file mmnet.h.

Member Data Documentation

TStr TCrossNet::TAIntI::attr
private

Definition at line 194 of file mmnet.h.

const TCrossNet* TCrossNet::TAIntI::Graph
private

Definition at line 195 of file mmnet.h.

TIntVecIter TCrossNet::TAIntI::HI
private

Definition at line 193 of file mmnet.h.


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