LevelS C++ support library  3.83
Public Member Functions | List of all members
arr2< T > Class Template Reference

#include <arr.h>

Inheritance diagram for arr2< T >:
arr2T< T, normalAlloc__< T > >

Public Member Functions

 arr2 ()
 
 arr2 (tsize sz1, tsize sz2)
 
 arr2 (T *p, tsize sz1, tsize sz2)
 
 arr2 (tsize sz1, tsize sz2, const T &inival)
 
- Public Member Functions inherited from arr2T< T, normalAlloc__< T > >
 arr2T ()
 
 arr2T (tsize sz1, tsize sz2)
 
 arr2T (T *p, tsize sz1, tsize sz2)
 
 arr2T (const arr2T &orig)
 
 ~arr2T ()
 
tsize size1 () const
 
tsize size2 () const
 
tsize size () const
 
void alloc (tsize sz1, tsize sz2)
 
void allocAndFill (tsize sz1, tsize sz2, const T &inival)
 
void fast_alloc (tsize sz1, tsize sz2)
 
void dealloc ()
 
void fill (const T &val)
 
void scale (const T &val)
 
arr2Toperator= (const arr2T &orig)
 
T * operator[] (T2 n)
 
const T * operator[] (T2 n) const
 
T & operator() (T2 n1, T3 n2)
 
const T & operator() (T2 n1, T3 n2) const
 
void minmax (T &minv, T &maxv) const
 
void swap (arr2T &other)
 
bool conformable (const arr2T< T2, T3 > &other) const
 

Detailed Description

template<typename T>
class arr2< T >

Two-dimensional array type. The storage ordering is the same as in C. An entry is located by address arithmetic, not by double dereferencing. The indices start at zero.

Definition at line 474 of file arr.h.

Constructor & Destructor Documentation

◆ arr2() [1/4]

template<typename T>
arr2< T >::arr2 ( )
inline

Creates a zero-sized array.

Definition at line 478 of file arr.h.

◆ arr2() [2/4]

template<typename T>
arr2< T >::arr2 ( tsize  sz1,
tsize  sz2 
)
inline

Creates an array with the dimensions sz1 and sz2.

Definition at line 480 of file arr.h.

◆ arr2() [3/4]

template<typename T>
arr2< T >::arr2 ( T *  p,
tsize  sz1,
tsize  sz2 
)
inline

Creates an array with the dimensions sz1 and sz2 from existing pointer.

Definition at line 483 of file arr.h.

◆ arr2() [4/4]

template<typename T>
arr2< T >::arr2 ( tsize  sz1,
tsize  sz2,
const T &  inival 
)
inline

Creates an array with the dimensions sz1 and sz2 and initializes them with inival.

Definition at line 486 of file arr.h.


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

Generated on Wed Nov 13 2024 12:18:16 for LevelS C++ support library