PLaSK library
Loading...
Searching...
No Matches
TNT::Array2D< T > Class Template Reference

#include <solvers/gain/wasiak/wzmocnienie/tnt/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)
 Create a new view to a subarray defined by the boundaries [i0][i0] and [i1][j1].
 

Detailed Description

template<class T>
class TNT::Array2D< T >

Definition at line 37 of file tnt_array2d.h.

Member Typedef Documentation

◆ value_type

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

Definition at line 52 of file tnt_array2d.h.

Constructor & Destructor Documentation

◆ Array2D() [1/5]

template<class T >
TNT::Array2D< T >::Array2D ( )

Definition at line 83 of file tnt_array2d.h.

◆ Array2D() [2/5]

template<class T >
TNT::Array2D< T >::Array2D ( int  m,
int  n 
)

Definition at line 93 of file tnt_array2d.h.

◆ Array2D() [3/5]

template<class T >
TNT::Array2D< T >::Array2D ( int  m,
int  n,
T *  a 
)

Definition at line 125 of file tnt_array2d.h.

◆ Array2D() [4/5]

template<class T >
TNT::Array2D< T >::Array2D ( int  m,
int  n,
const T &  a 
)

Definition at line 109 of file tnt_array2d.h.

◆ Array2D() [5/5]

template<class T >
TNT::Array2D< T >::Array2D ( const Array2D< T > &  A)
inline

Definition at line 86 of file tnt_array2d.h.

◆ ~Array2D()

template<class T >
TNT::Array2D< T >::~Array2D ( )

Definition at line 238 of file tnt_array2d.h.

Member Function Documentation

◆ copy()

template<class T >
Array2D< T > TNT::Array2D< T >::copy ( ) const

Definition at line 180 of file tnt_array2d.h.

◆ dim1()

template<class T >
int TNT::Array2D< T >::dim1 ( ) const
inline

Definition at line 231 of file tnt_array2d.h.

◆ dim2()

template<class T >
int TNT::Array2D< T >::dim2 ( ) const
inline

Definition at line 234 of file tnt_array2d.h.

◆ inject()

template<class T >
Array2D< T > & TNT::Array2D< T >::inject ( const Array2D< T > &  A)

Definition at line 194 of file tnt_array2d.h.

◆ operator const T **()

template<class T >
TNT::Array2D< T >::operator const T ** ( )
inline

Definition at line 249 of file tnt_array2d.h.

◆ operator T**()

template<class T >
TNT::Array2D< T >::operator T** ( )
inline

Definition at line 244 of file tnt_array2d.h.

◆ operator=() [1/2]

template<class T >
Array2D< T > & TNT::Array2D< T >::operator= ( const Array2D< T > &  A)
inline

Definition at line 225 of file tnt_array2d.h.

◆ operator=() [2/2]

template<class T >
Array2D< T > & TNT::Array2D< T >::operator= ( const T &  a)
inline

Definition at line 166 of file tnt_array2d.h.

◆ operator[]() [1/2]

template<class T >
T * TNT::Array2D< T >::operator[] ( int  i)
inline

Definition at line 141 of file tnt_array2d.h.

◆ operator[]() [2/2]

template<class T >
const T * TNT::Array2D< T >::operator[] ( int  i) const
inline

Definition at line 154 of file tnt_array2d.h.

◆ ref()

template<class T >
Array2D< T > & TNT::Array2D< T >::ref ( const Array2D< T > &  A)
inline

Definition at line 209 of file tnt_array2d.h.

◆ ref_count()

template<class T >
int TNT::Array2D< T >::ref_count ( )
inline

Definition at line 289 of file tnt_array2d.h.

◆ ref_count_data()

template<class T >
int TNT::Array2D< T >::ref_count_data ( )
inline

Definition at line 297 of file tnt_array2d.h.

◆ ref_count_dim1()

template<class T >
int TNT::Array2D< T >::ref_count_dim1 ( )
inline

Definition at line 303 of file tnt_array2d.h.

◆ subarray()

template<class T >
Array2D< T > TNT::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.

Definition at line 263 of file tnt_array2d.h.


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