LevelS C++ support library
3.83
|
#include <arr.h>
Public Member Functions | |
arr () | |
arr (tsize sz) | |
arr (tsize sz, const T &inival) | |
arr (T *ptr, tsize sz) | |
arr (const arr &orig) | |
Public Member Functions inherited from arrT< T, normalAlloc__< T > > | |
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) |
arrT & | operator= (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 |
One-dimensional array type.
Creates an array with sz entries, which uses the memory pointed to by ptr.