SNAP Library 4.0, Developer Reference  2017-07-27 13:18:06
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 1959 of file network.h.

Member Typedef Documentation

Definition at line 1961 of file network.h.

Constructor & Destructor Documentation

TNEANet::TAStrI::TAStrI ( )
inline

Definition at line 1967 of file network.h.

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

Definition at line 1968 of file network.h.

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

Definition at line 1969 of file network.h.

References isNode.

1969 : HI(I.HI), attr(I.attr), Graph(I.Graph) { isNode = I.isNode; }
TStrVecIter HI
Definition: network.h:1962
const TNEANet * Graph
Definition: network.h:1965

Member Function Documentation

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

Returns an attribute of the node.

Definition at line 1974 of file network.h.

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

Returns true if the attribute has been deleted.

Definition at line 1976 of file network.h.

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

Definition at line 1977 of file network.h.

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

Definition at line 1971 of file network.h.

References HI.

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

Definition at line 1970 of file network.h.

References attr, Graph, HI, and isNode.

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

Definition at line 1972 of file network.h.

References HI.

1972 { return HI == I.HI; }
TStrVecIter HI
Definition: network.h:1962

Friends And Related Function Documentation

friend class TNEANet
friend

Definition at line 1978 of file network.h.

Member Data Documentation

TStr TNEANet::TAStrI::attr
private

Definition at line 1964 of file network.h.

Referenced by operator=().

const TNEANet* TNEANet::TAStrI::Graph
private

Definition at line 1965 of file network.h.

Referenced by operator=().

TStrVecIter TNEANet::TAStrI::HI
private

Definition at line 1962 of file network.h.

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

bool TNEANet::TAStrI::isNode
private

Definition at line 1963 of file network.h.

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


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