SNAP Library 4.0, Developer Reference  2017-07-27 13:18:06
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
PVec< TVal > Class Template Reference

#include <ds.h>

Collaboration diagram for PVec< TVal >:

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 2175 of file ds.h.

Constructor & Destructor Documentation

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

Definition at line 2181 of file ds.h.

2181 : V(){}
TVec< TVal > V
Definition: ds.h:2179
template<class TVal>
PVec< TVal >::PVec ( const PVec< TVal > &  Vec)
inline

Definition at line 2182 of file ds.h.

2182 : V(Vec.V){}
TVec< TVal > V
Definition: ds.h:2179
template<class TVal>
PVec< TVal >::PVec ( const int &  MxVals,
const int &  Vals 
)
inline

Definition at line 2185 of file ds.h.

2185 : V(MxVals, Vals){}
TVec< TVal > V
Definition: ds.h:2179
template<class TVal>
PVec< TVal >::PVec ( const TVec< TVal > &  _V)
inline

Definition at line 2188 of file ds.h.

2188 : V(_V){}
TVec< TVal > V
Definition: ds.h:2179
template<class TVal>
PVec< TVal >::PVec ( TSIn SIn)
inlineexplicit

Definition at line 2191 of file ds.h.

2191 : V(SIn){}
TVec< TVal > V
Definition: ds.h:2179

Member Function Documentation

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

Definition at line 2205 of file ds.h.

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

2205 {return V.Add(Val);}
TVec< TVal > V
Definition: ds.h:2179
TSizeTy Add()
Adds a new element at the end of the vector, after its current last element.
Definition: ds.h:602

Here is the call graph for this function:

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

Definition at line 2201 of file ds.h.

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

2201 {return V.Empty();}
TVec< TVal > V
Definition: ds.h:2179
bool Empty() const
Tests whether the vector is empty.
Definition: ds.h:570

Here is the call graph for this function:

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

Definition at line 2203 of file ds.h.

References PVec< TVal >::V.

2203 {return V[ValN];}
TVec< TVal > V
Definition: ds.h:2179
template<class TVal>
int PVec< TVal >::Len ( ) const
inline

Definition at line 2202 of file ds.h.

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

2202 {return V.Len();}
TVec< TVal > V
Definition: ds.h:2179
TSizeTy Len() const
Returns the number of elements in the vector.
Definition: ds.h:575

Here is the call graph for this function:

template<class TVal>
static TPt<PVec<TVal> > PVec< TVal >::Load ( TSIn SIn)
inlinestatic

Definition at line 2192 of file ds.h.

2192 {return new PVec<TVal>(SIn);}
Definition: ds.h:2175
template<class TVal>
static TPt<PVec<TVal> > PVec< TVal >::New ( )
inlinestatic

Definition at line 2183 of file ds.h.

Referenced by TSs::LoadTxt().

2183  {
2184  return new PVec<TVal>();}
Definition: ds.h:2175

Here is the caller graph for this function:

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

Definition at line 2186 of file ds.h.

2186  {
2187  return new PVec<TVal>(MxVals, Vals);}
Definition: ds.h:2175
template<class TVal>
static TPt<PVec<TVal> > PVec< TVal >::New ( const TVec< TVal > &  V)
inlinestatic

Definition at line 2189 of file ds.h.

References PVec< TVal >::V.

2189  {
2190  return new PVec<TVal>(V);}
TVec< TVal > V
Definition: ds.h:2179
Definition: ds.h:2175
template<class TVal>
bool PVec< TVal >::operator< ( const PVec< TVal > &  Vec) const
inline

Definition at line 2198 of file ds.h.

References PVec< TVal >::V.

2198 {return V<Vec.V;}
TVec< TVal > V
Definition: ds.h:2179
template<class TVal>
PVec<TVal>& PVec< TVal >::operator= ( const PVec< TVal > &  Vec)
inline

Definition at line 2195 of file ds.h.

References PVec< TVal >::V.

2195  {
2196  if (this!=&Vec){V=Vec.V;} return *this;}
TVec< TVal > V
Definition: ds.h:2179
template<class TVal>
bool PVec< TVal >::operator== ( const PVec< TVal > &  Vec) const
inline

Definition at line 2197 of file ds.h.

References PVec< TVal >::V.

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

Definition at line 2199 of file ds.h.

References PVec< TVal >::V.

2199 {return V[ValN];}
TVec< TVal > V
Definition: ds.h:2179
template<class TVal>
void PVec< TVal >::Save ( TSOut SOut) const
inline

Definition at line 2193 of file ds.h.

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

2193 {V.Save(SOut);}
TVec< TVal > V
Definition: ds.h:2179
void Save(TSOut &SOut) const
Definition: ds.h:954

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 2207 of file ds.h.

Member Data Documentation

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

Definition at line 2177 of file ds.h.


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