Essentia  2.1-beta5-dev
Array2D< T > Class Template Reference

#include <tnt_array2d.h>

Public Types

typedef T value_type
 

Public Member Functions

 Array2D ()
 
 Array2D (int m, int n)
 
 Array2D (int m, int n, T *a)
 
 Array2D (int m, int n, const T &a)
 
 Array2D (const Array2D &A)
 
 operator T** ()
 
 operator const T ** ()
 
Array2Doperator= (const T &a)
 
Array2Doperator= (const Array2D &A)
 
Array2Dref (const Array2D &A)
 
Array2D copy () const
 
Array2Dinject (const Array2D &A)
 
T * operator[] (int i)
 
const T * operator[] (int i) const
 
int dim1 () const
 
int dim2 () const
 
 ~Array2D ()
 
int ref_count ()
 
int ref_count_data ()
 
int ref_count_dim1 ()
 
Array2D subarray (int i0, int i1, int j0, int j1)
 

Private Attributes

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

Member Typedef Documentation

◆ value_type

typedef T value_type

Constructor & Destructor Documentation

◆ Array2D() [1/5]

Array2D ( )

◆ Array2D() [2/5]

Array2D ( int  m,
int  n 
)

◆ Array2D() [3/5]

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

◆ Array2D() [4/5]

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

◆ Array2D() [5/5]

Array2D ( const Array2D< T > &  A)
inline

◆ ~Array2D()

~Array2D ( )

Member Function Documentation

◆ copy()

◆ dim1()

◆ dim2()

◆ inject()

Array2D< T > & inject ( const Array2D< T > &  A)

◆ operator const T **()

operator const T ** ( )
inline

◆ operator T**()

operator T** ( )
inline

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ operator[]() [1/2]

T * operator[] ( int  i)
inline

◆ operator[]() [2/2]

const T * operator[] ( int  i) const
inline

◆ ref()

Array2D< T > & ref ( const Array2D< T > &  A)
inline

◆ ref_count()

int ref_count ( )
inline

◆ ref_count_data()

int ref_count_data ( )
inline

◆ ref_count_dim1()

int ref_count_dim1 ( )
inline

◆ subarray()

Array2D< T > subarray ( int  i0,
int  i1,
int  j0,
int  j1 
)

Create a new view to a subarray defined by the boundaries [i0][i0] and [i1][j1]. The size of the subarray is (i1-i0) by (j1-j0). If either of these lengths are zero or negative, the subarray view is null.

Member Data Documentation

◆ data_

◆ m_

◆ n_

◆ v_


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