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

#include <network.h>

Collaboration diagram for TNodeEdgeNet< TNodeData, TEdgeData >::TEdge:

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.

References TNodeEdgeNet< TNodeData, TEdgeData >::TEdge::EdgeDat.

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.

References TNodeEdgeNet< TNodeData, TEdgeData >::TEdge::EdgeDat.

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

Definition at line 1127 of file network.h.

References TNodeEdgeNet< TNodeData, TEdgeData >::TEdge::Id.

Referenced by TNodeEdgeNet< TNodeData, TEdgeData >::IsEdge(), and TNodeEdgeNet< TNodeData, TEdgeData >::IsOk().

1127 { return Id; }

Here is the caller graph for this function:

template<class TNodeData, class TEdgeData>
int TNodeEdgeNet< TNodeData, TEdgeData >::TEdge::GetSrcNId ( ) const
inline
template<class TNodeData, class TEdgeData>
void TNodeEdgeNet< TNodeData, TEdgeData >::TEdge::Load ( TSIn InStream)
inline

Definition at line 1130 of file network.h.

References TNodeEdgeNet< TNodeData, TEdgeData >::TEdge::DstNId, TNodeEdgeNet< TNodeData, TEdgeData >::TEdge::EdgeDat, TNodeEdgeNet< TNodeData, TEdgeData >::TEdge::Id, and TNodeEdgeNet< TNodeData, TEdgeData >::TEdge::SrcNId.

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:1134
template<class TNodeData, class TEdgeData>
bool TNodeEdgeNet< TNodeData, TEdgeData >::TEdge::operator< ( const TEdge Edge) const
inline

Definition at line 1126 of file network.h.

References TNodeEdgeNet< TNodeData, TEdgeData >::TEdge::EdgeDat.

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

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
template<class TNodeData, class TEdgeData>
TInt TNodeEdgeNet< TNodeData, TEdgeData >::TEdge::Id
private
template<class TNodeData, class TEdgeData>
TInt TNodeEdgeNet< TNodeData, TEdgeData >::TEdge::SrcNId
private

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