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
TCrossNet::TCrossEdge Class Reference

A single edge in the cross net. Has an Edge Id, and the source and destination node ids. (Mode ids are implicit from TCrossNet) More...

#include <mmnet.h>

Collaboration diagram for TCrossNet::TCrossEdge:

Public Member Functions

 TCrossEdge ()
 
 TCrossEdge (const int &Id, const int &SourceNId, const int &DestNId)
 
 TCrossEdge (const TCrossEdge &MultiEdge)
 
 TCrossEdge (TSIn &SIn)
 
void Save (TSOut &SOut) const
 
int GetId () const
 
int GetSrcNId () const
 
int GetDstNId () const
 
size_t GetMemUsed () const
 

Private Attributes

TInt EId
 
TInt SrcNId
 
TInt DstNId
 

Friends

class TCrossNet
 

Detailed Description

A single edge in the cross net. Has an Edge Id, and the source and destination node ids. (Mode ids are implicit from TCrossNet)

Definition at line 138 of file mmnet.h.

Constructor & Destructor Documentation

TCrossNet::TCrossEdge::TCrossEdge ( )
inline

Definition at line 143 of file mmnet.h.

143 : EId(-1), SrcNId(-1), DstNId(-1) { }
TCrossNet::TCrossEdge::TCrossEdge ( const int &  Id,
const int &  SourceNId,
const int &  DestNId 
)
inline

Definition at line 144 of file mmnet.h.

144  :
145  EId(Id), SrcNId(SourceNId), DstNId(DestNId) { }
TCrossNet::TCrossEdge::TCrossEdge ( const TCrossEdge MultiEdge)
inline

Definition at line 146 of file mmnet.h.

146  : EId(MultiEdge.EId), SrcNId(MultiEdge.SrcNId),
147  DstNId(MultiEdge.DstNId) { }
TCrossNet::TCrossEdge::TCrossEdge ( TSIn SIn)
inline

Definition at line 148 of file mmnet.h.

148 : EId(SIn), SrcNId(SIn), DstNId(SIn) { }

Member Function Documentation

int TCrossNet::TCrossEdge::GetDstNId ( ) const
inline

Definition at line 152 of file mmnet.h.

References DstNId.

152 { return DstNId; }
int TCrossNet::TCrossEdge::GetId ( ) const
inline

Definition at line 150 of file mmnet.h.

References EId.

150 { return EId; }
size_t TCrossNet::TCrossEdge::GetMemUsed ( ) const
inline

Definition at line 153 of file mmnet.h.

References DstNId, EId, TInt::GetMemUsed(), and SrcNId.

153 { return EId.GetMemUsed() + SrcNId.GetMemUsed() + DstNId.GetMemUsed(); }
int GetMemUsed() const
Definition: dt.h:1166

Here is the call graph for this function:

int TCrossNet::TCrossEdge::GetSrcNId ( ) const
inline

Definition at line 151 of file mmnet.h.

References SrcNId.

Referenced by TMMNet::ToNetworkMP().

151 { return SrcNId; }

Here is the caller graph for this function:

void TCrossNet::TCrossEdge::Save ( TSOut SOut) const
inline

Definition at line 149 of file mmnet.h.

References DstNId, EId, TInt::Save(), and SrcNId.

149 { EId.Save(SOut); SrcNId.Save(SOut); DstNId.Save(SOut); }
void Save(TSOut &SOut) const
Definition: dt.h:1150

Here is the call graph for this function:

Friends And Related Function Documentation

friend class TCrossNet
friend

Definition at line 154 of file mmnet.h.

Member Data Documentation

TInt TCrossNet::TCrossEdge::DstNId
private

Definition at line 141 of file mmnet.h.

Referenced by TCrossNet::DelEdge(), GetDstNId(), GetMemUsed(), and Save().

TInt TCrossNet::TCrossEdge::EId
private

Definition at line 140 of file mmnet.h.

Referenced by GetId(), GetMemUsed(), and Save().

TInt TCrossNet::TCrossEdge::SrcNId
private

Definition at line 141 of file mmnet.h.

Referenced by TCrossNet::DelEdge(), GetMemUsed(), GetSrcNId(), and Save().


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