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
|
#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 2749 of file ds.h.
References TLst< TVal >::AddBack(), Assert, TSIn::Load(), and TLst< TVal >::Nds.
Definition at line 2774 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 2795 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 2782 of file ds.h.
References TLstNd< TVal >::Next(), TLstNd< TVal >::Prev(), and TLstNd< TVal >::Val.
|
inline |
Definition at line 2718 of file ds.h.
Referenced by TLst< TKey >::~TLst().
void TLst< TVal >::Del | ( | const TVal & | Val | ) |
Definition at line 2842 of file ds.h.
Referenced by TLst< TKey >::DelFirst(), and TLst< TKey >::DelLast().
Definition at line 2848 of file ds.h.
References Assert, TLstNd< TVal >::NextNd, and TLstNd< TVal >::PrevNd.
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 2831 of file ds.h.
References TLstNd< TVal >::NextNd, TLstNd< TVal >::PrevNd, and TLstNd< TVal >::Val.
|
inline |
|
inline |
Definition at line 2817 of file ds.h.
References Assert, TLstNd< TVal >::NextNd, and TLstNd< TVal >::PrevNd.
Definition at line 2803 of file ds.h.
References Assert, TLstNd< TVal >::NextNd, and TLstNd< TVal >::PrevNd.
Definition at line 2757 of file ds.h.
References IAssert, TLstNd< TVal >::NextNd, TSOut::Save(), and TLstNd< TVal >::Val.
Definition at line 2868 of file ds.h.
References TLstNd< TVal >::GetVal(), TLstNd< TVal >::Prev(), and TLstNd< TVal >::Val.
Definition at line 2858 of file ds.h.
References TLstNd< TVal >::GetVal(), TLstNd< TVal >::Next(), and TLstNd< TVal >::Val.
Definition at line 2707 of file ds.h.
Referenced by TLst< TKey >::Clr(), TLst< TKey >::DelFirst(), and TLst< TKey >::First().
Definition at line 2708 of file ds.h.
Referenced by TLst< TKey >::DelLast(), and TLst< TKey >::Last().
|
private |
Definition at line 2706 of file ds.h.
Referenced by TLst< TKey >::Len(), and TLst< TVal >::TLst().