TNT::Fortran_Array2D< T > Class Template Reference

#include <tnt_fortran_array2d.h>

List of all members.

Public Types

typedef T value_type

Public Member Functions

 Fortran_Array2D ()
 Fortran_Array2D (int m, int n)
 Fortran_Array2D (int m, int n, T *a)
 Fortran_Array2D (int m, int n, const T &a)
 Fortran_Array2D (const Fortran_Array2D &A)
Fortran_Array2Doperator= (const T &a)
Fortran_Array2Doperator= (const Fortran_Array2D &A)
Fortran_Array2Dref (const Fortran_Array2D &A)
Fortran_Array2D copy () const
Fortran_Array2Dinject (const Fortran_Array2D &A)
T & operator() (int i, int j)
const T & operator() (int i, int j) const
int dim1 () const
int dim2 () const
 ~Fortran_Array2D ()
int ref_count () const

Private Member Functions

void initialize_ (int n)
void copy_ (T *p, const T *q, int len)
void set_ (T *begin, T *end, const T &val)

Private Attributes

i_refvec< T > v_
int m_
int n_
T * data_


Detailed Description

template<class T>
class TNT::Fortran_Array2D< T >

Definition at line 38 of file tnt_fortran_array2d.h.


Member Typedef Documentation

template<class T>
typedef T TNT::Fortran_Array2D< T >::value_type

Definition at line 55 of file tnt_fortran_array2d.h.


Constructor & Destructor Documentation

template<class T >
TNT::Fortran_Array2D< T >::Fortran_Array2D (  )  [inline]

Definition at line 80 of file tnt_fortran_array2d.h.

template<class T >
TNT::Fortran_Array2D< T >::Fortran_Array2D ( int  m,
int  n 
) [inline]

Definition at line 90 of file tnt_fortran_array2d.h.

template<class T >
TNT::Fortran_Array2D< T >::Fortran_Array2D ( int  m,
int  n,
T *  a 
) [inline]

Definition at line 102 of file tnt_fortran_array2d.h.

template<class T >
TNT::Fortran_Array2D< T >::Fortran_Array2D ( int  m,
int  n,
const T &  a 
) [inline]

Definition at line 94 of file tnt_fortran_array2d.h.

template<class T >
TNT::Fortran_Array2D< T >::Fortran_Array2D ( const Fortran_Array2D< T > &  A  )  [inline]

Definition at line 84 of file tnt_fortran_array2d.h.

template<class T >
TNT::Fortran_Array2D< T >::~Fortran_Array2D (  )  [inline]

Definition at line 193 of file tnt_fortran_array2d.h.


Member Function Documentation

template<class T >
Fortran_Array2D< T > TNT::Fortran_Array2D< T >::copy (  )  const [inline]

Definition at line 145 of file tnt_fortran_array2d.h.

template<class T >
void TNT::Fortran_Array2D< T >::copy_ ( T *  p,
const T *  q,
int  len 
) [inline, private]

Definition at line 212 of file tnt_fortran_array2d.h.

template<class T >
int TNT::Fortran_Array2D< T >::dim1 (  )  const [inline]

Definition at line 186 of file tnt_fortran_array2d.h.

template<class T >
int TNT::Fortran_Array2D< T >::dim2 (  )  const [inline]

Definition at line 189 of file tnt_fortran_array2d.h.

template<class T>
void TNT::Fortran_Array2D< T >::initialize_ ( int  n  )  [private]

template<class T >
Fortran_Array2D< T > & TNT::Fortran_Array2D< T >::inject ( const Fortran_Array2D< T > &  A  )  [inline]

Definition at line 156 of file tnt_fortran_array2d.h.

template<class T >
const T & TNT::Fortran_Array2D< T >::operator() ( int  i,
int  j 
) const [inline]

Definition at line 123 of file tnt_fortran_array2d.h.

template<class T >
T & TNT::Fortran_Array2D< T >::operator() ( int  i,
int  j 
) [inline]

Definition at line 109 of file tnt_fortran_array2d.h.

template<class T >
Fortran_Array2D< T > & TNT::Fortran_Array2D< T >::operator= ( const Fortran_Array2D< T > &  A  )  [inline]

Definition at line 180 of file tnt_fortran_array2d.h.

template<class T >
Fortran_Array2D< T > & TNT::Fortran_Array2D< T >::operator= ( const T &  a  )  [inline]

Definition at line 138 of file tnt_fortran_array2d.h.

template<class T >
Fortran_Array2D< T > & TNT::Fortran_Array2D< T >::ref ( const Fortran_Array2D< T > &  A  )  [inline]

Definition at line 167 of file tnt_fortran_array2d.h.

template<class T >
int TNT::Fortran_Array2D< T >::ref_count (  )  const [inline]

Definition at line 198 of file tnt_fortran_array2d.h.

template<class T >
void TNT::Fortran_Array2D< T >::set_ ( T *  begin,
T *  end,
const T &  val 
) [inline, private]

Definition at line 204 of file tnt_fortran_array2d.h.


Member Data Documentation

template<class T>
T* TNT::Fortran_Array2D< T >::data_ [private]

Definition at line 46 of file tnt_fortran_array2d.h.

template<class T>
int TNT::Fortran_Array2D< T >::m_ [private]

Definition at line 44 of file tnt_fortran_array2d.h.

template<class T>
int TNT::Fortran_Array2D< T >::n_ [private]

Definition at line 45 of file tnt_fortran_array2d.h.

template<class T>
i_refvec<T> TNT::Fortran_Array2D< T >::v_ [private]

Definition at line 43 of file tnt_fortran_array2d.h.


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

Generated on Fri Feb 6 13:30:19 2009 for CorAL by  doxygen 1.5.8