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
|
#include <ds.h>
Public Member Functions | |
TVVVec () | |
TVVVec (const TVVVec &Vec) | |
TVVVec (const int &_XDim, const int &_YDim, const int &_ZDim) | |
TVVVec (TSIn &SIn) | |
void | Save (TSOut &SOut) const |
TVVVec< TVal > & | operator= (const TVVVec< TVal > &Vec) |
bool | operator== (const TVVVec &Vec) const |
bool | Empty () const |
void | Clr () |
void | Gen (const int &_XDim, const int &_YDim, const int &_ZDim) |
TVal & | At (const int &X, const int &Y, const int &Z) |
const TVal & | At (const int &X, const int &Y, const int &Z) const |
TVal & | operator() (const int &X, const int &Y, const int &Z) |
const TVal & | operator() (const int &X, const int &Y, const int &Z) const |
int | GetXDim () const |
int | GetYDim () const |
int | GetZDim () const |
Private Attributes | |
TInt | XDim |
TInt | YDim |
TInt | ZDim |
TVec< TVal > | ValV |
TVal& TVVVec< TVal >::At | ( | const int & | X, |
const int & | Y, | ||
const int & | Z | ||
) | [inline] |
Definition at line 3315 of file ds.h.
References Assert, TVVVec< TVal >::ValV, TVVVec< TVal >::XDim, TVVVec< TVal >::YDim, and TVVVec< TVal >::ZDim.
Referenced by TVVVec< TVal >::operator()().
{ Assert((0<=X)&&(X<int(XDim))&&(0<=Y)&&(Y<int(YDim))&&(0<=Z)&&(Z<int(ZDim))); return ValV[X*YDim*ZDim+Y*ZDim+Z];}
const TVal& TVVVec< TVal >::At | ( | const int & | X, |
const int & | Y, | ||
const int & | Z | ||
) | const [inline] |
Definition at line 3318 of file ds.h.
References Assert, TVVVec< TVal >::ValV, TVVVec< TVal >::XDim, TVVVec< TVal >::YDim, and TVVVec< TVal >::ZDim.
Definition at line 3311 of file ds.h.
References TVec< TVal, TSizeTy >::Clr(), TVVVec< TVal >::ValV, TVVVec< TVal >::XDim, TVVVec< TVal >::YDim, and TVVVec< TVal >::ZDim.
Definition at line 3310 of file ds.h.
References TVec< TVal, TSizeTy >::Len(), and TVVVec< TVal >::ValV.
void TVVVec< TVal >::Gen | ( | const int & | _XDim, |
const int & | _YDim, | ||
const int & | _ZDim | ||
) | [inline] |
Definition at line 3312 of file ds.h.
References Assert, TVec< TVal, TSizeTy >::Gen(), TVVVec< TVal >::ValV, TVVVec< TVal >::XDim, TVVVec< TVal >::YDim, and TVVVec< TVal >::ZDim.
Referenced by TVVVec< TVal >::TVVVec().
{ Assert((_XDim>=0)&&(_YDim>=0)&&(_ZDim>=0)); XDim=_XDim; YDim=_YDim; ZDim=_ZDim; ValV.Gen(XDim*YDim*ZDim);}
TVal& TVVVec< TVal >::operator() | ( | const int & | X, |
const int & | Y, | ||
const int & | Z | ||
) | [inline] |
Definition at line 3321 of file ds.h.
References TVVVec< TVal >::At().
{ return At(X, Y, Z);}
const TVal& TVVVec< TVal >::operator() | ( | const int & | X, |
const int & | Y, | ||
const int & | Z | ||
) | const [inline] |
Definition at line 3323 of file ds.h.
References TVVVec< TVal >::At().
{ return At(X, Y, Z);}
Definition at line 3302 of file ds.h.
References TVVVec< TVal >::ValV, TVVVec< TVal >::XDim, TVVVec< TVal >::YDim, and TVVVec< TVal >::ZDim.
Definition at line 3306 of file ds.h.
References TVVVec< TVal >::ValV, TVVVec< TVal >::XDim, TVVVec< TVal >::YDim, and TVVVec< TVal >::ZDim.
Definition at line 3299 of file ds.h.
References TVec< TVal, TSizeTy >::Save(), TInt::Save(), TVVVec< TVal >::ValV, TVVVec< TVal >::XDim, TVVVec< TVal >::YDim, and TVVVec< TVal >::ZDim.
Definition at line 3290 of file ds.h.
Referenced by TVVVec< TVal >::At(), TVVVec< TVal >::Clr(), TVVVec< TVal >::Empty(), TVVVec< TVal >::Gen(), TVVVec< TVal >::operator=(), TVVVec< TVal >::operator==(), and TVVVec< TVal >::Save().
Definition at line 3289 of file ds.h.
Referenced by TVVVec< TVal >::At(), TVVVec< TVal >::Clr(), TVVVec< TVal >::Gen(), TVVVec< TVal >::GetXDim(), TVVVec< TVal >::operator=(), TVVVec< TVal >::operator==(), and TVVVec< TVal >::Save().
Definition at line 3289 of file ds.h.
Referenced by TVVVec< TVal >::At(), TVVVec< TVal >::Clr(), TVVVec< TVal >::Gen(), TVVVec< TVal >::GetYDim(), TVVVec< TVal >::operator=(), TVVVec< TVal >::operator==(), and TVVVec< TVal >::Save().
Definition at line 3289 of file ds.h.
Referenced by TVVVec< TVal >::At(), TVVVec< TVal >::Clr(), TVVVec< TVal >::Gen(), TVVVec< TVal >::GetZDim(), TVVVec< TVal >::operator=(), TVVVec< TVal >::operator==(), and TVVVec< TVal >::Save().