Definition in file array.H.
Go to the source code of this file.
Namespaces | |
| namespace | qgar |
Global functions about array indexes | |
| template<class T> | |
| int | qgar::qgMinElement (const T *const anArray, int aSize) |
| Return the index of the minimum element of an array. | |
| template<class T> | |
| int | qgar::qgMinElement (const T *const anArray, int aFirstIdx, int aLastIdx) |
| Return the index of the minimum element of a subrange of an array. | |
| template<class T> | |
| int | qgar::qgMaxElement (const T *const anArray, int aSize) |
| Return the index of the maximum element of an array. | |
| template<class T> | |
| int | qgar::qgMaxElement (const T *const anArray, int aFirstIdx, int aLastIdx) |
| Return the index of the maximum element of a subrange of an array. | |
| template<class T> | |
| int | qgar::qgFind (const T *const anArray, int aSize, T aValue) |
| Return the index of a value in an array. | |
| template<class T> | |
| int | qgar::qgFind (const T *const anArray, int aFirstIdx, int aLastIdx, T aValue) |
| Return the index of a value in a subrange of an array. | |
Global functions for array initialization | |
| template<class T> | |
| void | qgar::qgFill (T *anArray, int aSize, T aValue) |
| Set all elements of an array to a value. | |
| template<class T> | |
| void | qgar::qgFill (T *anArray, int aFirstIdx, int aLastIdx, T aValue) |
| Set each element of a subrange of an array. | |
| template<class T> | |
| void | qgar::qgMemSet (T *anArray, int aSize) |
| Set all bytes of an array to 0. | |
| template<class T> | |
| void | qgar::qgMemSet (T *anArray, int aFirstIdx, int aLastIdx) |
| Set all bytes of an array to 0. | |
Global mapping functions on arrays | |
| template<class T> | |
| void | qgar::qgForEach (T *const aSource, T *aDest, int aSize, T(*anOperation)(const T &, const T &)) |
| Apply a function to pairs of elements from two arrays. | |
| template<class T> | |
| void | qgar::qgForEach (T *const aSource, T *aDest, int aFirstIdx, int aLastIdx, T(*anOperation)(const T &, const T &)) |
| Apply a given function to pairs of elements from a subrange of two arrays. | |