SNAP Library 2.3, Developer Reference  2014-06-16 11:58:46
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>

Collaboration diagram for TNEANet::TAIntI:

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 1739 of file network.h.

Member Typedef Documentation

Definition at line 1741 of file network.h.

Constructor & Destructor Documentation

TNEANet::TAIntI::TAIntI ( )
inline

Definition at line 1747 of file network.h.

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

Definition at line 1748 of file network.h.

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

Definition at line 1749 of file network.h.

References isNode.

1749 : HI(I.HI), attr(I.attr), Graph(I.Graph) { isNode = I.isNode; }
TIntVecIter HI
Definition: network.h:1742
const TNEANet * Graph
Definition: network.h:1745

Member Function Documentation

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

Returns an attribute of the node.

Definition at line 1754 of file network.h.

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

Returns true if the attribute has been deleted.

Definition at line 1756 of file network.h.

TInt GetIntAttrDefaultE(const TStr &attribute) const
Get Int edge attribute val. If not a proper attr, return default.
Definition: network.h:1820
TInt GetDat() const
Returns an attribute of the node.
Definition: network.h:1754
TInt GetIntAttrDefaultN(const TStr &attribute) const
Get Int node attribute val. If not a proper attr, return default.
Definition: network.h:1814
const TNEANet * Graph
Definition: network.h:1745
TAIntI& TNEANet::TAIntI::operator++ ( int  )
inline

Definition at line 1757 of file network.h.

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

Definition at line 1751 of file network.h.

References HI.

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

Definition at line 1750 of file network.h.

References attr, Graph, HI, and isNode.

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

Definition at line 1752 of file network.h.

References HI.

1752 { return HI == I.HI; }
TIntVecIter HI
Definition: network.h:1742

Friends And Related Function Documentation

friend class TNEANet
friend

Definition at line 1758 of file network.h.

Member Data Documentation

TStr TNEANet::TAIntI::attr
private

Definition at line 1744 of file network.h.

Referenced by operator=().

const TNEANet* TNEANet::TAIntI::Graph
private

Definition at line 1745 of file network.h.

Referenced by operator=().

TIntVecIter TNEANet::TAIntI::HI
private

Definition at line 1742 of file network.h.

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

bool TNEANet::TAIntI::isNode
private

Definition at line 1743 of file network.h.

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


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