SNAP Library 6.0, User Reference
2020-12-09 16:24:20
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
#include <ds.h>
Public Types | |
typedef TPt< TVecPool< TVal > > | PVecPool |
typedef TVec< TVal > | TValV |
Public Member Functions | |
TVecPool (const ::TSize &ExpectVals=0, const ::TSize &_GrowBy=1000000, const bool &_FastCopy=false, const TVal &_EmptyVal=TVal()) | |
TVecPool (const TVecPool &Pool) | |
TVecPool (TSIn &SIn) | |
~TVecPool () | |
void | Save (TSOut &SOut) const |
TVecPool & | operator= (const TVecPool &Pool) |
::TSize | GetVals () const |
::TSize | GetVecs () const |
bool | IsVId (const int &VId) const |
::TSize | Reserved () const |
void | Reserve (const ::TSize &MxVals) |
const TVal & | GetEmptyVal () const |
void | SetEmptyVal (const TVal &_EmptyVal) |
::TSize | GetMemUsed () const |
int | AddV (const TValV &ValV) |
int | AddEmptyV (const int &ValVLen) |
uint | GetVLen (const int &VId) const |
TVal * | GetValVPt (const int &VId) const |
void | GetV (const int &VId, TValV &ValV) const |
void | PutV (const int &VId, const TValV &ValV) |
void | CompactPool (const TVal &DelVal) |
void | ShuffleAll (TRnd &Rnd=TInt::Rnd) |
void | Clr (bool DoDel=true) |
void | PutAll (const TVal &Val) |
Static Public Member Functions | |
static PVecPool | New (const ::TSize &ExpectVals=0, const ::TSize &GrowBy=1000000, const bool &FastCopy=false) |
static PVecPool | Load (TSIn &SIn) |
static PVecPool | Load (const TStr &FNm) |
Private Member Functions | |
void | Resize (const ::TSize &_MxVals) |
Private Attributes | |
TCRef | CRef |
TBool | FastCopy |
::TSize | GrowBy |
::TSize | MxVals |
::TSize | Vals |
TVal | EmptyVal |
TVal * | ValBf |
TVec< ::TSize > | IdToOffV |
Friends | |
class | TPt< TVecPool< TVal > > |
typedef TPt<TVecPool<TVal> > TGLib_OLD::TVecPool< TVal >::PVecPool |
typedef TVec<TVal> TGLib_OLD::TVecPool< TVal >::TValV |
TVecPool< TVal >::TVecPool | ( | const ::TSize & | ExpectVals = 0 , |
const ::TSize & | _GrowBy = 1000000 , |
||
const bool & | _FastCopy = false , |
||
const TVal & | _EmptyVal = TVal() |
||
) |
|
inline |
int TVecPool< TVal >::AddEmptyV | ( | const int & | ValVLen | ) |
|
inline |
void TVecPool< TVal >::CompactPool | ( | const TVal & | DelVal | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
TVecPool< TVal > & TVecPool< TVal >::operator= | ( | const TVecPool< TVal > & | Pool | ) |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 2011 of file ds.h.
|
inline |
Definition at line 2159 of file ds.h.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |