SNAP Library 2.2, Developer Reference  2014-03-11 19:15:55
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
PVec< TVal > Class Template Reference

#include <ds.h>

Collaboration diagram for PVec< TVal >:

List of all members.

Public Member Functions

 PVec ()
 PVec (const PVec< TVal > &Vec)
 PVec (const int &MxVals, const int &Vals)
 PVec (const TVec< TVal > &_V)
 PVec (TSIn &SIn)
void Save (TSOut &SOut) const
PVec< TVal > & operator= (const PVec< TVal > &Vec)
bool operator== (const PVec< TVal > &Vec) const
bool operator< (const PVec< TVal > &Vec) const
TVal & operator[] (const int &ValN) const
bool Empty () const
int Len () const
TVal GetVal (const int &ValN) const
int Add (const TVal &Val)

Static Public Member Functions

static TPt< PVec< TVal > > New ()
static TPt< PVec< TVal > > New (const int &MxVals, const int &Vals)
static TPt< PVec< TVal > > New (const TVec< TVal > &V)
static TPt< PVec< TVal > > Load (TSIn &SIn)

Public Attributes

TVec< TVal > V

Private Attributes

TCRef CRef

Friends

class TPt< PVec< TVal > >

Detailed Description

template<class TVal>
class PVec< TVal >

Definition at line 3053 of file ds.h.


Constructor & Destructor Documentation

template<class TVal>
PVec< TVal >::PVec ( ) [inline]

Definition at line 3059 of file ds.h.

: V(){}
template<class TVal>
PVec< TVal >::PVec ( const PVec< TVal > &  Vec) [inline]

Definition at line 3060 of file ds.h.

: V(Vec.V){}
template<class TVal>
PVec< TVal >::PVec ( const int &  MxVals,
const int &  Vals 
) [inline]

Definition at line 3063 of file ds.h.

: V(MxVals, Vals){}
template<class TVal>
PVec< TVal >::PVec ( const TVec< TVal > &  _V) [inline]

Definition at line 3066 of file ds.h.

: V(_V){}
template<class TVal>
PVec< TVal >::PVec ( TSIn SIn) [inline, explicit]

Definition at line 3069 of file ds.h.

: V(SIn){}

Member Function Documentation

template<class TVal>
int PVec< TVal >::Add ( const TVal &  Val) [inline]

Definition at line 3083 of file ds.h.

References TVec< TVal, TSizeTy >::Add(), and PVec< TVal >::V.

{return V.Add(Val);}

Here is the call graph for this function:

template<class TVal>
bool PVec< TVal >::Empty ( ) const [inline]

Definition at line 3079 of file ds.h.

References TVec< TVal, TSizeTy >::Empty(), and PVec< TVal >::V.

{return V.Empty();}

Here is the call graph for this function:

template<class TVal>
TVal PVec< TVal >::GetVal ( const int &  ValN) const [inline]

Definition at line 3081 of file ds.h.

References PVec< TVal >::V.

{return V[ValN];}
template<class TVal>
int PVec< TVal >::Len ( ) const [inline]

Definition at line 3080 of file ds.h.

References TVec< TVal, TSizeTy >::Len(), and PVec< TVal >::V.

{return V.Len();}

Here is the call graph for this function:

template<class TVal>
static TPt<PVec<TVal> > PVec< TVal >::Load ( TSIn SIn) [inline, static]

Definition at line 3070 of file ds.h.

{return new PVec<TVal>(SIn);}
template<class TVal>
static TPt<PVec<TVal> > PVec< TVal >::New ( ) [inline, static]

Definition at line 3061 of file ds.h.

Referenced by TSs::LoadTxt().

                               {
    return new PVec<TVal>();}

Here is the caller graph for this function:

template<class TVal>
static TPt<PVec<TVal> > PVec< TVal >::New ( const int &  MxVals,
const int &  Vals 
) [inline, static]

Definition at line 3064 of file ds.h.

                                                                 {
    return new PVec<TVal>(MxVals, Vals);}
template<class TVal>
static TPt<PVec<TVal> > PVec< TVal >::New ( const TVec< TVal > &  V) [inline, static]

Definition at line 3067 of file ds.h.

References PVec< TVal >::V.

                                                  {
    return new PVec<TVal>(V);}
template<class TVal>
bool PVec< TVal >::operator< ( const PVec< TVal > &  Vec) const [inline]

Definition at line 3076 of file ds.h.

References PVec< TVal >::V.

{return V<Vec.V;}
template<class TVal>
PVec<TVal>& PVec< TVal >::operator= ( const PVec< TVal > &  Vec) [inline]

Definition at line 3073 of file ds.h.

References PVec< TVal >::V.

                                              {
    if (this!=&Vec){V=Vec.V;} return *this;}
template<class TVal>
bool PVec< TVal >::operator== ( const PVec< TVal > &  Vec) const [inline]

Definition at line 3075 of file ds.h.

References PVec< TVal >::V.

{return V==Vec.V;}
template<class TVal>
TVal& PVec< TVal >::operator[] ( const int &  ValN) const [inline]

Definition at line 3077 of file ds.h.

References PVec< TVal >::V.

{return V[ValN];}
template<class TVal>
void PVec< TVal >::Save ( TSOut SOut) const [inline]

Definition at line 3071 of file ds.h.

References TVec< TVal, TSizeTy >::Save(), and PVec< TVal >::V.

{V.Save(SOut);}

Here is the call graph for this function:


Friends And Related Function Documentation

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

Definition at line 3085 of file ds.h.


Member Data Documentation

template<class TVal>
TCRef PVec< TVal >::CRef [private]

Definition at line 3055 of file ds.h.


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