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

#include <arr.h>

Inheritance diagram for arr2_align< T, align >:
arr2T< T, alignAlloc__< T, align > >

Public Member Functions

 arr2_align ()
 
 arr2_align (tsize sz1, tsize sz2)
 
 arr2_align (tsize sz1, tsize sz2, const T &inival)
 
- Public Member Functions inherited from arr2T< T, alignAlloc__< T, align > >
 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, int align>
class arr2_align< T, align >

Two-dimensional array type, with selectable storage alignment. 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 495 of file arr.h.

Constructor & Destructor Documentation

◆ arr2_align() [1/3]

template<typename T , int align>
arr2_align< T, align >::arr2_align ( )
inline

Creates a zero-sized array.

Definition at line 499 of file arr.h.

◆ arr2_align() [2/3]

template<typename T , int align>
arr2_align< T, align >::arr2_align ( tsize  sz1,
tsize  sz2 
)
inline

Creates an array with the dimensions sz1 and sz2.

Definition at line 501 of file arr.h.

◆ arr2_align() [3/3]

template<typename T , int align>
arr2_align< T, align >::arr2_align ( 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 505 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