SNAP Library 4.0, Developer Reference  2017-07-27 13:18:06
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>

Collaboration diagram for TMMNet::TCrossNetI:

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.

References CrossNetHI.

Referenced by GetCrossNet().

547 { return CrossNetHI.GetKey(); }
THashIter CrossNetHI
Definition: mmnet.h:535

Here is the caller graph for this function:

TStr TMMNet::TCrossNetI::GetCrossName ( )
inline

Gets the name of the crossnet.

Definition at line 549 of file mmnet.h.

References CrossNetHI, TMMNet::GetCrossName(), and Graph.

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

Here is the call graph for this function:

TCrossNet& TMMNet::TCrossNetI::GetCrossNet ( )
inline

Gets a reference to the crossnet.

Definition at line 551 of file mmnet.h.

References GetCrossId(), TMMNet::GetCrossNetById(), and Graph.

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

Here is the call graph for this function:

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

Increments iterator.

Definition at line 543 of file mmnet.h.

References CrossNetHI.

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.

References CrossNetHI.

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.

References CrossNetHI, and Graph.

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.

References CrossNetHI.

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.

Referenced by GetCrossId(), GetCrossName(), operator++(), operator<(), operator=(), and operator==().

const TMMNet* TMMNet::TCrossNetI::Graph
protected

Definition at line 536 of file mmnet.h.

Referenced by GetCrossName(), GetCrossNet(), and operator=().


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