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
TMMNet::TCrossNetI Class Reference

TCrossNet iterator. Only forward iteration (operator++) is supported. More...

#include <mmnet.h>

Public Member Functions

 TCrossNetI ()
 
 TCrossNetI (const THashIter &CrossNetHIter, const TMMNet *GraphPt)
 
 TCrossNetI (const TCrossNetI &CrossNetI)
 
TCrossNetIoperator= (const TCrossNetI &CrossNetI)
 
TCrossNetIoperator++ (int)
 Increments iterator. More...
 
bool operator< (const TCrossNetI &CrossNetI) const
 
bool operator== (const TCrossNetI &CrossNetI) const
 
int GetCrossId ()
 Gets the crossnet id. More...
 
TStr GetCrossName ()
 Gets the name of the crossnet. More...
 
TCrossNetGetCrossNet ()
 Gets a reference to the crossnet. More...
 

Protected Types

typedef THash< TInt, TCrossNet >::TIter THashIter
 

Protected Attributes

THashIter CrossNetHI
 
const TMMNetGraph
 

Friends

class TMMNet
 

Detailed Description

TCrossNet iterator. Only forward iteration (operator++) is supported.

Definition at line 532 of file mmnet.h.

Member Typedef Documentation

typedef THash<TInt, TCrossNet>::TIter TMMNet::TCrossNetI::THashIter
protected

Definition at line 534 of file mmnet.h.

Constructor & Destructor Documentation

TMMNet::TCrossNetI::TCrossNetI ( )
inline

Definition at line 538 of file mmnet.h.

538 : CrossNetHI(), Graph(NULL) { }
THashIter CrossNetHI
Definition: mmnet.h:535
const TMMNet * Graph
Definition: mmnet.h:536
TMMNet::TCrossNetI::TCrossNetI ( const THashIter CrossNetHIter,
const TMMNet GraphPt 
)
inline

Definition at line 539 of file mmnet.h.

539 : CrossNetHI(CrossNetHIter), Graph(GraphPt) { }
THashIter CrossNetHI
Definition: mmnet.h:535
const TMMNet * Graph
Definition: mmnet.h:536
TMMNet::TCrossNetI::TCrossNetI ( const TCrossNetI CrossNetI)
inline

Definition at line 540 of file mmnet.h.

540 : CrossNetHI(CrossNetI.CrossNetHI), Graph(CrossNetI.Graph) { }
THashIter CrossNetHI
Definition: mmnet.h:535
const TMMNet * Graph
Definition: mmnet.h:536

Member Function Documentation

int TMMNet::TCrossNetI::GetCrossId ( )
inline

Gets the crossnet id.

Definition at line 547 of file mmnet.h.

547 { return CrossNetHI.GetKey(); }
THashIter CrossNetHI
Definition: mmnet.h:535
TStr TMMNet::TCrossNetI::GetCrossName ( )
inline

Gets the name of the crossnet.

Definition at line 549 of file mmnet.h.

549 { return Graph->GetCrossName(CrossNetHI.GetKey()); }
THashIter CrossNetHI
Definition: mmnet.h:535
const TMMNet * Graph
Definition: mmnet.h:536
TStr GetCrossName(const TInt &CrossId) const
Gets the crossnet name from the crossnet id.
Definition: mmnet.h:640
TCrossNet& TMMNet::TCrossNetI::GetCrossNet ( )
inline

Gets a reference to the crossnet.

Definition at line 551 of file mmnet.h.

551 { return Graph->GetCrossNetById(GetCrossId()); }
const TMMNet * Graph
Definition: mmnet.h:536
int GetCrossId()
Gets the crossnet id.
Definition: mmnet.h:547
TCrossNet & GetCrossNetById(const TInt &CrossId) const
Definition: mmnet.cpp:762
TCrossNetI& TMMNet::TCrossNetI::operator++ ( int  )
inline

Increments iterator.

Definition at line 543 of file mmnet.h.

543 { CrossNetHI++; return *this; }
THashIter CrossNetHI
Definition: mmnet.h:535
bool TMMNet::TCrossNetI::operator< ( const TCrossNetI CrossNetI) const
inline

Definition at line 544 of file mmnet.h.

544 { return CrossNetHI < CrossNetI.CrossNetHI; }
THashIter CrossNetHI
Definition: mmnet.h:535
TCrossNetI& TMMNet::TCrossNetI::operator= ( const TCrossNetI CrossNetI)
inline

Definition at line 541 of file mmnet.h.

541 { CrossNetHI = CrossNetI.CrossNetHI; Graph=CrossNetI.Graph; return *this; }
THashIter CrossNetHI
Definition: mmnet.h:535
const TMMNet * Graph
Definition: mmnet.h:536
bool TMMNet::TCrossNetI::operator== ( const TCrossNetI CrossNetI) const
inline

Definition at line 545 of file mmnet.h.

545 { return CrossNetHI == CrossNetI.CrossNetHI; }
THashIter CrossNetHI
Definition: mmnet.h:535

Friends And Related Function Documentation

friend class TMMNet
friend

Definition at line 552 of file mmnet.h.

Member Data Documentation

THashIter TMMNet::TCrossNetI::CrossNetHI
protected

Definition at line 535 of file mmnet.h.

const TMMNet* TMMNet::TCrossNetI::Graph
protected

Definition at line 536 of file mmnet.h.


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