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

#include <network.h>

Collaboration diagram for TNodeEdgeNet< 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
bool operator< (const TNode &Node) const
int GetId () const
int GetDeg () const
int GetInDeg () const
int GetOutDeg () const
const TNodeData & GetDat () const
TNodeData & GetDat ()
int GetInEId (const int &NodeN) const
int GetOutEId (const int &NodeN) const
int GetNbrEId (const int &EdgeN) const
bool IsInEId (const int &EId) const
bool IsOutEId (const int &EId) const
bool IsNbrEId (const int &EId) const

Private Attributes

TInt Id
TIntV InEIdV
TIntV OutEIdV
TNodeData NodeDat

Friends

class TNodeEdgeNet< TNodeData, TEdgeData >

Detailed Description

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

Definition at line 985 of file network.h.


Constructor & Destructor Documentation

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

Definition at line 991 of file network.h.

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

Definition at line 992 of file network.h.

: Id(NId), InEIdV(), OutEIdV(), NodeDat()  { }
template<class TNodeData, class TEdgeData>
TNodeEdgeNet< TNodeData, TEdgeData >::TNode::TNode ( const int &  NId,
const TNodeData &  NodeData 
) [inline]

Definition at line 993 of file network.h.

: Id(NId), InEIdV(), OutEIdV(), NodeDat(NodeData) { }
template<class TNodeData, class TEdgeData>
TNodeEdgeNet< TNodeData, TEdgeData >::TNode::TNode ( const TNode Node) [inline]

Definition at line 994 of file network.h.

: Id(Node.Id), InEIdV(Node.InEIdV), OutEIdV(Node.OutEIdV), NodeDat(Node.NodeDat) { }
template<class TNodeData, class TEdgeData>
TNodeEdgeNet< TNodeData, TEdgeData >::TNode::TNode ( TSIn SIn) [inline]

Definition at line 995 of file network.h.

: Id(SIn), InEIdV(SIn), OutEIdV(SIn), NodeDat(SIn) { }

Member Function Documentation

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

Definition at line 1002 of file network.h.

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

Referenced by TNodeEdgeNet< TNodeData, TEdgeData >::TNodeI::IsOutNId().

{ return NodeDat; }

Here is the caller graph for this function:

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

Definition at line 1003 of file network.h.

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

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

Definition at line 999 of file network.h.

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

{ return GetInDeg() + GetOutDeg(); }

Here is the call graph for this function:

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

Definition at line 998 of file network.h.

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

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

{ return Id; }

Here is the caller graph for this function:

template<class TNodeData, class TEdgeData>
int TNodeEdgeNet< TNodeData, TEdgeData >::TNode::GetInDeg ( ) const [inline]
template<class TNodeData, class TEdgeData>
int TNodeEdgeNet< TNodeData, TEdgeData >::TNode::GetInEId ( const int &  NodeN) const [inline]
template<class TNodeData, class TEdgeData>
int TNodeEdgeNet< TNodeData, TEdgeData >::TNode::GetNbrEId ( const int &  EdgeN) const [inline]
template<class TNodeData, class TEdgeData>
int TNodeEdgeNet< TNodeData, TEdgeData >::TNode::GetOutEId ( const int &  NodeN) const [inline]
template<class TNodeData, class TEdgeData>
bool TNodeEdgeNet< TNodeData, TEdgeData >::TNode::IsInEId ( const int &  EId) const [inline]

Definition at line 1007 of file network.h.

References TNodeEdgeNet< TNodeData, TEdgeData >::TNode::InEIdV, and TVec< TVal >::SearchBin().

Referenced by TNodeEdgeNet< TNodeData, TEdgeData >::TNode::IsNbrEId().

{ return InEIdV.SearchBin(EId) != -1; }

Here is the call graph for this function:

Here is the caller graph for this function:

template<class TNodeData, class TEdgeData>
bool TNodeEdgeNet< TNodeData, TEdgeData >::TNode::IsNbrEId ( const int &  EId) const [inline]

Definition at line 1009 of file network.h.

References TNodeEdgeNet< TNodeData, TEdgeData >::TNode::IsInEId(), and TNodeEdgeNet< TNodeData, TEdgeData >::TNode::IsOutEId().

{ return IsInEId(EId) || IsOutEId(EId); }

Here is the call graph for this function:

template<class TNodeData, class TEdgeData>
bool TNodeEdgeNet< TNodeData, TEdgeData >::TNode::IsOutEId ( const int &  EId) const [inline]

Definition at line 1008 of file network.h.

References TNodeEdgeNet< TNodeData, TEdgeData >::TNode::OutEIdV, and TVec< TVal >::SearchBin().

Referenced by TNodeEdgeNet< TNodeData, TEdgeData >::TNode::IsNbrEId().

{ return OutEIdV.SearchBin(EId) != -1; }

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 997 of file network.h.

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

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

Friends And Related Function Documentation

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

Definition at line 1010 of file network.h.


Member Data Documentation

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

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