SNAP Library 3.0, User 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
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 129 of file mmnet.h.

Constructor & Destructor Documentation

TCrossNet::TCrossEdge::TCrossEdge ( )
inline

Definition at line 134 of file mmnet.h.

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

Definition at line 135 of file mmnet.h.

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

Definition at line 137 of file mmnet.h.

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

Definition at line 139 of file mmnet.h.

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

Member Function Documentation

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

Definition at line 143 of file mmnet.h.

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

Definition at line 141 of file mmnet.h.

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

Definition at line 144 of file mmnet.h.

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

Definition at line 142 of file mmnet.h.

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

Definition at line 140 of file mmnet.h.

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

Friends And Related Function Documentation

friend class TCrossNet
friend

Definition at line 145 of file mmnet.h.

Member Data Documentation

TInt TCrossNet::TCrossEdge::DstNId
private

Definition at line 132 of file mmnet.h.

TInt TCrossNet::TCrossEdge::EId
private

Definition at line 131 of file mmnet.h.

TInt TCrossNet::TCrossEdge::SrcNId
private

Definition at line 132 of file mmnet.h.


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