SNAP Library 2.2, Developer Reference  2014-03-11 19:15:55
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
TNodeEdgeNet< TNodeData, TEdgeData >::TEdge Class Reference

#include <network.h>

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

List of all members.

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.

: Id(-1), SrcNId(-1), DstNId(-1), EdgeDat() { }
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.

: Id(EId), SrcNId(SourceNId), DstNId(DestNId), EdgeDat() { }
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.

: Id(EId), SrcNId(SourceNId), DstNId(DestNId), EdgeDat(EdgeData) { }
template<class TNodeData, class TEdgeData>
TNodeEdgeNet< TNodeData, TEdgeData >::TEdge::TEdge ( const TEdge Edge) [inline]

Definition at line 1021 of file network.h.

: Id(Edge.Id), SrcNId(Edge.SrcNId), DstNId(Edge.DstNId), EdgeDat(Edge.EdgeDat) { }
template<class TNodeData, class TEdgeData>
TNodeEdgeNet< TNodeData, TEdgeData >::TEdge::TEdge ( TSIn SIn) [inline]

Definition at line 1022 of file network.h.

: Id(SIn), SrcNId(SIn), DstNId(SIn), EdgeDat(SIn) { }

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.

{ return EdgeDat; }
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.

{ return EdgeDat; }
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().

{ return Id; }

Here is the caller graph for this function:

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.

{ return EdgeDat < Edge.EdgeDat; }
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>
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: