SNAP Library 6.0, User Reference  2020-12-09 16:24:20
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
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 1911 of file network.h.

Member Typedef Documentation

Definition at line 1913 of file network.h.

Constructor & Destructor Documentation

TNEANet::TAIntI::TAIntI ( )
inline

Definition at line 1919 of file network.h.

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

Definition at line 1920 of file network.h.

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

Definition at line 1921 of file network.h.

1921 : HI(I.HI), attr(I.attr), Graph(I.Graph) { isNode = I.isNode; }
TIntVecIter HI
Definition: network.h:1914
const TNEANet * Graph
Definition: network.h:1917

Member Function Documentation

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

Returns an attribute of the node.

Definition at line 1926 of file network.h.

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

Returns true if the attribute has been deleted.

Definition at line 1928 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:2044
TInt GetDat() const
Returns an attribute of the node.
Definition: network.h:1926
TInt GetIntAttrDefaultN(const TStr &attribute) const
Gets Int node attribute val. If not a proper attr, return default.
Definition: network.h:2038
const TNEANet * Graph
Definition: network.h:1917
TAIntI& TNEANet::TAIntI::operator++ ( int  )
inline

Definition at line 1929 of file network.h.

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

Definition at line 1923 of file network.h.

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

Definition at line 1922 of file network.h.

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

Definition at line 1924 of file network.h.

1924 { return HI == I.HI; }
TIntVecIter HI
Definition: network.h:1914

Friends And Related Function Documentation

friend class TNEANet
friend

Definition at line 1930 of file network.h.

Member Data Documentation

TStr TNEANet::TAIntI::attr
private

Definition at line 1916 of file network.h.

const TNEANet* TNEANet::TAIntI::Graph
private

Definition at line 1917 of file network.h.

TIntVecIter TNEANet::TAIntI::HI
private

Definition at line 1914 of file network.h.

bool TNEANet::TAIntI::isNode
private

Definition at line 1915 of file network.h.


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