QDP++
QDP::Array2dO< T > Class Template Reference

2d array, with 1-based indices More...

#include <qdp_arrays.h>

Public Member Functions

 Array2dO ()
 Array2dO (int n)
 Array2dO (int n2, int n1)
 ~Array2dO ()
 Array2dO (const Array2dO &s)
 Copy constructor.
void resize (int n2, int n1)
void resize (int n)
int size () const
int size1 () const
int size2 () const
int nrows () const
 Another variant on the size of the 2d array.
int ncols () const
Array2dOoperator= (const Array2dO &s)
template<typename T1>
Array2dO< T > & operator= (const T1 &s1)
 Equal operator uses underlying = of T.
T & operator() (int i, int j)
 Return ref to an element.
const T & operator() (int i, int j) const
 Return const ref to an element.
const multi2d< T > & ref () const
 Return ref to underlying array.
multi2d< T > & ref ()
 Return ref to underlying array.

Detailed Description

template<typename T>
class QDP::Array2dO< T >

2d array, with 1-based indices

Definition at line 64 of file qdp_arrays.h.

Constructor & Destructor Documentation

◆ Array2dO() [1/4]

template<typename T>
QDP::Array2dO< T >::Array2dO ( )
inline

Definition at line 67 of file qdp_arrays.h.

Referenced by Array2dO(), operator=(), and operator=().

◆ Array2dO() [2/4]

template<typename T>
QDP::Array2dO< T >::Array2dO ( int n)
inlineexplicit

Definition at line 68 of file qdp_arrays.h.

◆ Array2dO() [3/4]

template<typename T>
QDP::Array2dO< T >::Array2dO ( int n2,
int n1 )
inlineexplicit

Definition at line 69 of file qdp_arrays.h.

◆ ~Array2dO()

template<typename T>
QDP::Array2dO< T >::~Array2dO ( )
inline

Definition at line 70 of file qdp_arrays.h.

◆ Array2dO() [4/4]

template<typename T>
QDP::Array2dO< T >::Array2dO ( const Array2dO< T > & s)
inline

Copy constructor.

Definition at line 73 of file qdp_arrays.h.

References Array2dO().

Member Function Documentation

◆ ncols()

template<typename T>
int QDP::Array2dO< T >::ncols ( ) const
inline

Definition at line 83 of file qdp_arrays.h.

◆ nrows()

template<typename T>
int QDP::Array2dO< T >::nrows ( ) const
inline

Another variant on the size of the 2d array.

Definition at line 82 of file qdp_arrays.h.

◆ operator()() [1/2]

template<typename T>
T & QDP::Array2dO< T >::operator() ( int i,
int j )
inline

Return ref to an element.

Definition at line 92 of file qdp_arrays.h.

◆ operator()() [2/2]

template<typename T>
const T & QDP::Array2dO< T >::operator() ( int i,
int j ) const
inline

Return const ref to an element.

Definition at line 95 of file qdp_arrays.h.

◆ operator=() [1/2]

template<typename T>
Array2dO & QDP::Array2dO< T >::operator= ( const Array2dO< T > & s)
inline

Definition at line 85 of file qdp_arrays.h.

References Array2dO().

◆ operator=() [2/2]

template<typename T>
template<typename T1>
Array2dO< T > & QDP::Array2dO< T >::operator= ( const T1 & s1)
inline

Equal operator uses underlying = of T.

Definition at line 89 of file qdp_arrays.h.

References Array2dO().

◆ ref() [1/2]

template<typename T>
multi2d< T > & QDP::Array2dO< T >::ref ( )
inline

Return ref to underlying array.

Definition at line 101 of file qdp_arrays.h.

◆ ref() [2/2]

template<typename T>
const multi2d< T > & QDP::Array2dO< T >::ref ( ) const
inline

Return ref to underlying array.

Definition at line 98 of file qdp_arrays.h.

◆ resize() [1/2]

template<typename T>
void QDP::Array2dO< T >::resize ( int n)
inline

Definition at line 76 of file qdp_arrays.h.

◆ resize() [2/2]

template<typename T>
void QDP::Array2dO< T >::resize ( int n2,
int n1 )
inline

Definition at line 75 of file qdp_arrays.h.

◆ size()

template<typename T>
int QDP::Array2dO< T >::size ( ) const
inline

Definition at line 77 of file qdp_arrays.h.

◆ size1()

template<typename T>
int QDP::Array2dO< T >::size1 ( ) const
inline

Definition at line 78 of file qdp_arrays.h.

◆ size2()

template<typename T>
int QDP::Array2dO< T >::size2 ( ) const
inline

Definition at line 79 of file qdp_arrays.h.


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