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

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

#include <networkmp.h>

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.

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.

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.

194 { return HI[0]; }
TIntVecIter HI
Definition: networkmp.h:182
bool TNEANetMP::TAIntI::IsDeleted ( ) const
inline

Returns true if the attribute has been deleted.

Definition at line 196 of file networkmp.h.

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
TAIntI& TNEANetMP::TAIntI::operator++ ( int  )
inline

Definition at line 197 of file networkmp.h.

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.

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.

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.

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.

const TNEANetMP* TNEANetMP::TAIntI::Graph
private

Definition at line 185 of file networkmp.h.

TIntVecIter TNEANetMP::TAIntI::HI
private

Definition at line 182 of file networkmp.h.

bool TNEANetMP::TAIntI::isNode
private

Definition at line 183 of file networkmp.h.


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