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

Member Typedef Documentation

Definition at line 183 of file mmnet.h.

Constructor & Destructor Documentation

TCrossNet::TAIntI::TAIntI ( )
inline

Definition at line 188 of file mmnet.h.

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

Definition at line 189 of file mmnet.h.

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

Definition at line 190 of file mmnet.h.

190 : HI(I.HI), attr(I.attr), Graph(I.Graph) { }
const TCrossNet * Graph
Definition: mmnet.h:186
TIntVecIter HI
Definition: mmnet.h:184

Member Function Documentation

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

Returns an attribute of the node.

Definition at line 195 of file mmnet.h.

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

Returns true if the attribute has been deleted.

Definition at line 197 of file mmnet.h.

197 { 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:296
const TCrossNet * Graph
Definition: mmnet.h:186
TInt GetDat() const
Returns an attribute of the node.
Definition: mmnet.h:195
TAIntI& TCrossNet::TAIntI::operator++ ( int  )
inline

Definition at line 198 of file mmnet.h.

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

Definition at line 192 of file mmnet.h.

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

Definition at line 191 of file mmnet.h.

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

Definition at line 193 of file mmnet.h.

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

Friends And Related Function Documentation

friend class TCrossNet
friend

Definition at line 199 of file mmnet.h.

Member Data Documentation

TStr TCrossNet::TAIntI::attr
private

Definition at line 185 of file mmnet.h.

const TCrossNet* TCrossNet::TAIntI::Graph
private

Definition at line 186 of file mmnet.h.

TIntVecIter TCrossNet::TAIntI::HI
private

Definition at line 184 of file mmnet.h.


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