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

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

#include <mmnet.h>

Collaboration diagram for TCrossNet::TAIntI:

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.

References attr.

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.

References HI.

Referenced by IsDeleted().

204 { return HI[0]; }
TIntVecIter HI
Definition: mmnet.h:193

Here is the caller graph for this function:

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

Returns true if the attribute has been deleted.

Definition at line 206 of file mmnet.h.

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

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

Here is the call graph for this function:

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

Definition at line 207 of file mmnet.h.

References HI.

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.

References HI.

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.

References attr, Graph, and HI.

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.

References HI.

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.

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

const TCrossNet* TCrossNet::TAIntI::Graph
private

Definition at line 195 of file mmnet.h.

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

TIntVecIter TCrossNet::TAIntI::HI
private

Definition at line 193 of file mmnet.h.

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


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