SNAP Library 4.0, Developer Reference  2017-07-27 13:18:06
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
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 2677 of file ds.h.

Constructor & Destructor Documentation

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

Definition at line 2683 of file ds.h.

2683 : PrevNd(NULL), NextNd(NULL), Val(){}
TLstNd * NextNd
Definition: ds.h:2680
TVal Val
Definition: ds.h:2681
TLstNd * PrevNd
Definition: ds.h:2679
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 2685 of file ds.h.

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

Member Function Documentation

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

Definition at line 2694 of file ds.h.

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

2694 {Assert(this!=NULL); return Val;}
TVal Val
Definition: ds.h:2681
#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 2695 of file ds.h.

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

Definition at line 2691 of file ds.h.

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

Definition at line 2690 of file ds.h.

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

Definition at line 2693 of file ds.h.

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

2693 {Assert(this!=NULL); return NextNd;}
TLstNd * NextNd
Definition: ds.h:2680
#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 2692 of file ds.h.

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

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

Here is the caller graph for this function:

Member Data Documentation


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