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
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
 
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 1016 of file network.h.

Constructor & Destructor Documentation

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

Definition at line 1021 of file network.h.

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

Definition at line 1022 of file network.h.

1022 : Id(EId), SrcNId(SourceNId), DstNId(DestNId), EdgeDat() { }
TEdgeData EdgeDat
Definition: network.h:1019
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 1023 of file network.h.

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

Definition at line 1024 of file network.h.

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

Definition at line 1025 of file network.h.

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

Member Function Documentation

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

Definition at line 1031 of file network.h.

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

Definition at line 1032 of file network.h.

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

Definition at line 1030 of file network.h.

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

Definition at line 1028 of file network.h.

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

Definition at line 1029 of file network.h.

1029 { return SrcNId; }
template<class TNodeData, class TEdgeData>
bool TNodeEdgeNet< TNodeData, TEdgeData >::TEdge::operator< ( const TEdge Edge) const
inline

Definition at line 1027 of file network.h.

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

Definition at line 1026 of file network.h.

1026 { Id.Save(SOut); SrcNId.Save(SOut); DstNId.Save(SOut); EdgeDat.Save(SOut); }
void Save(TSOut &SOut) const
Definition: dt.h:1060
TEdgeData EdgeDat
Definition: network.h:1019

Friends And Related Function Documentation

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

Definition at line 1033 of file network.h.

Member Data Documentation

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

Definition at line 1018 of file network.h.

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

Definition at line 1019 of file network.h.

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

Definition at line 1018 of file network.h.

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

Definition at line 1018 of file network.h.


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