SNAP Library 2.0, User Reference
2013-05-13 16:33:57
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
#include <ds.h>
Public Member Functions | |
TQQueue (const int &_MxLast=64, const int &_MxLen=-1) | |
TQQueue (const TQQueue &Queue) | |
TQQueue (TSIn &SIn) | |
void | Save (TSOut &SOut) const |
TQQueue & | operator= (const TQQueue &Queue) |
const TVal & | operator[] (const int &ValN) const |
void | Clr (const bool &DoDel=true) |
void | Gen (const int &_MxLast=64, const int &_MxLen=-1) |
void | GetSubValV (const int &_BValN, const int &_EValN, TVec< TVal > &SubValV) const |
bool | Empty () const |
int | Len () const |
const TVal & | Top () const |
void | Pop () |
void | Push (const TVal &Val) |
void | Shuffle (TRnd &Rnd) |
Private Attributes | |
TInt | MxLast |
TInt | MxLen |
TInt | First |
TInt | Last |
TVec< TVal > | ValV |
void TQQueue< TVal >::GetSubValV | ( | const int & | _BValN, |
const int & | _EValN, | ||
TVec< TVal > & | SubValV | ||
) | const [inline] |
Definition at line 3501 of file ds.h.
{ int BValN=TInt::GetMx(0, _BValN); int EValN=TInt::GetMn(Len()-1, _EValN); SubValV.Gen(EValN-BValN+1); for (int ValN=BValN; ValN<=EValN; ValN++){ SubValV[ValN-BValN]=ValV[Last+ValN];} }
const TVal& TQQueue< TVal >::operator[] | ( | const int & | ValN | ) | const [inline] |