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

#include <network.h>

Public Member Functions

 TAIntVI ()
 
 TAIntVI (const TIntVVecIter &HIter, const TIntHVecIter &HHIter, TStr attribute, bool isEdgeIter, const TNEANet *GraphPt, bool is_dense)
 
 TAIntVI (const TAIntVI &I)
 
TAIntVIoperator= (const TAIntVI &I)
 
bool operator< (const TAIntVI &I) const
 
bool operator== (const TAIntVI &I) const
 
TIntV GetDat () const
 Returns an attribute of the node. More...
 
TAIntVIoperator++ (int)
 

Private Types

typedef TVec< TIntV >::TIter TIntVVecIter
 
typedef THash< TInt, TIntV >::TIter TIntHVecIter
 

Private Attributes

TIntVVecIter HI
 
bool IsDense
 
TIntHVecIter HHI
 
bool isNode
 
TStr attr
 
const TNEANetGraph
 

Friends

class TNEANet
 

Detailed Description

Definition at line 1933 of file network.h.

Member Typedef Documentation

typedef THash<TInt, TIntV>::TIter TNEANet::TAIntVI::TIntHVecIter
private

Definition at line 1938 of file network.h.

typedef TVec<TIntV>::TIter TNEANet::TAIntVI::TIntVVecIter
private

Definition at line 1935 of file network.h.

Constructor & Destructor Documentation

TNEANet::TAIntVI::TAIntVI ( )
inline

Definition at line 1944 of file network.h.

1944 : HI(), IsDense(), HHI(), attr(), Graph(NULL) { }
const TNEANet * Graph
Definition: network.h:1942
TIntVVecIter HI
Definition: network.h:1936
TIntHVecIter HHI
Definition: network.h:1939
TNEANet::TAIntVI::TAIntVI ( const TIntVVecIter HIter,
const TIntHVecIter HHIter,
TStr  attribute,
bool  isEdgeIter,
const TNEANet GraphPt,
bool  is_dense 
)
inline

Definition at line 1945 of file network.h.

1945  : HI(HIter), IsDense(is_dense), HHI(HHIter), attr(), Graph(GraphPt) {
1946  isNode = !isEdgeIter; attr = attribute;
1947  }
const TNEANet * Graph
Definition: network.h:1942
TIntVVecIter HI
Definition: network.h:1936
TIntHVecIter HHI
Definition: network.h:1939
TNEANet::TAIntVI::TAIntVI ( const TAIntVI I)
inline

Definition at line 1948 of file network.h.

1948 : HI(I.HI), IsDense(I.IsDense), HHI(I.HHI), attr(I.attr), Graph(I.Graph) { isNode = I.isNode; }
const TNEANet * Graph
Definition: network.h:1942
TIntVVecIter HI
Definition: network.h:1936
TIntHVecIter HHI
Definition: network.h:1939

Member Function Documentation

TIntV TNEANet::TAIntVI::GetDat ( ) const
inline

Returns an attribute of the node.

Definition at line 1953 of file network.h.

1953 { return IsDense? HI[0] : HHI.GetDat(); }
TIntVVecIter HI
Definition: network.h:1936
TIntHVecIter HHI
Definition: network.h:1939
TAIntVI& TNEANet::TAIntVI::operator++ ( int  )
inline

Definition at line 1954 of file network.h.

1954 { if (IsDense) {HI++;} else {HHI++;} return *this; }
TIntVVecIter HI
Definition: network.h:1936
TIntHVecIter HHI
Definition: network.h:1939
bool TNEANet::TAIntVI::operator< ( const TAIntVI I) const
inline

Definition at line 1950 of file network.h.

1950 { return HI == I.HI ? HHI < I.HHI : HI < I.HI; }
TIntVVecIter HI
Definition: network.h:1936
TIntHVecIter HHI
Definition: network.h:1939
TAIntVI& TNEANet::TAIntVI::operator= ( const TAIntVI I)
inline

Definition at line 1949 of file network.h.

1949 { HI = I.HI; HHI = I.HHI, Graph=I.Graph; isNode = I.isNode; attr = I.attr; return *this; }
const TNEANet * Graph
Definition: network.h:1942
TIntVVecIter HI
Definition: network.h:1936
TIntHVecIter HHI
Definition: network.h:1939
bool TNEANet::TAIntVI::operator== ( const TAIntVI I) const
inline

Definition at line 1951 of file network.h.

1951 { return HI == I.HI && HHI == I.HHI; }
TIntVVecIter HI
Definition: network.h:1936
TIntHVecIter HHI
Definition: network.h:1939

Friends And Related Function Documentation

friend class TNEANet
friend

Definition at line 1955 of file network.h.

Member Data Documentation

TStr TNEANet::TAIntVI::attr
private

Definition at line 1941 of file network.h.

const TNEANet* TNEANet::TAIntVI::Graph
private

Definition at line 1942 of file network.h.

TIntHVecIter TNEANet::TAIntVI::HHI
private

Definition at line 1939 of file network.h.

TIntVVecIter TNEANet::TAIntVI::HI
private

Definition at line 1936 of file network.h.

bool TNEANet::TAIntVI::IsDense
private

Definition at line 1937 of file network.h.

bool TNEANet::TAIntVI::isNode
private

Definition at line 1940 of file network.h.


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