|
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 <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 1427 of file shash.h.
{ ResizeDelta(1); ValT[Vals-1]=Val; }
| 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 1435 of file shash.h.
{
if (Asc) { TVec<TVal>::QSortCmp(BegI(), EndI(), TLss<TVal>()); }
else { TVec<TVal>::QSortCmp(BegI(), EndI(), TGtr<TVal>()); }
}