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
TNodeEdgeNet< TNodeData, TEdgeData >::TEdge Class Reference

#include <network.h>

Public Member Functions

 TEdge ()
 
 TEdge (const int &EId, const int &SourceNId, const int &DestNId)
 
 TEdge (const int &EId, const int &SourceNId, const int &DestNId, const TEdgeData &EdgeData)
 
 TEdge (const TEdge &Edge)
 
 TEdge (TSIn &SIn)
 
void Save (TSOut &SOut) const
 
bool operator< (const TEdge &Edge) const
 
int GetId () const
 
int GetSrcNId () const
 
int GetDstNId () const
 
void Load (TSIn &InStream)
 
const TEdgeData & GetDat () const
 
TEdgeData & GetDat ()
 

Private Attributes

TInt Id
 
TInt SrcNId
 
TInt DstNId
 
TEdgeData EdgeDat
 

Friends

class TNodeEdgeNet
 

Detailed Description

template<class TNodeData, class TEdgeData>
class TNodeEdgeNet< TNodeData, TEdgeData >::TEdge

Definition at line 1115 of file network.h.

Constructor & Destructor Documentation

template<class TNodeData, class TEdgeData>
TNodeEdgeNet< TNodeData, TEdgeData >::TEdge::TEdge ( )
inline

Definition at line 1120 of file network.h.

1120 : Id(-1), SrcNId(-1), DstNId(-1), EdgeDat() { }
TEdgeData EdgeDat
Definition: network.h:1118
template<class TNodeData, class TEdgeData>
TNodeEdgeNet< TNodeData, TEdgeData >::TEdge::TEdge ( const int &  EId,
const int &  SourceNId,
const int &  DestNId 
)
inline

Definition at line 1121 of file network.h.

1121 : Id(EId), SrcNId(SourceNId), DstNId(DestNId), EdgeDat() { }
TEdgeData EdgeDat
Definition: network.h:1118
template<class TNodeData, class TEdgeData>
TNodeEdgeNet< TNodeData, TEdgeData >::TEdge::TEdge ( const int &  EId,
const int &  SourceNId,
const int &  DestNId,
const TEdgeData &  EdgeData 
)
inline

Definition at line 1122 of file network.h.

1122 : Id(EId), SrcNId(SourceNId), DstNId(DestNId), EdgeDat(EdgeData) { }
TEdgeData EdgeDat
Definition: network.h:1118
template<class TNodeData, class TEdgeData>
TNodeEdgeNet< TNodeData, TEdgeData >::TEdge::TEdge ( const TEdge Edge)
inline

Definition at line 1123 of file network.h.

1123 : Id(Edge.Id), SrcNId(Edge.SrcNId), DstNId(Edge.DstNId), EdgeDat(Edge.EdgeDat) { }
TEdgeData EdgeDat
Definition: network.h:1118
template<class TNodeData, class TEdgeData>
TNodeEdgeNet< TNodeData, TEdgeData >::TEdge::TEdge ( TSIn SIn)
inline

Definition at line 1124 of file network.h.

1124 : Id(SIn), SrcNId(SIn), DstNId(SIn), EdgeDat(SIn) { }
TEdgeData EdgeDat
Definition: network.h:1118

Member Function Documentation

template<class TNodeData, class TEdgeData>
const TEdgeData& TNodeEdgeNet< TNodeData, TEdgeData >::TEdge::GetDat ( ) const
inline

Definition at line 1137 of file network.h.

1137 { return EdgeDat; }
TEdgeData EdgeDat
Definition: network.h:1118
template<class TNodeData, class TEdgeData>
TEdgeData& TNodeEdgeNet< TNodeData, TEdgeData >::TEdge::GetDat ( )
inline

Definition at line 1138 of file network.h.

1138 { return EdgeDat; }
TEdgeData EdgeDat
Definition: network.h:1118
template<class TNodeData, class TEdgeData>
int TNodeEdgeNet< TNodeData, TEdgeData >::TEdge::GetDstNId ( ) const
inline

Definition at line 1129 of file network.h.

1129 { return DstNId; }
template<class TNodeData, class TEdgeData>
int TNodeEdgeNet< TNodeData, TEdgeData >::TEdge::GetId ( ) const
inline

Definition at line 1127 of file network.h.

1127 { return Id; }
template<class TNodeData, class TEdgeData>
int TNodeEdgeNet< TNodeData, TEdgeData >::TEdge::GetSrcNId ( ) const
inline

Definition at line 1128 of file network.h.

1128 { return SrcNId; }
template<class TNodeData, class TEdgeData>
void TNodeEdgeNet< TNodeData, TEdgeData >::TEdge::Load ( TSIn InStream)
inline

Definition at line 1130 of file network.h.

1130  {
1131  Id = TInt(InStream);
1132  SrcNId = TInt(InStream);
1133  DstNId = TInt(InStream);
1134  EdgeDat = TEdgeData(InStream);
1135 
1136  }
TEdgeData EdgeDat
Definition: network.h:1118
Definition: dt.h:1137
template<class TNodeData, class TEdgeData>
bool TNodeEdgeNet< TNodeData, TEdgeData >::TEdge::operator< ( const TEdge Edge) const
inline

Definition at line 1126 of file network.h.

1126 { return EdgeDat < Edge.EdgeDat; }
TEdgeData EdgeDat
Definition: network.h:1118
template<class TNodeData, class TEdgeData>
void TNodeEdgeNet< TNodeData, TEdgeData >::TEdge::Save ( TSOut SOut) const
inline

Definition at line 1125 of file network.h.

1125 { Id.Save(SOut); SrcNId.Save(SOut); DstNId.Save(SOut); EdgeDat.Save(SOut); }
void Save(TSOut &SOut) const
Definition: dt.h:1153
TEdgeData EdgeDat
Definition: network.h:1118

Friends And Related Function Documentation

template<class TNodeData, class TEdgeData>
friend class TNodeEdgeNet
friend

Definition at line 1139 of file network.h.

Member Data Documentation

template<class TNodeData, class TEdgeData>
TInt TNodeEdgeNet< TNodeData, TEdgeData >::TEdge::DstNId
private

Definition at line 1117 of file network.h.

template<class TNodeData, class TEdgeData>
TEdgeData TNodeEdgeNet< TNodeData, TEdgeData >::TEdge::EdgeDat
private

Definition at line 1118 of file network.h.

template<class TNodeData, class TEdgeData>
TInt TNodeEdgeNet< TNodeData, TEdgeData >::TEdge::Id
private

Definition at line 1117 of file network.h.

template<class TNodeData, class TEdgeData>
TInt TNodeEdgeNet< TNodeData, TEdgeData >::TEdge::SrcNId
private

Definition at line 1117 of file network.h.


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