SNAP Library 6.0, Developer Reference  2020-12-09 16:24:20
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
TMMNet::TModeNetI Class Reference

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

#include <mmnet.h>

Collaboration diagram for TMMNet::TModeNetI:

Public Member Functions

 TModeNetI ()
 
 TModeNetI (const THashIter &ModeNetHIter, const TMMNet *GraphPt)
 
 TModeNetI (const TModeNetI &ModeNetI)
 
TModeNetIoperator= (const TModeNetI &ModeNetI)
 
TModeNetIoperator++ (int)
 Increment iterator. More...
 
bool operator< (const TModeNetI &ModeNetI) const
 
bool operator== (const TModeNetI &ModeNetI) const
 
int GetModeId ()
 Gets the mode id. More...
 
TStr GetModeName ()
 Gets the name of the mode. More...
 
TModeNetGetModeNet ()
 Gets a reference to the modenet. More...
 

Protected Types

typedef THash< TInt, TModeNet >::TIter THashIter
 

Protected Attributes

THashIter ModeNetHI
 
const TMMNetGraph
 

Friends

class TMMNet
 

Detailed Description

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

Definition at line 508 of file mmnet.h.

Member Typedef Documentation

typedef THash<TInt, TModeNet>::TIter TMMNet::TModeNetI::THashIter
protected

Definition at line 510 of file mmnet.h.

Constructor & Destructor Documentation

TMMNet::TModeNetI::TModeNetI ( )
inline

Definition at line 514 of file mmnet.h.

514 : ModeNetHI(), Graph(NULL) { }
THashIter ModeNetHI
Definition: mmnet.h:511
const TMMNet * Graph
Definition: mmnet.h:512
TMMNet::TModeNetI::TModeNetI ( const THashIter ModeNetHIter,
const TMMNet GraphPt 
)
inline

Definition at line 515 of file mmnet.h.

515 : ModeNetHI(ModeNetHIter), Graph(GraphPt) { }
THashIter ModeNetHI
Definition: mmnet.h:511
const TMMNet * Graph
Definition: mmnet.h:512
TMMNet::TModeNetI::TModeNetI ( const TModeNetI ModeNetI)
inline

Definition at line 516 of file mmnet.h.

516 : ModeNetHI(ModeNetI.ModeNetHI), Graph(ModeNetI.Graph) { }
THashIter ModeNetHI
Definition: mmnet.h:511
const TMMNet * Graph
Definition: mmnet.h:512

Member Function Documentation

int TMMNet::TModeNetI::GetModeId ( )
inline

Gets the mode id.

Definition at line 523 of file mmnet.h.

Referenced by GetModeNet().

523 { return ModeNetHI.GetKey(); }
THashIter ModeNetHI
Definition: mmnet.h:511

Here is the caller graph for this function:

TStr TMMNet::TModeNetI::GetModeName ( )
inline

Gets the name of the mode.

Definition at line 525 of file mmnet.h.

References TMMNet::GetModeName().

525 { return Graph->GetModeName(ModeNetHI.GetKey()); }
THashIter ModeNetHI
Definition: mmnet.h:511
TStr GetModeName(const TInt &ModeId) const
Gets the mode name from the mode id.
Definition: mmnet.h:636
const TMMNet * Graph
Definition: mmnet.h:512

Here is the call graph for this function:

TModeNet& TMMNet::TModeNetI::GetModeNet ( )
inline

Gets a reference to the modenet.

Definition at line 527 of file mmnet.h.

References GetModeId(), and TMMNet::GetModeNetById().

527 { return Graph->GetModeNetById(GetModeId()); }
int GetModeId()
Gets the mode id.
Definition: mmnet.h:523
const TMMNet * Graph
Definition: mmnet.h:512
TModeNet & GetModeNetById(const TInt &ModeId) const
Definition: mmnet.cpp:753

Here is the call graph for this function:

TModeNetI& TMMNet::TModeNetI::operator++ ( int  )
inline

Increment iterator.

Definition at line 519 of file mmnet.h.

519 { ModeNetHI++; return *this; }
THashIter ModeNetHI
Definition: mmnet.h:511
bool TMMNet::TModeNetI::operator< ( const TModeNetI ModeNetI) const
inline

Definition at line 520 of file mmnet.h.

References ModeNetHI.

520 { return ModeNetHI < ModeNetI.ModeNetHI; }
THashIter ModeNetHI
Definition: mmnet.h:511
TModeNetI& TMMNet::TModeNetI::operator= ( const TModeNetI ModeNetI)
inline

Definition at line 517 of file mmnet.h.

References Graph, and ModeNetHI.

517 { ModeNetHI = ModeNetI.ModeNetHI; Graph=ModeNetI.Graph; return *this; }
THashIter ModeNetHI
Definition: mmnet.h:511
const TMMNet * Graph
Definition: mmnet.h:512
bool TMMNet::TModeNetI::operator== ( const TModeNetI ModeNetI) const
inline

Definition at line 521 of file mmnet.h.

References ModeNetHI.

521 { return ModeNetHI == ModeNetI.ModeNetHI; }
THashIter ModeNetHI
Definition: mmnet.h:511

Friends And Related Function Documentation

friend class TMMNet
friend

Definition at line 528 of file mmnet.h.

Member Data Documentation

const TMMNet* TMMNet::TModeNetI::Graph
protected

Definition at line 512 of file mmnet.h.

Referenced by operator=().

THashIter TMMNet::TModeNetI::ModeNetHI
protected

Definition at line 511 of file mmnet.h.

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


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