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

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

#include <networkmp.h>

Collaboration diagram for TNEANetMP::TAIntI:

Public Member Functions

 TAIntI ()
 
 TAIntI (const TIntVecIter &HIter, TStr attribute, bool isEdgeIter, const TNEANetMP *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
 
bool isNode
 
TStr attr
 
const TNEANetMPGraph
 

Friends

class TNEANetMP
 

Detailed Description

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

Definition at line 179 of file networkmp.h.

Member Typedef Documentation

Definition at line 181 of file networkmp.h.

Constructor & Destructor Documentation

TNEANetMP::TAIntI::TAIntI ( )
inline

Definition at line 187 of file networkmp.h.

187 : HI(), attr(), Graph(NULL) { }
const TNEANetMP * Graph
Definition: networkmp.h:185
TIntVecIter HI
Definition: networkmp.h:182
TNEANetMP::TAIntI::TAIntI ( const TIntVecIter HIter,
TStr  attribute,
bool  isEdgeIter,
const TNEANetMP GraphPt 
)
inline

Definition at line 188 of file networkmp.h.

References attr, and isNode.

188 : HI(HIter), attr(), Graph(GraphPt) { isNode = !isEdgeIter; attr = attribute; }
const TNEANetMP * Graph
Definition: networkmp.h:185
TIntVecIter HI
Definition: networkmp.h:182
TNEANetMP::TAIntI::TAIntI ( const TAIntI I)
inline

Definition at line 189 of file networkmp.h.

References isNode.

189 : HI(I.HI), attr(I.attr), Graph(I.Graph) { isNode = I.isNode; }
const TNEANetMP * Graph
Definition: networkmp.h:185
TIntVecIter HI
Definition: networkmp.h:182

Member Function Documentation

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

Returns an attribute of the node.

Definition at line 194 of file networkmp.h.

References HI.

Referenced by IsDeleted().

194 { return HI[0]; }
TIntVecIter HI
Definition: networkmp.h:182

Here is the caller graph for this function:

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

Returns true if the attribute has been deleted.

Definition at line 196 of file networkmp.h.

References attr, GetDat(), TNEANetMP::GetIntAttrDefaultE(), TNEANetMP::GetIntAttrDefaultN(), Graph, and isNode.

TInt GetIntAttrDefaultE(const TStr &attribute) const
Get Int edge attribute val. If not a proper attr, return default.
Definition: networkmp.h:260
TInt GetDat() const
Returns an attribute of the node.
Definition: networkmp.h:194
TInt GetIntAttrDefaultN(const TStr &attribute) const
Get Int node attribute val. If not a proper attr, return default.
Definition: networkmp.h:254
const TNEANetMP * Graph
Definition: networkmp.h:185

Here is the call graph for this function:

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

Definition at line 197 of file networkmp.h.

References HI.

197 { HI++; return *this; }
TIntVecIter HI
Definition: networkmp.h:182
bool TNEANetMP::TAIntI::operator< ( const TAIntI I) const
inline

Definition at line 191 of file networkmp.h.

References HI.

191 { return HI < I.HI; }
TIntVecIter HI
Definition: networkmp.h:182
TAIntI& TNEANetMP::TAIntI::operator= ( const TAIntI I)
inline

Definition at line 190 of file networkmp.h.

References attr, Graph, HI, and isNode.

190 { HI = I.HI; Graph=I.Graph; isNode = I.isNode; attr = I.attr; return *this; }
const TNEANetMP * Graph
Definition: networkmp.h:185
TIntVecIter HI
Definition: networkmp.h:182
bool TNEANetMP::TAIntI::operator== ( const TAIntI I) const
inline

Definition at line 192 of file networkmp.h.

References HI.

192 { return HI == I.HI; }
TIntVecIter HI
Definition: networkmp.h:182

Friends And Related Function Documentation

friend class TNEANetMP
friend

Definition at line 198 of file networkmp.h.

Member Data Documentation

TStr TNEANetMP::TAIntI::attr
private

Definition at line 184 of file networkmp.h.

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

const TNEANetMP* TNEANetMP::TAIntI::Graph
private

Definition at line 185 of file networkmp.h.

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

TIntVecIter TNEANetMP::TAIntI::HI
private

Definition at line 182 of file networkmp.h.

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

bool TNEANetMP::TAIntI::isNode
private

Definition at line 183 of file networkmp.h.

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


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