libtgd 4.3
A library that makes working with multidimensional arrays in C++ easy
|
Apply functions to each component or element of an array. More...
Namespaces | |
namespace | TGD |
Functions | |
template<typename T , typename FUNC > | |
Array< T > | TGD::forEachComponent (const Array< T > &a, FUNC func) |
Apply func to all components in array a. | |
template<typename T , typename FUNC > | |
Array< T > & | TGD::forEachComponentInplace (Array< T > &a, FUNC func) |
Apply func to all components in array a, in place. | |
template<typename T , typename FUNC > | |
Array< T > | TGD::forEachComponent (const Array< T > &a, T b, FUNC func) |
Apply func to all components in array a using value b. | |
template<typename T , typename FUNC > | |
Array< T > & | TGD::forEachComponentInplace (Array< T > &a, T b, FUNC func) |
Apply func to all components in array a using value b, in place. | |
template<typename T , typename FUNC > | |
Array< T > | TGD::forEachComponent (const Array< T > &a, const Array< T > &b, FUNC func) |
Apply func to all components in arrays a and b. | |
template<typename T , typename FUNC > | |
Array< T > & | TGD::forEachComponentInplace (Array< T > &a, const Array< T > &b, FUNC func) |
Apply func to all components in arrays a and b, in place. | |
template<typename T , typename FUNC > | |
Array< T > | TGD::forEachElement (const Array< T > &a, FUNC func) |
Apply func to all elements in array a. | |
template<typename T , typename FUNC > | |
Array< T > & | TGD::forEachElementInplace (Array< T > &a, FUNC func) |
Apply func to all elements in array a, in place. | |
template<typename T , typename FUNC > | |
Array< T > | TGD::forEachElement (const Array< T > &a, const T *b, FUNC func) |
Apply func to all elements in array a using element b. | |
template<typename T , typename FUNC > | |
Array< T > & | TGD::forEachElementInplace (Array< T > &a, const T *b, FUNC func) |
Apply func to all elements in array a using element b, in place. | |
template<typename T , typename FUNC > | |
Array< T > | TGD::forEachElement (const Array< T > &a, const Array< T > &b, FUNC func) |
Apply func to all elements in arrays a and b. | |
template<typename T , typename FUNC > | |
Array< T > & | TGD::forEachElementInplace (Array< T > &a, const Array< T > &b, FUNC func) |
Apply func to all elements in arrays a and b, in place. | |
Apply functions to each component or element of an array.