SNAP Library 3.0, Developer 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::TAStrI Class Reference

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

#include <network.h>

Collaboration diagram for TNEANet::TAStrI:

Public Member Functions

 TAStrI ()
 
 TAStrI (const TStrVecIter &HIter, TStr attribute, bool isEdgeIter, const TNEANet *GraphPt)
 
 TAStrI (const TAStrI &I)
 
TAStrIoperator= (const TAStrI &I)
 
bool operator< (const TAStrI &I) const
 
bool operator== (const TAStrI &I) const
 
TStr GetDat () const
 Returns an attribute of the node. More...
 
bool IsDeleted () const
 Returns true if the attribute has been deleted. More...
 
TAStrIoperator++ (int)
 

Private Types

typedef TStrV::TIter TStrVecIter
 

Private Attributes

TStrVecIter HI
 
bool isNode
 
TStr attr
 
const TNEANetGraph
 

Friends

class TNEANet
 

Detailed Description

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

Definition at line 1794 of file network.h.

Member Typedef Documentation

Definition at line 1796 of file network.h.

Constructor & Destructor Documentation

TNEANet::TAStrI::TAStrI ( )
inline

Definition at line 1802 of file network.h.

1802 : HI(), attr(), Graph(NULL) { }
TStrVecIter HI
Definition: network.h:1797
const TNEANet * Graph
Definition: network.h:1800
TNEANet::TAStrI::TAStrI ( const TStrVecIter HIter,
TStr  attribute,
bool  isEdgeIter,
const TNEANet GraphPt 
)
inline

Definition at line 1803 of file network.h.

1803 : HI(HIter), attr(), Graph(GraphPt) { isNode = !isEdgeIter; attr = attribute; }
TStrVecIter HI
Definition: network.h:1797
const TNEANet * Graph
Definition: network.h:1800
TNEANet::TAStrI::TAStrI ( const TAStrI I)
inline

Definition at line 1804 of file network.h.

References isNode.

1804 : HI(I.HI), attr(I.attr), Graph(I.Graph) { isNode = I.isNode; }
TStrVecIter HI
Definition: network.h:1797
const TNEANet * Graph
Definition: network.h:1800

Member Function Documentation

TStr TNEANet::TAStrI::GetDat ( ) const
inline

Returns an attribute of the node.

Definition at line 1809 of file network.h.

1809 { return HI[0]; }
TStrVecIter HI
Definition: network.h:1797
bool TNEANet::TAStrI::IsDeleted ( ) const
inline

Returns true if the attribute has been deleted.

Definition at line 1811 of file network.h.

TStr GetDat() const
Returns an attribute of the node.
Definition: network.h:1809
TStr GetStrAttrDefaultE(const TStr &attribute) const
Gets Str edge attribute val. If not a proper attr, return default.
Definition: network.h:1855
TStr GetStrAttrDefaultN(const TStr &attribute) const
Gets Str node attribute val. If not a proper attr, return default.
Definition: network.h:1849
const TNEANet * Graph
Definition: network.h:1800
TAStrI& TNEANet::TAStrI::operator++ ( int  )
inline

Definition at line 1812 of file network.h.

1812 { HI++; return *this; }
TStrVecIter HI
Definition: network.h:1797
bool TNEANet::TAStrI::operator< ( const TAStrI I) const
inline

Definition at line 1806 of file network.h.

References HI.

1806 { return HI < I.HI; }
TStrVecIter HI
Definition: network.h:1797
TAStrI& TNEANet::TAStrI::operator= ( const TAStrI I)
inline

Definition at line 1805 of file network.h.

References attr, Graph, HI, and isNode.

1805 { HI = I.HI; Graph=I.Graph; isNode = I.isNode; attr = I.attr; return *this; }
TStrVecIter HI
Definition: network.h:1797
const TNEANet * Graph
Definition: network.h:1800
bool TNEANet::TAStrI::operator== ( const TAStrI I) const
inline

Definition at line 1807 of file network.h.

References HI.

1807 { return HI == I.HI; }
TStrVecIter HI
Definition: network.h:1797

Friends And Related Function Documentation

friend class TNEANet
friend

Definition at line 1813 of file network.h.

Member Data Documentation

TStr TNEANet::TAStrI::attr
private

Definition at line 1799 of file network.h.

Referenced by operator=().

const TNEANet* TNEANet::TAStrI::Graph
private

Definition at line 1800 of file network.h.

Referenced by operator=().

TStrVecIter TNEANet::TAStrI::HI
private

Definition at line 1797 of file network.h.

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

bool TNEANet::TAStrI::isNode
private

Definition at line 1798 of file network.h.

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


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