SNAP Library 2.3, Developer Reference  2014-06-16 11:58:46
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
 
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 1013 of file network.h.

Constructor & Destructor Documentation

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

Definition at line 1018 of file network.h.

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

Definition at line 1019 of file network.h.

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

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

Definition at line 1021 of file network.h.

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

Definition at line 1022 of file network.h.

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

Member Function Documentation

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

Definition at line 1028 of file network.h.

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

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

Definition at line 1029 of file network.h.

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

1029 { return EdgeDat; }
TEdgeData EdgeDat
Definition: network.h:1016
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 1025 of file network.h.

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

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

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

Definition at line 1024 of file network.h.

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

1024 { return EdgeDat < Edge.EdgeDat; }
TEdgeData EdgeDat
Definition: network.h:1016
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 1030 of file network.h.

Member Data Documentation

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