SNAP Library 2.1, User Reference  2013-09-25 10:47:25
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>

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.

{ return EdgeDat; }
template<class TNodeData, class TEdgeData>
TEdgeData& TNodeEdgeNet< TNodeData, TEdgeData >::TEdge::GetDat ( ) [inline]

Definition at line 1029 of file network.h.

{ return EdgeDat; }
template<class TNodeData, class TEdgeData>
int TNodeEdgeNet< TNodeData, TEdgeData >::TEdge::GetDstNId ( ) const [inline]

Definition at line 1027 of file network.h.

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

Definition at line 1025 of file network.h.

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

Definition at line 1026 of file network.h.

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

Definition at line 1024 of file network.h.

{ return EdgeDat < Edge.EdgeDat; }
template<class TNodeData, class TEdgeData>
void TNodeEdgeNet< TNodeData, TEdgeData >::TEdge::Save ( TSOut SOut) const [inline]

Definition at line 1023 of file network.h.

{ Id.Save(SOut);  SrcNId.Save(SOut);  DstNId.Save(SOut);  EdgeDat.Save(SOut); }

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]

Definition at line 1015 of file network.h.

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

Definition at line 1016 of file network.h.

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

Definition at line 1015 of file network.h.

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

Definition at line 1015 of file network.h.


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