arbeit
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

gutz::arrayOwn4< T > Class Template Reference

#include <arrayOwn4.h>

Inheritance diagram for gutz::arrayOwn4< T >:

gutz::arrayWrap4< T > gutz::arrayBase< T > List of all members.

template<class T>
class gutz::arrayOwn4< T >


Public Member Functions

 arrayOwn4 ()
 arrayOwn4 (int d0, int d1, int d2, int d3, T v)
 arrayOwn4 (int d0, int d1, int d2, int d3, const T *v)
 arrayOwn4 (const arrayWrap4< T > &a)
 arrayOwn4 (const arrayOwn4< T > &a)
arrayOwn4< T > & operator= (const arrayOwn4< T > &a)
 ~arrayOwn4 ()
void transfer (int d0, int d1, int d3, int d4, T *v, bool killWithDelete)
arrayWrap3< T > & operator[] (int i)
const arrayWrap3< T > & operator[] (int i) const
T & operator() (int i, int j, int k, int m)
const T & operator() (int i, int j, int k, int m) const
T & operator() (int i, int j=0, int k=0, int m=0, int n=0)
const T & operator() (int i, int j=0, int k=0, int m=0, int n=0) const
int dim () const
int dim (const int axis) const
int size () const
int empty () const
T * data ()
const T * data () const
bool killWithDelete () const
void reshape (int d0, int d1=0, int d2=0, int d3=0, int d4=0)

Protected Member Functions

const int address (int i, int j, int k, int m, int n) const
 < address of array element

void set (int dim, int *aSize, T *a)
 # of axies, # of elements per axis, data pointer

void initValOwn (T val)
void initDataOwn (const T *data)
void copyDataOwn (const T *data)
void allocDataOwn ()
void killData ()

Protected Attributes

arrayWrap3< T > mSlice
T * mData
 data pointer

int mAxisDim [MAX_ARRAY_DIM_GUTZ]
 # of elements allong each axis

int mAxisStride [MAX_ARRAY_DIM_GUTZ]
 # of elements to jump for the next entry

int mSize
 total # of elements in array

int mDim
 # of axes in array

bool mKillWithDelete
 Kill data with delete or free?


Friends

class arrayWrap5< T >

Constructor & Destructor Documentation

template<class T>
gutz::arrayOwn4< T >::arrayOwn4  ) 
 

Definition at line 72 of file arrayOwn4.h.

template<class T>
gutz::arrayOwn4< T >::arrayOwn4 int  d0,
int  d1,
int  d2,
int  d3,
v
 

Definition at line 77 of file arrayOwn4.h.

template<class T>
gutz::arrayOwn4< T >::arrayOwn4 int  d0,
int  d1,
int  d2,
int  d3,
const T *  v
 

Definition at line 84 of file arrayOwn4.h.

References gutz::arrayBase< T >::data().

template<class T>
gutz::arrayOwn4< T >::arrayOwn4 const arrayWrap4< T > &  a  ) 
 

Definition at line 91 of file arrayOwn4.h.

template<class T>
gutz::arrayOwn4< T >::arrayOwn4 const arrayOwn4< T > &  a  ) 
 

Definition at line 98 of file arrayOwn4.h.

template<class T>
gutz::arrayOwn4< T >::~arrayOwn4  )  [inline]
 

Definition at line 53 of file arrayOwn4.h.

References gutz::arrayBase< T >::killData().


Member Function Documentation

template<class T>
const int gutz::arrayBase< T >::address int  i,
int  j,
int  k,
int  m,
int  n
const [inline, protected, inherited]
 

< address of array element

Definition at line 285 of file arrayBase.h.

References n.

Referenced by gutz::arrayWrap5< T >::operator()(), gutz::arrayWrap4< T >::operator()(), gutz::arrayWrap3< T >::operator()(), gutz::arrayWrap2< T >::operator()(), and gutz::arrayBase< T >::operator()().

template<class T>
void gutz::arrayBase< T >::allocDataOwn  )  [inline, protected, inherited]
 

Definition at line 391 of file arrayBase.h.

References gutz::arrayBase< T >::mData, and gutz::arrayBase< T >::mSize.

Referenced by gutz::arrayBase< T >::initDataOwn().

template<class T>
void gutz::arrayBase< T >::copyDataOwn const T *  data  )  [inline, protected, inherited]
 

Definition at line 401 of file arrayBase.h.

References data, gutz::arrayBase< T >::mData, and gutz::arrayBase< T >::mSize.

Referenced by gutz::arrayBase< T >::initDataOwn().

template<class T>
const T* gutz::arrayBase< T >::data  )  const [inline, inherited]
 

Definition at line 94 of file arrayBase.h.

template<class T>
T* gutz::arrayBase< T >::data  )  [inline, inherited]
 

Definition at line 93 of file arrayBase.h.

Referenced by gutz::arrayOwn2< T >::arrayOwn2(), gutz::arrayOwn3< T >::arrayOwn3(), gutz::arrayOwn4< T >::arrayOwn4(), and gutz::arrayOwn5< T >::arrayOwn5().

template<class T>
int gutz::arrayBase< T >::dim const int  axis  )  const [inline, inherited]
 

Definition at line 84 of file arrayBase.h.

template<class T>
int gutz::arrayBase< T >::dim  )  const [inline, inherited]
 

Definition at line 82 of file arrayBase.h.

Referenced by gutz::arrayOwn5< T >::operator=(), gutz::arrayOwn4< T >::operator=(), gutz::arrayOwn3< T >::operator=(), gutz::arrayOwn2< T >::operator=(), and gutz::arrayOwn1< T >::operator=().

template<class T>
int gutz::arrayBase< T >::empty  )  const [inline, inherited]
 

Definition at line 90 of file arrayBase.h.

template<class T>
void gutz::arrayBase< T >::initDataOwn const T *  data  )  [inline, protected, inherited]
 

Definition at line 372 of file arrayBase.h.

References gutz::arrayBase< T >::allocDataOwn(), gutz::arrayBase< T >::copyDataOwn(), and data.

template<class T>
void gutz::arrayBase< T >::initValOwn val  )  [inline, protected, inherited]
 

Definition at line 358 of file arrayBase.h.

References gutz::arrayBase< T >::mData, and gutz::arrayBase< T >::mSize.

template<class T>
void gutz::arrayBase< T >::killData  )  [inline, protected, inherited]
 

Definition at line 410 of file arrayBase.h.

References gutz::arrayBase< T >::mData, and gutz::arrayBase< T >::mKillWithDelete.

Referenced by gutz::arrayOwn5< T >::operator=(), gutz::arrayOwn4< T >::operator=(), gutz::arrayOwn3< T >::operator=(), gutz::arrayOwn2< T >::operator=(), gutz::arrayOwn1< T >::operator=(), gutz::arrayOwn5< T >::transfer(), gutz::arrayOwn4< T >::transfer(), gutz::arrayOwn3< T >::transfer(), gutz::arrayOwn2< T >::transfer(), gutz::arrayOwn1< T >::transfer(), gutz::arrayOwn1< V_TYPE >::~arrayOwn1(), gutz::arrayOwn2< T >::~arrayOwn2(), gutz::arrayOwn3< T >::~arrayOwn3(), gutz::arrayOwn4< T >::~arrayOwn4(), and gutz::arrayOwn5< T >::~arrayOwn5().

template<class T>
bool gutz::arrayBase< T >::killWithDelete  )  const [inline, inherited]
 

Definition at line 98 of file arrayBase.h.

template<class T>
const T & gutz::arrayBase< T >::operator() int  i,
int  j = 0,
int  k = 0,
int  m = 0,
int  n = 0
const [inline, inherited]
 

Reimplemented in gutz::arrayWrap5< T >.

Definition at line 279 of file arrayBase.h.

References gutz::arrayBase< T >::address(), gutz::arrayBase< T >::mData, and n.

template<class T>
T & gutz::arrayBase< T >::operator() int  i,
int  j = 0,
int  k = 0,
int  m = 0,
int  n = 0
[inline, inherited]
 

Reimplemented in gutz::arrayWrap5< T >.

Definition at line 273 of file arrayBase.h.

References gutz::arrayBase< T >::address(), gutz::arrayBase< T >::mData, and n.

template<class T>
const T & gutz::arrayWrap4< T >::operator() int  i,
int  j,
int  k,
int  m
const [inline, inherited]
 

Definition at line 146 of file arrayWrap4.h.

References gutz::arrayBase< T >::address(), and gutz::arrayBase< T >::mData.

template<class T>
T & gutz::arrayWrap4< T >::operator() int  i,
int  j,
int  k,
int  m
[inline, inherited]
 

Definition at line 140 of file arrayWrap4.h.

References gutz::arrayBase< T >::address(), and gutz::arrayBase< T >::mData.

template<class T>
arrayOwn4< T > & gutz::arrayOwn4< T >::operator= const arrayOwn4< T > &  a  ) 
 

Definition at line 106 of file arrayOwn4.h.

References gutz::arrayBase< T >::dim(), gutz::arrayBase< T >::killData(), gutz::arrayBase< T >::mData, gutz::arrayBase< T >::mSize, and gutz::arrayBase< T >::size().

template<class T>
const arrayWrap3< T > & gutz::arrayWrap4< T >::operator[] int  i  )  const [inline, inherited]
 

Definition at line 133 of file arrayWrap4.h.

References gutz::arrayWrap4< T >::mSlice.

template<class T>
arrayWrap3< T > & gutz::arrayWrap4< T >::operator[] int  i  )  [inline, inherited]
 

Definition at line 126 of file arrayWrap4.h.

References gutz::arrayWrap4< T >::mSlice.

template<class T>
void gutz::arrayBase< T >::reshape int  d0,
int  d1 = 0,
int  d2 = 0,
int  d3 = 0,
int  d4 = 0
[inline, inherited]
 

Definition at line 331 of file arrayBase.h.

References gutz::arrayBase< T >::mAxisDim, gutz::arrayBase< T >::mAxisStride, and gutz::arrayBase< T >::mDim.

template<class T>
void gutz::arrayBase< T >::set int  dim,
int *  aSize,
T *  a
[inline, protected, inherited]
 

# of axies, # of elements per axis, data pointer

Definition at line 293 of file arrayBase.h.

References MAX_ARRAY_DIM_GUTZ, gutz::arrayBase< T >::mAxisDim, gutz::arrayBase< T >::mAxisStride, gutz::arrayBase< T >::mData, gutz::arrayBase< T >::mDim, gutz::arrayBase< T >::mKillWithDelete, gutz::arrayBase< T >::mSize, s, size, and gutz::arrayBase< T >::size().

Referenced by gutz::arrayBase< T >::arrayBase(), gutz::arrayBase< T >::operator=(), gutz::arrayOwn5< T >::transfer(), gutz::arrayOwn4< T >::transfer(), gutz::arrayOwn3< T >::transfer(), gutz::arrayOwn2< T >::transfer(), and gutz::arrayOwn1< T >::transfer().

template<class T>
int gutz::arrayBase< T >::size  )  const [inline, inherited]
 

Definition at line 87 of file arrayBase.h.

Referenced by gutz::arrayOwn5< T >::operator=(), gutz::arrayOwn4< T >::operator=(), gutz::arrayOwn3< T >::operator=(), gutz::arrayOwn2< T >::operator=(), gutz::arrayOwn1< T >::operator=(), and gutz::arrayBase< T >::set().

template<class T>
void gutz::arrayOwn4< T >::transfer int  d0,
int  d1,
int  d3,
int  d4,
T *  v,
bool  killWithDelete
 

Definition at line 126 of file arrayOwn4.h.

References gutz::arrayBase< T >::killData(), gutz::arrayBase< T >::mKillWithDelete, gutz::arrayWrap4< T >::mSlice, gutz::arrayBase< T >::set(), and v.


Friends And Related Function Documentation

template<class T>
friend class arrayWrap5< T > [friend, inherited]
 

Definition at line 56 of file arrayWrap4.h.


Member Data Documentation

template<class T>
int gutz::arrayBase< T >::mAxisDim[MAX_ARRAY_DIM_GUTZ] [protected, inherited]
 

# of elements allong each axis

Definition at line 107 of file arrayBase.h.

Referenced by gutz::arrayBase< T >::arrayBase(), gutz::arrayBase< V_TYPE >::dim(), gutz::arrayBase< T >::operator=(), gutz::arrayBase< T >::reshape(), and gutz::arrayBase< T >::set().

template<class T>
int gutz::arrayBase< T >::mAxisStride[MAX_ARRAY_DIM_GUTZ] [protected, inherited]
 

# of elements to jump for the next entry

Definition at line 108 of file arrayBase.h.

Referenced by gutz::arrayBase< T >::reshape(), and gutz::arrayBase< T >::set().

template<class T>
T* gutz::arrayBase< T >::mData [protected, inherited]
 

data pointer

Definition at line 105 of file arrayBase.h.

Referenced by gutz::arrayBase< T >::allocDataOwn(), gutz::arrayBase< T >::arrayBase(), gutz::arrayBase< T >::copyDataOwn(), gutz::arrayBase< V_TYPE >::data(), gutz::arrayBase< V_TYPE >::empty(), gutz::arrayBase< T >::initValOwn(), gutz::arrayBase< T >::killData(), gutz::arrayWrap5< T >::operator()(), gutz::arrayWrap4< T >::operator()(), gutz::arrayWrap3< T >::operator()(), gutz::arrayWrap2< T >::operator()(), gutz::arrayWrap1< V_TYPE >::operator()(), gutz::arrayBase< T >::operator()(), gutz::arrayOwn5< T >::operator=(), gutz::arrayOwn4< T >::operator=(), gutz::arrayOwn3< T >::operator=(), gutz::arrayOwn2< T >::operator=(), gutz::arrayOwn1< T >::operator=(), gutz::arrayBase< T >::operator=(), gutz::arrayWrap1< V_TYPE >::operator[](), and gutz::arrayBase< T >::set().

template<class T>
int gutz::arrayBase< T >::mDim [protected, inherited]
 

# of axes in array

Definition at line 110 of file arrayBase.h.

Referenced by gutz::arrayBase< T >::arrayBase(), gutz::arrayBase< V_TYPE >::dim(), gutz::arrayBase< T >::operator=(), gutz::arrayBase< T >::reshape(), and gutz::arrayBase< T >::set().

template<class T>
bool gutz::arrayBase< T >::mKillWithDelete [protected, inherited]
 

Kill data with delete or free?

Definition at line 111 of file arrayBase.h.

Referenced by gutz::arrayBase< T >::killData(), gutz::arrayBase< V_TYPE >::killWithDelete(), gutz::arrayBase< T >::set(), gutz::arrayOwn5< T >::transfer(), gutz::arrayOwn4< T >::transfer(), gutz::arrayOwn3< T >::transfer(), gutz::arrayOwn2< T >::transfer(), and gutz::arrayOwn1< T >::transfer().

template<class T>
int gutz::arrayBase< T >::mSize [protected, inherited]
 

total # of elements in array

Definition at line 109 of file arrayBase.h.

Referenced by gutz::arrayBase< T >::allocDataOwn(), gutz::arrayBase< T >::copyDataOwn(), gutz::arrayBase< V_TYPE >::empty(), gutz::arrayBase< T >::initValOwn(), gutz::arrayWrap1< V_TYPE >::operator()(), gutz::arrayOwn5< T >::operator=(), gutz::arrayOwn4< T >::operator=(), gutz::arrayOwn3< T >::operator=(), gutz::arrayOwn2< T >::operator=(), gutz::arrayOwn1< T >::operator=(), gutz::arrayWrap1< V_TYPE >::operator[](), gutz::arrayBase< T >::set(), and gutz::arrayBase< V_TYPE >::size().

template<class T>
arrayWrap3<T> gutz::arrayWrap4< T >::mSlice [mutable, protected, inherited]
 

Definition at line 78 of file arrayWrap4.h.

Referenced by gutz::arrayWrap4< T >::operator=(), gutz::arrayWrap4< T >::operator[](), and gutz::arrayOwn4< T >::transfer().


The documentation for this class was generated from the following file:
Send questions, comments, and bug reports to:
jmk