SNAP Library 3.0, Developer 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::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 472 of file mmnet.h.

Member Typedef Documentation

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

Definition at line 474 of file mmnet.h.

Constructor & Destructor Documentation

TMMNet::TModeNetI::TModeNetI ( )
inline

Definition at line 478 of file mmnet.h.

478 : ModeNetHI(), Graph(NULL) { }
THashIter ModeNetHI
Definition: mmnet.h:475
const TMMNet * Graph
Definition: mmnet.h:476
TMMNet::TModeNetI::TModeNetI ( const THashIter ModeNetHIter,
const TMMNet GraphPt 
)
inline

Definition at line 479 of file mmnet.h.

479 : ModeNetHI(ModeNetHIter), Graph(GraphPt) { }
THashIter ModeNetHI
Definition: mmnet.h:475
const TMMNet * Graph
Definition: mmnet.h:476
TMMNet::TModeNetI::TModeNetI ( const TModeNetI ModeNetI)
inline

Definition at line 480 of file mmnet.h.

480 : ModeNetHI(ModeNetI.ModeNetHI), Graph(ModeNetI.Graph) { }
THashIter ModeNetHI
Definition: mmnet.h:475
const TMMNet * Graph
Definition: mmnet.h:476

Member Function Documentation

int TMMNet::TModeNetI::GetModeId ( )
inline

Gets the mode id.

Definition at line 487 of file mmnet.h.

References ModeNetHI.

Referenced by GetModeNet().

487 { return ModeNetHI.GetKey(); }
THashIter ModeNetHI
Definition: mmnet.h:475

Here is the caller graph for this function:

TStr TMMNet::TModeNetI::GetModeName ( )
inline

Gets the name of the mode.

Definition at line 489 of file mmnet.h.

References TMMNet::GetModeName(), Graph, and ModeNetHI.

489 { return Graph->GetModeName(ModeNetHI.GetKey()); }
THashIter ModeNetHI
Definition: mmnet.h:475
TStr GetModeName(const TInt &ModeId) const
Gets the mode name from the mode id.
Definition: mmnet.h:574
const TMMNet * Graph
Definition: mmnet.h:476

Here is the call graph for this function:

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

Gets a reference to the modenet.

Definition at line 491 of file mmnet.h.

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

491 { return Graph->GetModeNetById(GetModeId()); }
int GetModeId()
Gets the mode id.
Definition: mmnet.h:487
const TMMNet * Graph
Definition: mmnet.h:476
TModeNet & GetModeNetById(const TInt &ModeId) const
Definition: mmnet.cpp:690

Here is the call graph for this function:

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

Increment iterator.

Definition at line 483 of file mmnet.h.

References ModeNetHI.

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

Definition at line 484 of file mmnet.h.

References ModeNetHI.

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

Definition at line 481 of file mmnet.h.

References Graph, and ModeNetHI.

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

Definition at line 485 of file mmnet.h.

References ModeNetHI.

485 { return ModeNetHI == ModeNetI.ModeNetHI; }
THashIter ModeNetHI
Definition: mmnet.h:475

Friends And Related Function Documentation

friend class TMMNet
friend

Definition at line 492 of file mmnet.h.

Member Data Documentation

const TMMNet* TMMNet::TModeNetI::Graph
protected

Definition at line 476 of file mmnet.h.

Referenced by GetModeName(), GetModeNet(), and operator=().

THashIter TMMNet::TModeNetI::ModeNetHI
protected

Definition at line 475 of file mmnet.h.

Referenced by GetModeId(), GetModeName(), operator++(), operator<(), operator=(), and operator==().


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