| 
    SNAP Library 2.0, Developer 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 | 
Definition at line 3498 of file ds.h.
Referenced by TLocClust::ApproxPageRank(), TSnap::GetBetweennessCentr(), and TQQueue< TInt >::Shuffle().

Definition at line 3509 of file ds.h.
Referenced by TLocClust::ApproxPageRank(), TSnap::GetBetweennessCentr(), and TQQueue< TInt >::Shuffle().

| 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];}
  }
Definition at line 3510 of file ds.h.
Referenced by TLocClust::ApproxPageRank(), TQQueue< TInt >::GetSubValV(), TQQueue< TInt >::operator[](), TQQueue< TInt >::Push(), and TQQueue< TInt >::Shuffle().

| const TVal& TQQueue< TVal >::operator[] | ( | const int & | ValN | ) |  const [inline] | 
        
Definition at line 3513 of file ds.h.
Referenced by TLocClust::ApproxPageRank(), TSnap::GetBetweennessCentr(), TQQueue< TInt >::Push(), and TQQueue< TInt >::Shuffle().

Definition at line 3516 of file ds.h.
Referenced by TLocClust::ApproxPageRank(), TSnap::GetBetweennessCentr(), and TQQueue< TInt >::Shuffle().
                            {
    if (Last>MxLast){ValV.Del(0, Last-1); First-=Last; Last=0;}
    if ((MxLen!=-1)&&(MxLen==Len())){Pop();}
    First++; ValV.Add(Val);}

Definition at line 3511 of file ds.h.
Referenced by TLocClust::ApproxPageRank(), TSnap::GetBetweennessCentr(), and TQQueue< TInt >::Shuffle().

Definition at line 3476 of file ds.h.
Referenced by TQQueue< TInt >::Clr(), TQQueue< TInt >::Empty(), TQQueue< TInt >::Gen(), TQQueue< TInt >::Len(), TQQueue< TInt >::operator=(), TQQueue< TInt >::Pop(), TQQueue< TInt >::Push(), TQQueue< TInt >::Save(), and TQQueue< TInt >::Top().
Definition at line 3476 of file ds.h.
Referenced by TQQueue< TInt >::Clr(), TQQueue< TInt >::Empty(), TQQueue< TInt >::Gen(), TQQueue< TInt >::GetSubValV(), TQQueue< TInt >::Len(), TQQueue< TInt >::operator=(), TQQueue< TInt >::operator[](), TQQueue< TInt >::Pop(), TQQueue< TInt >::Push(), TQQueue< TInt >::Save(), and TQQueue< TInt >::Top().
Definition at line 3475 of file ds.h.
Referenced by TQQueue< TInt >::Gen(), TQQueue< TInt >::operator=(), TQQueue< TInt >::Push(), TQQueue< TInt >::Save(), and TQQueue< TInt >::TQQueue().
Definition at line 3475 of file ds.h.
Referenced by TQQueue< TInt >::Gen(), TQQueue< TInt >::operator=(), TQQueue< TInt >::Push(), TQQueue< TInt >::Save(), and TQQueue< TInt >::TQQueue().
Definition at line 3477 of file ds.h.
Referenced by TQQueue< TInt >::Clr(), TQQueue< TInt >::Gen(), TQQueue< TInt >::GetSubValV(), TQQueue< TInt >::operator=(), TQQueue< TInt >::operator[](), TQQueue< TInt >::Pop(), TQQueue< TInt >::Push(), TQQueue< TInt >::Save(), TQQueue< TInt >::Shuffle(), and TQQueue< TInt >::Top().