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
|
#include <ds.h>
Public Types | |
typedef TLstNd< TVal > * | PLstNd |
Public Member Functions | |
TLst () | |
TLst (const TLst &) | |
~TLst () | |
TLst (TSIn &SIn) | |
void | Save (TSOut &SOut) const |
TLst & | operator= (const TLst &) |
void | Clr () |
bool | Empty () const |
int | Len () const |
PLstNd | First () const |
PLstNd | Last () const |
TVal & | FirstVal () const |
TVal & | LastVal () const |
PLstNd | AddFront (const TVal &Val) |
PLstNd | AddBack (const TVal &Val) |
PLstNd | AddFrontSorted (const TVal &Val, const bool &Asc=true) |
PLstNd | AddBackSorted (const TVal &Val, const bool &Asc=true) |
void | PutFront (const PLstNd &Nd) |
void | PutBack (const PLstNd &Nd) |
PLstNd | Ins (const PLstNd &Nd, const TVal &Val) |
void | Del (const TVal &Val) |
void | Del (const PLstNd &Nd) |
void | DelFirst () |
void | DelLast () |
PLstNd | SearchForw (const TVal &Val) |
PLstNd | SearchBack (const TVal &Val) |
Private Attributes | |
int | Nds |
PLstNd | FirstNd |
PLstNd | LastNd |
Friends | |
class | TLstNd< TVal > |
Definition at line 2748 of file ds.h.
References TLst< TVal >::AddBack(), Assert, TSIn::Load(), and TLst< TVal >::Nds.
Definition at line 2773 of file ds.h.
References TLstNd< TVal >::NextNd, and TLstNd< TVal >::Val.
Referenced by TLst< TVal >::TLst().
TLstNd< TVal > * TLst< TVal >::AddBackSorted | ( | const TVal & | Val, |
const bool & | Asc = true |
||
) |
Definition at line 2794 of file ds.h.
References TLstNd< TVal >::Prev(), and TLstNd< TVal >::Val.
TLstNd< TVal > * TLst< TVal >::AddFrontSorted | ( | const TVal & | Val, |
const bool & | Asc = true |
||
) |
Definition at line 2781 of file ds.h.
References TLstNd< TVal >::Next(), TLstNd< TVal >::Prev(), and TLstNd< TVal >::Val.
|
inline |
Definition at line 2717 of file ds.h.
Referenced by TLst< TKey >::~TLst().
void TLst< TVal >::Del | ( | const TVal & | Val | ) |
Definition at line 2841 of file ds.h.
Referenced by TLst< TKey >::DelFirst(), and TLst< TKey >::DelLast().
Definition at line 2847 of file ds.h.
References Assert, TLstNd< TVal >::NextNd, and TLstNd< TVal >::PrevNd.
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 2830 of file ds.h.
References TLstNd< TVal >::NextNd, TLstNd< TVal >::PrevNd, and TLstNd< TVal >::Val.
|
inline |
|
inline |
Definition at line 2816 of file ds.h.
References Assert, TLstNd< TVal >::NextNd, and TLstNd< TVal >::PrevNd.
Definition at line 2802 of file ds.h.
References Assert, TLstNd< TVal >::NextNd, and TLstNd< TVal >::PrevNd.
Definition at line 2756 of file ds.h.
References IAssert, TLstNd< TVal >::NextNd, TSOut::Save(), and TLstNd< TVal >::Val.
Definition at line 2867 of file ds.h.
References TLstNd< TVal >::GetVal(), TLstNd< TVal >::Prev(), and TLstNd< TVal >::Val.
Definition at line 2857 of file ds.h.
References TLstNd< TVal >::GetVal(), TLstNd< TVal >::Next(), and TLstNd< TVal >::Val.
Definition at line 2706 of file ds.h.
Referenced by TLst< TKey >::Clr(), TLst< TKey >::DelFirst(), TLst< TKey >::First(), and TLst< TKey >::FirstVal().
Definition at line 2707 of file ds.h.
Referenced by TLst< TKey >::Clr(), TLst< TKey >::DelLast(), TLst< TKey >::Last(), and TLst< TKey >::LastVal().
|
private |
Definition at line 2705 of file ds.h.
Referenced by TLst< TKey >::Clr(), TLst< TKey >::Empty(), TLst< TKey >::Len(), and TLst< TVal >::TLst().