Helper class for retrieve a subset of the current array.
More...
#include <ocean/eagle/FixedArray.hpp>
List of all members.
Public Types
-
typedef Assert< offset+subsize
<=SIZE > RangeCheck_t;static
FixedArray< value, subsize >
&get(FixedArray &A){return
*Subarray_t::fa_cast(A.data+offset);}static
const FixedArray< value,
subsize > &get(const
FixedArray &A){return
*Subarray_t::fa_cast(A.data+offset);}static
FixedArray< value, subsize >
*get(FixedArray *A){assert(A);return
Subarray_t::fa_cast(A-> dat offset )
-
typedef FixedArray< value,
subsize > Subarray_t
Static Public Member Functions
Detailed Description
template<class value, int N>
template<int subsize, int offset = 0>
struct FixedArray< value, N >::subarray< subsize, offset >
Helper class for retrieve a subset of the current array.
The array subset will be a reference to the original array, i.e. all arrayelements are shared. Example:
FixedArray<3, float>*Point3D;
FixedArray<2, float>*Point2Dt = FixedArray<N , float>::subarray<2,0>::get(Point);
The FixedArray's member function get_subarray() serves the same
purpose and functionality via a simpler interface using template
function parameters, which unfortunately might not be supported by
every compiler. If so, the more explicit subarray syntax needs to
be used.
The documentation for this struct was generated from the following file:
- ocean/eagle/FixedArray.hpp