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

#include <arr.h>

Inheritance diagram for arr_align< T, align >:
arrT< T, alignAlloc__< T, align > > arr_ref< T >

Public Member Functions

 arr_align ()
 
 arr_align (tsize sz)
 
 arr_align (tsize sz, const T &inival)
 
- Public Member Functions inherited from arrT< T, alignAlloc__< T, align > >
 arrT ()
 
 arrT (tsize sz)
 
 arrT (tsize sz, const T &inival)
 
 arrT (T *ptr, tsize sz)
 
 arrT (const arrT &orig)
 
 ~arrT ()
 
void alloc (tsize sz)
 
void allocAndFill (tsize sz, const T &inival)
 
void dealloc ()
 
void resize (tsize sz)
 
arrToperator= (const arrT &orig)
 
void copyFrom (const std::vector< T2 > &orig)
 
void copyTo (std::vector< T2 > &vec) const
 
void copyFromPtr (const T2 *ptr, tsize sz)
 
void transfer (arrT &other)
 
void swap (arrT &other)
 
- Public Member Functions inherited from arr_ref< T >
 arr_ref (T *d_, tsize s_)
 
tsize size () const
 
void fill (const T &val)
 
template<typename T2 >
T & operator[] (T2 n)
 
template<typename T2 >
const T & operator[] (T2 n) const
 
T * begin ()
 
T * end ()
 
const T * begin () const
 
const T * end () const
 
template<typename T2 >
void copyToPtr (T *ptr) const
 
void sort ()
 
template<typename Comp >
void sort (Comp comp)
 
void interpol_helper (const T &val, tsize &idx, double &frac) const
 
template<typename Comp >
void interpol_helper (const T &val, Comp comp, tsize &idx, double &frac) const
 
void minmax (T &minv, T &maxv) const
 
bool contains (const T &val) const
 
tsize find (const T &val) const
 
bool contentsEqual (const arr_ref &other) const
 

Detailed Description

template<typename T, int align>
class arr_align< T, align >

One-dimensional array type, with selectable storage alignment.

Definition at line 329 of file arr.h.

Constructor & Destructor Documentation

◆ arr_align() [1/3]

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

Creates a zero-sized array.

Definition at line 333 of file arr.h.

◆ arr_align() [2/3]

template<typename T, int align>
arr_align< T, align >::arr_align ( tsize  sz)
inlineexplicit

Creates an array with sz entries.

Definition at line 335 of file arr.h.

◆ arr_align() [3/3]

template<typename T, int align>
arr_align< T, align >::arr_align ( tsize  sz,
const T &  inival 
)
inline

Creates an array with sz entries, and initializes them with inival.

Definition at line 338 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