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

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

#include <network.h>

Public Member Functions

 TAIntI ()
 
 TAIntI (const TIntVecIter &HIter, TStr attribute, bool isEdgeIter, const TNEANet *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 TNEANetGraph
 

Friends

class TNEANet
 

Detailed Description

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

Definition at line 1751 of file network.h.

Member Typedef Documentation

Definition at line 1753 of file network.h.

Constructor & Destructor Documentation

TNEANet::TAIntI::TAIntI ( )
inline

Definition at line 1759 of file network.h.

1759 : HI(), attr(), Graph(NULL) { }
TIntVecIter HI
Definition: network.h:1754
const TNEANet * Graph
Definition: network.h:1757
TNEANet::TAIntI::TAIntI ( const TIntVecIter HIter,
TStr  attribute,
bool  isEdgeIter,
const TNEANet GraphPt 
)
inline

Definition at line 1760 of file network.h.

1760 : HI(HIter), attr(), Graph(GraphPt) { isNode = !isEdgeIter; attr = attribute; }
TIntVecIter HI
Definition: network.h:1754
const TNEANet * Graph
Definition: network.h:1757
TNEANet::TAIntI::TAIntI ( const TAIntI I)
inline

Definition at line 1761 of file network.h.

1761 : HI(I.HI), attr(I.attr), Graph(I.Graph) { isNode = I.isNode; }
TIntVecIter HI
Definition: network.h:1754
const TNEANet * Graph
Definition: network.h:1757

Member Function Documentation

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

Returns an attribute of the node.

Definition at line 1766 of file network.h.

1766 { return HI[0]; }
TIntVecIter HI
Definition: network.h:1754
bool TNEANet::TAIntI::IsDeleted ( ) const
inline

Returns true if the attribute has been deleted.

Definition at line 1768 of file network.h.

TInt GetIntAttrDefaultE(const TStr &attribute) const
Gets Int edge attribute val. If not a proper attr, return default.
Definition: network.h:1853
TInt GetDat() const
Returns an attribute of the node.
Definition: network.h:1766
TInt GetIntAttrDefaultN(const TStr &attribute) const
Gets Int node attribute val. If not a proper attr, return default.
Definition: network.h:1847
const TNEANet * Graph
Definition: network.h:1757
TAIntI& TNEANet::TAIntI::operator++ ( int  )
inline

Definition at line 1769 of file network.h.

1769 { HI++; return *this; }
TIntVecIter HI
Definition: network.h:1754
bool TNEANet::TAIntI::operator< ( const TAIntI I) const
inline

Definition at line 1763 of file network.h.

1763 { return HI < I.HI; }
TIntVecIter HI
Definition: network.h:1754
TAIntI& TNEANet::TAIntI::operator= ( const TAIntI I)
inline

Definition at line 1762 of file network.h.

1762 { HI = I.HI; Graph=I.Graph; isNode = I.isNode; attr = I.attr; return *this; }
TIntVecIter HI
Definition: network.h:1754
const TNEANet * Graph
Definition: network.h:1757
bool TNEANet::TAIntI::operator== ( const TAIntI I) const
inline

Definition at line 1764 of file network.h.

1764 { return HI == I.HI; }
TIntVecIter HI
Definition: network.h:1754

Friends And Related Function Documentation

friend class TNEANet
friend

Definition at line 1770 of file network.h.

Member Data Documentation

TStr TNEANet::TAIntI::attr
private

Definition at line 1756 of file network.h.

const TNEANet* TNEANet::TAIntI::Graph
private

Definition at line 1757 of file network.h.

TIntVecIter TNEANet::TAIntI::HI
private

Definition at line 1754 of file network.h.

bool TNEANet::TAIntI::isNode
private

Definition at line 1755 of file network.h.


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