This class provides information about applying a transform object to an array object. It can be used for example to get the exact type of the array that is returned as the result of applying a transform. More...
#include <array.hpp>
Public Types | |
typedef size_transformer < trans_type_, typename array_type_::size_type > ::size_type | size_type |
The size type of the resulting array. | |
typedef detail::size_to_signature < size_type, typename array_type_::value_type > ::type | signature |
The signature of the resulting array. | |
typedef array_type_::traits_type | traits_type |
The traits type of the resulting array which is the same as the traits type of the original array. | |
typedef iterator_transformer < trans_type_, typename array_type_::iterator, typename array_type_::size_type > ::iterator_type | iterator |
The iterator type of the resulting array. | |
typedef iterator_transformer < trans_type_, typename array_type_::const_iterator, typename array_type_::size_type > ::iterator_type | const_iterator |
The const iterator type of the resulting array. | |
typedef ::lite::array < signature, traits_type, reference_rep< iterator > > | array |
The exact type of the resulting array when the transform is applied to a non-const array object. | |
typedef ::lite::array < signature, traits_type, reference_rep< const_iterator > > | const_array |
The exact type of the resulting array when the transform is applied to a const array object. | |
typedef array_helper < signature, traits_type > ::temporary_array | temporary_array |
An array type compatible with the resulting array (i.e. with the same signature and traits). Suitable for defining temporary variables or return types. | |
typedef array_helper < signature, traits_type > ::fwd_temporary_array | fwd_temporary_array |
An array type compatible with the resulting array (i.e. with the same signature and traits) and with forward storage. Suitable for defining temporary variables or return types. | |
typedef array_helper < signature, traits_type > ::rev_temporary_array | rev_temporary_array |
An array type compatible with the resulting array (i.e. with the same signature and traits) and with reverse storage. Suitable for defining temporary variables or return types. |
This class provides information about applying a transform object to an array object. It can be used for example to get the exact type of the array that is returned as the result of applying a transform.
typedef array<float[5][5]> A; A a; transform_traits<A, row>::array a_r1 = a[row(1)]; a_r1 = -1; // the previous line is equivalent to: a[row(1)] = -1; transform_traits<A, row>::temporary_array a_rt = a[row(1)]; a[row(1)] = a[row(2)]; a[row(2)] = a_rt; // the previous 3 lines is equivalent to: swap(a[row(1)], a[row(2)]);