SNAP Library 6.0, Developer Reference  2020-12-09 16:24:20
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
TLstNd< TVal > Class Template Reference

#include <ds.h>

Collaboration diagram for TLstNd< TVal >:

Public Member Functions

 TLstNd ()
 
 TLstNd (const TLstNd &)
 
 TLstNd (TLstNd *_PrevNd, TLstNd *_NextNd, const TVal &_Val)
 
TLstNdoperator= (const TLstNd &)
 
bool IsPrev () const
 
bool IsNext () const
 
TLstNdPrev () const
 
TLstNdNext () const
 
TVal & GetVal ()
 
const TVal & GetVal () const
 

Public Attributes

TLstNdPrevNd
 
TLstNdNextNd
 
TVal Val
 

Detailed Description

template<class TVal>
class TLstNd< TVal >

Definition at line 2678 of file ds.h.

Constructor & Destructor Documentation

template<class TVal>
TLstNd< TVal >::TLstNd ( )
inline

Definition at line 2684 of file ds.h.

2684 : PrevNd(NULL), NextNd(NULL), Val(){}
TLstNd * NextNd
Definition: ds.h:2681
TVal Val
Definition: ds.h:2682
TLstNd * PrevNd
Definition: ds.h:2680
template<class TVal>
TLstNd< TVal >::TLstNd ( const TLstNd< TVal > &  )
template<class TVal>
TLstNd< TVal >::TLstNd ( TLstNd< TVal > *  _PrevNd,
TLstNd< TVal > *  _NextNd,
const TVal &  _Val 
)
inline

Definition at line 2686 of file ds.h.

2686  :
2687  PrevNd(_PrevNd), NextNd(_NextNd), Val(_Val){}
TLstNd * NextNd
Definition: ds.h:2681
TVal Val
Definition: ds.h:2682
TLstNd * PrevNd
Definition: ds.h:2680

Member Function Documentation

template<class TVal>
TVal& TLstNd< TVal >::GetVal ( )
inline

Definition at line 2695 of file ds.h.

Referenced by TLst< TKey >::FirstVal(), TCache< TKey, TDat, THashFunc >::FNextKeyDat(), TLst< TKey >::LastVal(), TLst< TVal >::SearchBack(), and TLst< TVal >::SearchForw().

2695 {Assert(this!=NULL); return Val;}
TVal Val
Definition: ds.h:2682
#define Assert(Cond)
Definition: bd.h:251

Here is the caller graph for this function:

template<class TVal>
const TVal& TLstNd< TVal >::GetVal ( ) const
inline

Definition at line 2696 of file ds.h.

2696 {Assert(this!=NULL); return Val;}
TVal Val
Definition: ds.h:2682
#define Assert(Cond)
Definition: bd.h:251
template<class TVal>
bool TLstNd< TVal >::IsNext ( ) const
inline

Definition at line 2692 of file ds.h.

2692 {return (NextNd != NULL); }
TLstNd * NextNd
Definition: ds.h:2681
template<class TVal>
bool TLstNd< TVal >::IsPrev ( ) const
inline

Definition at line 2691 of file ds.h.

2691 {return (PrevNd != NULL); }
TLstNd * PrevNd
Definition: ds.h:2680
template<class TVal>
TLstNd* TLstNd< TVal >::Next ( ) const
inline

Definition at line 2694 of file ds.h.

Referenced by TLst< TVal >::AddFrontSorted(), TCache< TKey, TDat, THashFunc >::FNextKeyDat(), and TLst< TVal >::SearchForw().

2694 {Assert(this!=NULL); return NextNd;}
TLstNd * NextNd
Definition: ds.h:2681
#define Assert(Cond)
Definition: bd.h:251

Here is the caller graph for this function:

template<class TVal>
TLstNd& TLstNd< TVal >::operator= ( const TLstNd< TVal > &  )
template<class TVal>
TLstNd* TLstNd< TVal >::Prev ( ) const
inline

Definition at line 2693 of file ds.h.

Referenced by TLst< TVal >::AddBackSorted(), TLst< TVal >::AddFrontSorted(), and TLst< TVal >::SearchBack().

2693 {Assert(this!=NULL); return PrevNd;}
#define Assert(Cond)
Definition: bd.h:251
TLstNd * PrevNd
Definition: ds.h:2680

Here is the caller graph for this function:

Member Data Documentation

template<class TVal>
TLstNd* TLstNd< TVal >::PrevNd

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