SNAP Library 2.4, User Reference  2015-05-11 19:40:56
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>

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

Member Typedef Documentation

Definition at line 1764 of file network.h.

Constructor & Destructor Documentation

TNEANet::TAStrI::TAStrI ( )
inline

Definition at line 1770 of file network.h.

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

Definition at line 1771 of file network.h.

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

Definition at line 1772 of file network.h.

1772 : HI(I.HI), attr(I.attr), Graph(I.Graph) { isNode = I.isNode; }
TStrVecIter HI
Definition: network.h:1765
const TNEANet * Graph
Definition: network.h:1768

Member Function Documentation

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

Returns an attribute of the node.

Definition at line 1777 of file network.h.

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

Returns true if the attribute has been deleted.

Definition at line 1779 of file network.h.

TStr GetDat() const
Returns an attribute of the node.
Definition: network.h:1777
TStr GetStrAttrDefaultE(const TStr &attribute) const
Get Str edge attribute val. If not a proper attr, return default.
Definition: network.h:1822
TStr GetStrAttrDefaultN(const TStr &attribute) const
Get Str node attribute val. If not a proper attr, return default.
Definition: network.h:1816
const TNEANet * Graph
Definition: network.h:1768
TAStrI& TNEANet::TAStrI::operator++ ( int  )
inline

Definition at line 1780 of file network.h.

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

Definition at line 1774 of file network.h.

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

Definition at line 1773 of file network.h.

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

Definition at line 1775 of file network.h.

1775 { return HI == I.HI; }
TStrVecIter HI
Definition: network.h:1765

Friends And Related Function Documentation

friend class TNEANet
friend

Definition at line 1781 of file network.h.

Member Data Documentation

TStr TNEANet::TAStrI::attr
private

Definition at line 1767 of file network.h.

const TNEANet* TNEANet::TAStrI::Graph
private

Definition at line 1768 of file network.h.

TStrVecIter TNEANet::TAStrI::HI
private

Definition at line 1765 of file network.h.

bool TNEANet::TAStrI::isNode
private

Definition at line 1766 of file network.h.


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