SNAP Library, User Reference  2012-10-02 12:56:23
SNAP, a general purpose network analysis and graph mining library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
TVecPool< TVal > Class Template Reference

List of all members.

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
TVecPooloperator= (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)

Friends

class TPt< TVecPool< TVal > >

template<class TVal>
class TVecPool< TVal >


Member Typedef Documentation

template<class TVal>
typedef TPt<TVecPool<TVal> > TVecPool< TVal >::PVecPool
template<class TVal>
typedef TVec<TVal> TVecPool< TVal >::TValV

Constructor & Destructor Documentation

template<class TVal>
TVecPool< TVal >::TVecPool ( const ::TSize ExpectVals = 0,
const ::TSize _GrowBy = 1000000,
const bool &  _FastCopy = false,
const TVal &  _EmptyVal = TVal() 
)
template<class TVal>
TVecPool< TVal >::TVecPool ( const TVecPool< TVal > &  Pool)
template<class TVal>
TVecPool< TVal >::TVecPool ( TSIn SIn)
template<class TVal>
TVecPool< TVal >::~TVecPool ( ) [inline]

Member Function Documentation

template<class TVal >
int TVecPool< TVal >::AddEmptyV ( const int &  ValVLen)
template<class TVal >
int TVecPool< TVal >::AddV ( const TValV ValV)
template<class TVal>
void TVecPool< TVal >::Clr ( bool  DoDel = true) [inline]
template<class TVal>
void TVecPool< TVal >::CompactPool ( const TVal &  DelVal)
template<class TVal>
const TVal& TVecPool< TVal >::GetEmptyVal ( ) const [inline]
template<class TVal>
::TSize TVecPool< TVal >::GetMemUsed ( ) const [inline]
template<class TVal>
void TVecPool< TVal >::GetV ( const int &  VId,
TValV ValV 
) const [inline]
template<class TVal>
::TSize TVecPool< TVal >::GetVals ( ) const [inline]
template<class TVal>
TVal* TVecPool< TVal >::GetValVPt ( const int &  VId) const [inline]
template<class TVal>
::TSize TVecPool< TVal >::GetVecs ( ) const [inline]
template<class TVal>
uint TVecPool< TVal >::GetVLen ( const int &  VId) const [inline]
template<class TVal>
bool TVecPool< TVal >::IsVId ( const int &  VId) const [inline]
template<class TVal>
static PVecPool TVecPool< TVal >::Load ( TSIn SIn) [inline, static]
template<class TVal>
static PVecPool TVecPool< TVal >::Load ( const TStr FNm) [inline, static]
template<class TVal>
static PVecPool TVecPool< TVal >::New ( const ::TSize ExpectVals = 0,
const ::TSize GrowBy = 1000000,
const bool &  FastCopy = false 
) [inline, static]
template<class TVal >
TVecPool< TVal > & TVecPool< TVal >::operator= ( const TVecPool< TVal > &  Pool)
template<class TVal>
void TVecPool< TVal >::PutAll ( const TVal &  Val) [inline]
template<class TVal>
void TVecPool< TVal >::PutV ( const int &  VId,
const TValV ValV 
) [inline]
template<class TVal>
void TVecPool< TVal >::Reserve ( const ::TSize MxVals) [inline]
template<class TVal>
::TSize TVecPool< TVal >::Reserved ( ) const [inline]
template<class TVal >
void TVecPool< TVal >::Save ( TSOut SOut) const
template<class TVal>
void TVecPool< TVal >::SetEmptyVal ( const TVal &  _EmptyVal) [inline]
template<class TVal >
void TVecPool< TVal >::ShuffleAll ( TRnd Rnd = TInt::Rnd)

Friends And Related Function Documentation

template<class TVal>
friend class TPt< TVecPool< TVal > > [friend]

The documentation for this class was generated from the following file: