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::TAFltVI Class Reference

#include <network.h>

Public Member Functions

 TAFltVI ()
 
 TAFltVI (const TFltVVecIter &HIter, const TFltHVecIter &HHIter, TStr attribute, bool isEdgeIter, const TNEANet *GraphPt, bool is_dense)
 
 TAFltVI (const TAFltVI &I)
 
TAFltVIoperator= (const TAFltVI &I)
 
bool operator< (const TAFltVI &I) const
 
bool operator== (const TAFltVI &I) const
 
TFltV GetDat () const
 Returns an attribute of the node. More...
 
TAFltVIoperator++ (int)
 

Private Types

typedef TVec< TFltV >::TIter TFltVVecIter
 
typedef THash< TInt, TFltV >::TIter TFltHVecIter
 

Private Attributes

TFltVVecIter HI
 
bool IsDense
 
TFltHVecIter HHI
 
bool isNode
 
TStr attr
 
const TNEANetGraph
 

Friends

class TNEANet
 

Detailed Description

Definition at line 1958 of file network.h.

Member Typedef Documentation

typedef THash<TInt, TFltV>::TIter TNEANet::TAFltVI::TFltHVecIter
private

Definition at line 1963 of file network.h.

typedef TVec<TFltV>::TIter TNEANet::TAFltVI::TFltVVecIter
private

Definition at line 1960 of file network.h.

Constructor & Destructor Documentation

TNEANet::TAFltVI::TAFltVI ( )
inline

Definition at line 1969 of file network.h.

1969 : HI(), IsDense(), HHI(), attr(), Graph(NULL) { }
const TNEANet * Graph
Definition: network.h:1967
TFltVVecIter HI
Definition: network.h:1961
TFltHVecIter HHI
Definition: network.h:1964
TNEANet::TAFltVI::TAFltVI ( const TFltVVecIter HIter,
const TFltHVecIter HHIter,
TStr  attribute,
bool  isEdgeIter,
const TNEANet GraphPt,
bool  is_dense 
)
inline

Definition at line 1970 of file network.h.

1970  : HI(HIter), IsDense(is_dense), HHI(HHIter), attr(), Graph(GraphPt) {
1971  isNode = !isEdgeIter; attr = attribute;
1972  }
const TNEANet * Graph
Definition: network.h:1967
TFltVVecIter HI
Definition: network.h:1961
TFltHVecIter HHI
Definition: network.h:1964
TNEANet::TAFltVI::TAFltVI ( const TAFltVI I)
inline

Definition at line 1973 of file network.h.

1973 : HI(I.HI), IsDense(I.IsDense), HHI(I.HHI), attr(I.attr), Graph(I.Graph) { isNode = I.isNode; }
const TNEANet * Graph
Definition: network.h:1967
TFltVVecIter HI
Definition: network.h:1961
TFltHVecIter HHI
Definition: network.h:1964

Member Function Documentation

TFltV TNEANet::TAFltVI::GetDat ( ) const
inline

Returns an attribute of the node.

Definition at line 1978 of file network.h.

1978 { return IsDense? HI[0] : HHI.GetDat(); }
TFltVVecIter HI
Definition: network.h:1961
TFltHVecIter HHI
Definition: network.h:1964
TAFltVI& TNEANet::TAFltVI::operator++ ( int  )
inline

Definition at line 1979 of file network.h.

1979 { if (IsDense) {HI++;} else {HHI++;} return *this; }
TFltVVecIter HI
Definition: network.h:1961
TFltHVecIter HHI
Definition: network.h:1964
bool TNEANet::TAFltVI::operator< ( const TAFltVI I) const
inline

Definition at line 1975 of file network.h.

1975 { return HI == I.HI ? HHI < I.HHI : HI < I.HI; }
TFltVVecIter HI
Definition: network.h:1961
TFltHVecIter HHI
Definition: network.h:1964
TAFltVI& TNEANet::TAFltVI::operator= ( const TAFltVI I)
inline

Definition at line 1974 of file network.h.

1974 { HI = I.HI; HHI = I.HHI, Graph=I.Graph; isNode = I.isNode; attr = I.attr; return *this; }
const TNEANet * Graph
Definition: network.h:1967
TFltVVecIter HI
Definition: network.h:1961
TFltHVecIter HHI
Definition: network.h:1964
bool TNEANet::TAFltVI::operator== ( const TAFltVI I) const
inline

Definition at line 1976 of file network.h.

1976 { return HI == I.HI && HHI == I.HHI; }
TFltVVecIter HI
Definition: network.h:1961
TFltHVecIter HHI
Definition: network.h:1964

Friends And Related Function Documentation

friend class TNEANet
friend

Definition at line 1980 of file network.h.

Member Data Documentation

TStr TNEANet::TAFltVI::attr
private

Definition at line 1966 of file network.h.

const TNEANet* TNEANet::TAFltVI::Graph
private

Definition at line 1967 of file network.h.

TFltHVecIter TNEANet::TAFltVI::HHI
private

Definition at line 1964 of file network.h.

TFltVVecIter TNEANet::TAFltVI::HI
private

Definition at line 1961 of file network.h.

bool TNEANet::TAFltVI::IsDense
private

Definition at line 1962 of file network.h.

bool TNEANet::TAFltVI::isNode
private

Definition at line 1965 of file network.h.


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