SNAP Library 3.0, Developer Reference
2016-07-20 17:56:49
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 2683 of file ds.h.
References TLst< TVal >::AddBack(), Assert, TSIn::Load(), and TLst< TVal >::Nds.
Definition at line 2708 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 2729 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 2716 of file ds.h.
References TLstNd< TVal >::Next(), TLstNd< TVal >::Prev(), and TLstNd< TVal >::Val.
|
inline |
Definition at line 2652 of file ds.h.
Referenced by TLst< TKey >::~TLst().
void TLst< TVal >::Del | ( | const TVal & | Val | ) |
Definition at line 2776 of file ds.h.
Referenced by TLst< TKey >::DelFirst(), and TLst< TKey >::DelLast().
Definition at line 2782 of file ds.h.
References Assert, TLstNd< TVal >::NextNd, and TLstNd< TVal >::PrevNd.
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 2765 of file ds.h.
References TLstNd< TVal >::NextNd, TLstNd< TVal >::PrevNd, and TLstNd< TVal >::Val.
|
inline |
|
inline |
Definition at line 2751 of file ds.h.
References Assert, TLstNd< TVal >::NextNd, and TLstNd< TVal >::PrevNd.
Definition at line 2737 of file ds.h.
References Assert, TLstNd< TVal >::NextNd, and TLstNd< TVal >::PrevNd.
Definition at line 2691 of file ds.h.
References IAssert, TLstNd< TVal >::NextNd, TSOut::Save(), and TLstNd< TVal >::Val.
Definition at line 2802 of file ds.h.
References TLstNd< TVal >::GetVal(), TLstNd< TVal >::Prev(), and TLstNd< TVal >::Val.
Definition at line 2792 of file ds.h.
References TLstNd< TVal >::GetVal(), TLstNd< TVal >::Next(), and TLstNd< TVal >::Val.
Definition at line 2641 of file ds.h.
Referenced by TLst< TKey >::Clr(), TLst< TKey >::DelFirst(), TLst< TKey >::First(), and TLst< TKey >::FirstVal().
Definition at line 2642 of file ds.h.
Referenced by TLst< TKey >::Clr(), TLst< TKey >::DelLast(), TLst< TKey >::Last(), and TLst< TKey >::LastVal().
|
private |
Definition at line 2640 of file ds.h.
Referenced by TLst< TKey >::Clr(), TLst< TKey >::Empty(), TLst< TKey >::Len(), and TLst< TVal >::TLst().