SNAP Library 6.0, User Reference  2020-12-09 16:24:20
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
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>

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.

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

Definition at line 150 of file mmnet.h.

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

Definition at line 153 of file mmnet.h.

153 { return EId.GetMemUsed() + SrcNId.GetMemUsed() + DstNId.GetMemUsed(); }
int GetMemUsed() const
Definition: dt.h:1169
int TCrossNet::TCrossEdge::GetSrcNId ( ) const
inline

Definition at line 151 of file mmnet.h.

151 { return SrcNId; }
void TCrossNet::TCrossEdge::Save ( TSOut SOut) const
inline

Definition at line 149 of file mmnet.h.

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

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.

TInt TCrossNet::TCrossEdge::EId
private

Definition at line 140 of file mmnet.h.

TInt TCrossNet::TCrossEdge::SrcNId
private

Definition at line 141 of file mmnet.h.


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