SNAP Library 3.0, User Reference  2016-07-20 17:56:49
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
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 496 of file mmnet.h.

Member Typedef Documentation

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

Definition at line 498 of file mmnet.h.

Constructor & Destructor Documentation

TMMNet::TCrossNetI::TCrossNetI ( )
inline

Definition at line 502 of file mmnet.h.

502 : CrossNetHI(), Graph(NULL) { }
THashIter CrossNetHI
Definition: mmnet.h:499
const TMMNet * Graph
Definition: mmnet.h:500
TMMNet::TCrossNetI::TCrossNetI ( const THashIter CrossNetHIter,
const TMMNet GraphPt 
)
inline

Definition at line 503 of file mmnet.h.

503 : CrossNetHI(CrossNetHIter), Graph(GraphPt) { }
THashIter CrossNetHI
Definition: mmnet.h:499
const TMMNet * Graph
Definition: mmnet.h:500
TMMNet::TCrossNetI::TCrossNetI ( const TCrossNetI CrossNetI)
inline

Definition at line 504 of file mmnet.h.

504 : CrossNetHI(CrossNetI.CrossNetHI), Graph(CrossNetI.Graph) { }
THashIter CrossNetHI
Definition: mmnet.h:499
const TMMNet * Graph
Definition: mmnet.h:500

Member Function Documentation

int TMMNet::TCrossNetI::GetCrossId ( )
inline

Gets the crossnet id.

Definition at line 511 of file mmnet.h.

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

Gets the name of the crossnet.

Definition at line 513 of file mmnet.h.

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

Gets a reference to the crossnet.

Definition at line 515 of file mmnet.h.

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

Increments iterator.

Definition at line 507 of file mmnet.h.

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

Definition at line 508 of file mmnet.h.

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

Definition at line 505 of file mmnet.h.

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

Definition at line 509 of file mmnet.h.

509 { return CrossNetHI == CrossNetI.CrossNetHI; }
THashIter CrossNetHI
Definition: mmnet.h:499

Friends And Related Function Documentation

friend class TMMNet
friend

Definition at line 516 of file mmnet.h.

Member Data Documentation

THashIter TMMNet::TCrossNetI::CrossNetHI
protected

Definition at line 499 of file mmnet.h.

const TMMNet* TMMNet::TCrossNetI::Graph
protected

Definition at line 500 of file mmnet.h.


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