SNAP Library , Developer Reference  2013-01-07 14:03:36
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
TNodeEDatNet< TNodeData, TEdgeData >::TNode Class Reference

#include <network.h>

Collaboration diagram for TNodeEDatNet< TNodeData, TEdgeData >::TNode:

List of all members.

Public Member Functions

 TNode ()
 TNode (const int &NId)
 TNode (const int &NId, const TNodeData &NodeData)
 TNode (const TNode &Node)
 TNode (TSIn &SIn)
void Save (TSOut &SOut) const
int GetId () const
int GetDeg () const
int GetInDeg () const
int GetOutDeg () const
const TNodeData & GetDat () const
TNodeData & GetDat ()
int GetInNId (const int &EdgeN) const
int GetOutNId (const int &EdgeN) const
int GetNbrNId (const int &EdgeN) const
TEdgeData & GetOutEDat (const int &EdgeN)
const TEdgeData & GetOutEDat (const int &EdgeN) const
bool IsInNId (const int &NId) const
bool IsOutNId (const int &NId) const
bool IsNbrNId (const int &NId) const
bool operator< (const TNode &Node) const

Private Attributes

TInt Id
TNodeData NodeDat
TIntV InNIdV
TNIdDatPrV OutNIdV

Friends

class TNodeEDatNet< TNodeData, TEdgeData >

Detailed Description

template<class TNodeData, class TEdgeData>
class TNodeEDatNet< TNodeData, TEdgeData >::TNode

Definition at line 449 of file network.h.


Constructor & Destructor Documentation

template<class TNodeData, class TEdgeData>
TNodeEDatNet< TNodeData, TEdgeData >::TNode::TNode ( ) [inline]

Definition at line 456 of file network.h.

: Id(-1), NodeDat(), InNIdV(), OutNIdV() { }
template<class TNodeData, class TEdgeData>
TNodeEDatNet< TNodeData, TEdgeData >::TNode::TNode ( const int &  NId) [inline]

Definition at line 457 of file network.h.

: Id(NId), NodeDat(), InNIdV(), OutNIdV() { }
template<class TNodeData, class TEdgeData>
TNodeEDatNet< TNodeData, TEdgeData >::TNode::TNode ( const int &  NId,
const TNodeData &  NodeData 
) [inline]

Definition at line 458 of file network.h.

: Id(NId), NodeDat(NodeData), InNIdV(), OutNIdV() { }
template<class TNodeData, class TEdgeData>
TNodeEDatNet< TNodeData, TEdgeData >::TNode::TNode ( const TNode Node) [inline]

Definition at line 459 of file network.h.

: Id(Node.Id), NodeDat(Node.NodeDat), InNIdV(Node.InNIdV), OutNIdV(Node.OutNIdV) { }
template<class TNodeData, class TEdgeData>
TNodeEDatNet< TNodeData, TEdgeData >::TNode::TNode ( TSIn SIn) [inline]

Definition at line 460 of file network.h.

: Id(SIn), NodeDat(SIn), InNIdV(SIn), OutNIdV(SIn) { }

Member Function Documentation

template<class TNodeData, class TEdgeData>
const TNodeData& TNodeEDatNet< TNodeData, TEdgeData >::TNode::GetDat ( ) const [inline]

Definition at line 466 of file network.h.

References TNodeEDatNet< TNodeData, TEdgeData >::TNode::NodeDat.

{ return NodeDat; }
template<class TNodeData, class TEdgeData>
TNodeData& TNodeEDatNet< TNodeData, TEdgeData >::TNode::GetDat ( ) [inline]

Definition at line 467 of file network.h.

References TNodeEDatNet< TNodeData, TEdgeData >::TNode::NodeDat.

{ return NodeDat; }
template<class TNodeData, class TEdgeData>
int TNodeEDatNet< TNodeData, TEdgeData >::TNode::GetDeg ( ) const [inline]

Definition at line 463 of file network.h.

References TNodeEDatNet< TNodeData, TEdgeData >::TNode::GetInDeg(), and TNodeEDatNet< TNodeData, TEdgeData >::TNode::GetOutDeg().

{ return GetInDeg() + GetOutDeg(); }

Here is the call graph for this function:

template<class TNodeData, class TEdgeData>
int TNodeEDatNet< TNodeData, TEdgeData >::TNode::GetId ( ) const [inline]

Definition at line 462 of file network.h.

References TNodeEDatNet< TNodeData, TEdgeData >::TNode::Id.

Referenced by TNodeEDatNet< TNodeData, TEdgeData >::IsOk().

{ return Id; }

Here is the caller graph for this function:

template<class TNodeData, class TEdgeData>
int TNodeEDatNet< TNodeData, TEdgeData >::TNode::GetInDeg ( ) const [inline]

Definition at line 464 of file network.h.

References TNodeEDatNet< TNodeData, TEdgeData >::TNode::InNIdV, and TVec< TVal >::Len().

Referenced by TNodeEDatNet< TNodeData, TEdgeData >::DelNode(), TNodeEDatNet< TNodeData, TEdgeData >::TNode::GetDeg(), and TNodeEDatNet< TNodeData, TEdgeData >::IsOk().

{ return InNIdV.Len(); }

Here is the call graph for this function:

Here is the caller graph for this function:

template<class TNodeData, class TEdgeData>
int TNodeEDatNet< TNodeData, TEdgeData >::TNode::GetInNId ( const int &  EdgeN) const [inline]
template<class TNodeData, class TEdgeData>
int TNodeEDatNet< TNodeData, TEdgeData >::TNode::GetNbrNId ( const int &  EdgeN) const [inline]
template<class TNodeData, class TEdgeData>
int TNodeEDatNet< TNodeData, TEdgeData >::TNode::GetOutDeg ( ) const [inline]
template<class TNodeData, class TEdgeData>
TEdgeData& TNodeEDatNet< TNodeData, TEdgeData >::TNode::GetOutEDat ( const int &  EdgeN) [inline]

Definition at line 471 of file network.h.

References TNodeEDatNet< TNodeData, TEdgeData >::TNode::OutNIdV.

Referenced by TNodeEDatNet< TNodeData, TEdgeData >::GetEDat().

{ return OutNIdV[EdgeN].Val2; }

Here is the caller graph for this function:

template<class TNodeData, class TEdgeData>
const TEdgeData& TNodeEDatNet< TNodeData, TEdgeData >::TNode::GetOutEDat ( const int &  EdgeN) const [inline]

Definition at line 472 of file network.h.

References TNodeEDatNet< TNodeData, TEdgeData >::TNode::OutNIdV.

{ return OutNIdV[EdgeN].Val2; }
template<class TNodeData, class TEdgeData>
int TNodeEDatNet< TNodeData, TEdgeData >::TNode::GetOutNId ( const int &  EdgeN) const [inline]
template<class TNodeData, class TEdgeData>
bool TNodeEDatNet< TNodeData, TEdgeData >::TNode::IsInNId ( const int &  NId) const [inline]

Definition at line 473 of file network.h.

References TNodeEDatNet< TNodeData, TEdgeData >::TNode::InNIdV, and TVec< TVal >::SearchBin().

Referenced by TNodeEDatNet< TNodeData, TEdgeData >::TNode::IsNbrNId().

{ return InNIdV.SearchBin(NId)!=-1; }

Here is the call graph for this function:

Here is the caller graph for this function:

template<class TNodeData, class TEdgeData>
bool TNodeEDatNet< TNodeData, TEdgeData >::TNode::IsNbrNId ( const int &  NId) const [inline]

Definition at line 475 of file network.h.

References TNodeEDatNet< TNodeData, TEdgeData >::TNode::IsInNId(), and TNodeEDatNet< TNodeData, TEdgeData >::TNode::IsOutNId().

{ return IsOutNId(NId) || IsInNId(NId); }

Here is the call graph for this function:

template<class TNodeData, class TEdgeData>
bool TNodeEDatNet< TNodeData, TEdgeData >::TNode::IsOutNId ( const int &  NId) const [inline]

Definition at line 474 of file network.h.

References TNodeEDatNet< TNodeData, TEdgeData >::GetNIdPos(), and TNodeEDatNet< TNodeData, TEdgeData >::TNode::OutNIdV.

Referenced by TNodeEDatNet< TNodeData, TEdgeData >::TNode::IsNbrNId().

{ return TNodeEDatNet::GetNIdPos(OutNIdV, NId)!=-1; }

Here is the call graph for this function:

Here is the caller graph for this function:

template<class TNodeData, class TEdgeData>
bool TNodeEDatNet< TNodeData, TEdgeData >::TNode::operator< ( const TNode Node) const [inline]

Definition at line 476 of file network.h.

References TNodeEDatNet< TNodeData, TEdgeData >::TNode::NodeDat.

{ return NodeDat < Node.NodeDat; }
template<class TNodeData, class TEdgeData>
void TNodeEDatNet< TNodeData, TEdgeData >::TNode::Save ( TSOut SOut) const [inline]

Friends And Related Function Documentation

template<class TNodeData, class TEdgeData>
friend class TNodeEDatNet< TNodeData, TEdgeData > [friend]

Definition at line 477 of file network.h.


Member Data Documentation

template<class TNodeData, class TEdgeData>
TInt TNodeEDatNet< TNodeData, TEdgeData >::TNode::Id [private]

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