| 
    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 <shash.h>
Public Types | |
| typedef TVal * | TIter | 
Public Member Functions | |
| TPackVec () | |
| TPackVec (const TPackVec &Vec) | |
| TPackVec (const int &_Vals) | |
| ~TPackVec () | |
| TPackVec (TSIn &SIn) | |
| void | Load (TSIn &SIn) | 
| void | Save (TSOut &SOut) const | 
| const TVal & | operator[] (const int &ValN) const | 
| TVal & | operator[] (const int &ValN) | 
| TPackVec< TVal > & | operator= (const TPackVec< TVal > &Vec) | 
| TVec< TVal > & | operator= (const TVec< TVal > &Vec) | 
| void | Gen (const int &_Vals) | 
| void | Clr () | 
| bool | Empty () const | 
| int | Len () const | 
| const TVal & | Last () const | 
| TVal & | Last () | 
| TIter | BegI () const | 
| TIter | EndI () const | 
| TIter | GetI (const int &ValN) const | 
| void | Add (const TVal &Val) | 
| void | AddV (const TPackVec< TVal > &ValV) | 
| void | AddV (const TVec< TVal > &ValV) | 
| void | AddV (TSIn &FIn) | 
| void | Sort (const bool &Asc=true) | 
Private Member Functions | |
| void | ResizeDelta (const int &ValsToAdd=1) | 
Private Attributes | |
| int | Vals | 
| TVal * | ValT | 
Definition at line 1395 of file shash.h.
References TPackVec< TVal >::Gen(), TPackVec< TVal >::Len(), TPackVec< TVal >::Vals, and TPackVec< TVal >::ValT.

Definition at line 1399 of file shash.h.
References TPackVec< TVal >::Vals, and TPackVec< TVal >::ValT.
Definition at line 1401 of file shash.h.
References TPackVec< TVal >::ValT.
Definition at line 1427 of file shash.h.
References TPackVec< TVal >::ResizeDelta(), TPackVec< TVal >::Vals, and TPackVec< TVal >::ValT.
{ ResizeDelta(1); ValT[Vals-1]=Val; }

Definition at line 1428 of file shash.h.
References TPackVec< TVal >::BegI(), TPackVec< TVal >::Len(), TPackVec< TVal >::ResizeDelta(), TPackVec< TVal >::Vals, and TPackVec< TVal >::ValT.

Definition at line 1430 of file shash.h.
References TVec< TVal, TSizeTy >::BegI(), TVec< TVal, TSizeTy >::Len(), TPackVec< TVal >::ResizeDelta(), TPackVec< TVal >::Vals, and TPackVec< TVal >::ValT.

Definition at line 1432 of file shash.h.
References TSIn::Load(), TSIn::LoadBf(), TPackVec< TVal >::ResizeDelta(), TPackVec< TVal >::Vals, and TPackVec< TVal >::ValT.
                       { int NVals;  FIn.Load(NVals);
    ResizeDelta(NVals);  FIn.LoadBf(ValT+Vals-NVals, sizeof(TVal)*NVals); }

Definition at line 1423 of file shash.h.
References TPackVec< TVal >::ValT.
Referenced by TPackVec< TVal >::AddV(), and TPackVec< TVal >::Sort().
{return ValT; }

Definition at line 1416 of file shash.h.
References TPackVec< TVal >::Vals, and TPackVec< TVal >::ValT.
Definition at line 1424 of file shash.h.
References TPackVec< TVal >::Vals, and TPackVec< TVal >::ValT.
Referenced by TPackVec< TVal >::Sort().

Definition at line 1413 of file shash.h.
References TPackVec< TVal >::Vals, and TPackVec< TVal >::ValT.
Referenced by TPackVec< TVal >::operator=(), and TPackVec< TVal >::TPackVec().
                             {
    if (ValT != NULL) { free(ValT); } Vals = _Vals;
    if (Vals==0) { ValT=NULL; } else { ValT = (TVal *) realloc(ValT, sizeof(TVal)*Vals); } }

Definition at line 1420 of file shash.h.
References TPackVec< TVal >::Len(), and TPackVec< TVal >::ValT.

Definition at line 1421 of file shash.h.
References TPackVec< TVal >::Len(), and TPackVec< TVal >::ValT.

Definition at line 1419 of file shash.h.
References TPackVec< TVal >::Vals.
Referenced by TPackVec< TVal >::AddV(), TPackVec< TVal >::Last(), TPackVec< TVal >::operator=(), and TPackVec< TVal >::TPackVec().
{return Vals; }

Definition at line 1450 of file shash.h.
References TSIn::Load(), and TSIn::LoadBf().
Referenced by TPackVec< TVal >::TPackVec().
                                   {
  SIn.Load(Vals);
  if (Vals==0) {
    if (ValT != NULL) { free(ValT); }
    ValT = NULL; }
  else {
    ValT = (TVal *) realloc(ValT, sizeof(TVal)*Vals);
  }
  SIn.LoadBf(ValT, sizeof(TVal)*Vals);
}


| TPackVec<TVal>& TPackVec< TVal >::operator= | ( | const TPackVec< TVal > & | Vec | ) |  [inline] | 
        
Definition at line 1408 of file shash.h.
References TPackVec< TVal >::Gen(), TPackVec< TVal >::Len(), TPackVec< TVal >::Vals, and TPackVec< TVal >::ValT.

Definition at line 1410 of file shash.h.
References TPackVec< TVal >::Gen(), TVec< TVal, TSizeTy >::Len(), TPackVec< TVal >::Vals, TVec< TVal, TSizeTy >::ValT, and TPackVec< TVal >::ValT.

| const TVal& TPackVec< TVal >::operator[] | ( | const int & | ValN | ) |  const [inline] | 
        
| TVal& TPackVec< TVal >::operator[] | ( | const int & | ValN | ) |  [inline] | 
        
| void TPackVec< TVal >::ResizeDelta | ( | const int & | ValsToAdd = 1 | ) |  [private] | 
        
Definition at line 1462 of file shash.h.
References TSOut::Save(), and TSOut::SaveBf().

Definition at line 1435 of file shash.h.
References TPackVec< TVal >::BegI(), and TPackVec< TVal >::EndI().
                                  {
    if (Asc) { TVec<TVal>::QSortCmp(BegI(), EndI(), TLss<TVal>()); }
    else { TVec<TVal>::QSortCmp(BegI(), EndI(), TGtr<TVal>()); }
  }

Definition at line 1390 of file shash.h.
Referenced by TPackVec< TVal >::Add(), TPackVec< TVal >::AddV(), TPackVec< TVal >::Clr(), TPackVec< TVal >::Empty(), TPackVec< TVal >::EndI(), TPackVec< TVal >::Gen(), TPackVec< TVal >::Len(), TPackVec< TVal >::operator=(), and TPackVec< TVal >::TPackVec().
Definition at line 1391 of file shash.h.
Referenced by TPackVec< TVal >::Add(), TPackVec< TVal >::AddV(), TPackVec< TVal >::BegI(), TPackVec< TVal >::Clr(), TPackVec< TVal >::EndI(), TPackVec< TVal >::Gen(), TPackVec< TVal >::GetI(), TPackVec< TVal >::Last(), TPackVec< TVal >::operator=(), TPackVec< TVal >::operator[](), TPackVec< TVal >::TPackVec(), and TPackVec< TVal >::~TPackVec().