SNAP Library , Developer Reference
2013-01-07 14:03:36
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 1936 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 1939 of file ds.h.
References Assert, TVVVec< TVal >::ValV, TVVVec< TVal >::XDim, TVVVec< TVal >::YDim, and TVVVec< TVal >::ZDim.
Definition at line 1932 of file ds.h.
References TVVVec< TVal >::ValV, TVVVec< TVal >::XDim, TVVVec< TVal >::YDim, and TVVVec< TVal >::ZDim.
void TVVVec< TVal >::Gen | ( | const int & | _XDim, |
const int & | _YDim, | ||
const int & | _ZDim | ||
) | [inline] |
Definition at line 1933 of file ds.h.
References Assert, 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 1942 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 1944 of file ds.h.
References TVVVec< TVal >::At().
{ return At(X, Y, Z);}
Definition at line 1923 of file ds.h.
References TVVVec< TVal >::ValV, TVVVec< TVal >::XDim, TVVVec< TVal >::YDim, and TVVVec< TVal >::ZDim.
Definition at line 1927 of file ds.h.
References TVVVec< TVal >::ValV, TVVVec< TVal >::XDim, TVVVec< TVal >::YDim, and TVVVec< TVal >::ZDim.
Definition at line 1920 of file ds.h.
References TInt::Save(), TVVVec< TVal >::ValV, TVVVec< TVal >::XDim, TVVVec< TVal >::YDim, and TVVVec< TVal >::ZDim.
Definition at line 1911 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 1910 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 1910 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 1910 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().