Essentia  2.1-beta6-dev
Fortran_Array2D< T > Class Template Reference

#include <tnt_fortran_array2d.h>

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_
 

Member Typedef Documentation

◆ value_type

typedef T value_type

Constructor & Destructor Documentation

◆ Fortran_Array2D() [1/5]

◆ Fortran_Array2D() [2/5]

Fortran_Array2D ( int  m,
int  n 
)

◆ Fortran_Array2D() [3/5]

Fortran_Array2D ( int  m,
int  n,
T *  a 
)

◆ Fortran_Array2D() [4/5]

Fortran_Array2D ( int  m,
int  n,
const T &  a 
)

◆ Fortran_Array2D() [5/5]

Fortran_Array2D ( const Fortran_Array2D< T > &  A)
inline

◆ ~Fortran_Array2D()

Member Function Documentation

◆ copy()

◆ copy_()

void copy_ ( T *  p,
const T *  q,
int  len 
)
private

◆ dim1()

◆ dim2()

◆ initialize_()

void initialize_ ( int  n)
private

◆ inject()

◆ operator()() [1/2]

T & operator() ( int  i,
int  j 
)
inline

◆ operator()() [2/2]

const T & operator() ( int  i,
int  j 
) const
inline

◆ operator=() [1/2]

Fortran_Array2D& operator= ( const Fortran_Array2D< T > &  A)
inline

◆ operator=() [2/2]

Fortran_Array2D< T > & operator= ( const T &  a)
inline

◆ ref()

◆ ref_count()

int ref_count
inline

◆ set_()

void set_ ( T *  begin,
T *  end,
const T &  val 
)
private

Member Data Documentation

◆ data_

◆ m_

int m_
private

◆ n_

int n_
private

◆ v_

i_refvec<T> v_
private

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