#include <multi_array_ref.hpp>
Classes | |
struct | array_view |
struct | const_array_view |
Public Types | |
typedef super_type::value_type | value_type |
typedef super_type::const_reference | const_reference |
typedef super_type::const_iterator | const_iterator |
typedef super_type::const_reverse_iterator | const_reverse_iterator |
typedef super_type::element | element |
typedef super_type::size_type | size_type |
typedef super_type::difference_type | difference_type |
typedef super_type::index | index |
typedef super_type::extent_range | extent_range |
typedef general_storage_order < NumDims > | storage_order_type |
typedef types::index_range | index_range |
typedef types::reference | reference |
typedef array_iterator< T, T *, mpl::size_t< NumDims > , reference, boost::random_access_traversal_tag > | iterator |
typedef ::boost::reverse_iterator < iterator > | reverse_iterator |
Public Member Functions | |
template<typename OPtr > | |
const_multi_array_ref (const const_multi_array_ref< T, NumDims, OPtr > &other) | |
template<typename ExtentList > | |
const_multi_array_ref (TPtr base, const ExtentList &extents) | |
template<typename ExtentList > | |
const_multi_array_ref (TPtr base, const ExtentList &extents, const general_storage_order< NumDims > &so) | |
const_multi_array_ref (TPtr base, const detail::multi_array::extent_gen< NumDims > &ranges) | |
const_multi_array_ref (TPtr base, const detail::multi_array::extent_gen< NumDims > &ranges, const general_storage_order< NumDims > &so) | |
template<class InputIterator > | |
void | assign (InputIterator begin, InputIterator end) |
template<class BaseList > | |
disable_if< typename boost::is_integral< BaseList > ::type, void >::type | reindex (const BaseList &values) |
void | reindex (index value) |
template<typename SizeList > | |
void | reshape (const SizeList &extents) |
size_type | num_dimensions () const |
size_type | size () const |
size_type | max_size () const |
bool | empty () const |
const size_type * | shape () const |
const index * | strides () const |
const element * | origin () const |
const element * | data () const |
size_type | num_elements () const |
const index * | index_bases () const |
const storage_order_type & | storage_order () const |
template<typename IndexList > | |
const element & | operator() (IndexList indices) const |
const_reference | operator[] (index idx) const |
template<int NDims> | |
const_array_view< NDims >::type | operator[] (const detail::multi_array::index_gen< NumDims, NDims > &indices) const |
const_iterator | begin () const |
const_iterator | end () const |
const_reverse_iterator | rbegin () const |
const_reverse_iterator | rend () const |
template<typename OPtr > | |
bool | operator== (const const_multi_array_ref< T, NumDims, OPtr > &rhs) const |
template<typename OPtr > | |
bool | operator< (const const_multi_array_ref< T, NumDims, OPtr > &rhs) const |
template<typename OPtr > | |
bool | operator!= (const const_multi_array_ref< T, NumDims, OPtr > &rhs) const |
template<typename OPtr > | |
bool | operator> (const const_multi_array_ref< T, NumDims, OPtr > &rhs) const |
template<typename OPtr > | |
bool | operator<= (const const_multi_array_ref< T, NumDims, OPtr > &rhs) const |
template<typename OPtr > | |
bool | operator>= (const const_multi_array_ref< T, NumDims, OPtr > &rhs) const |
BOOST_STATIC_CONSTANT (std::size_t, dimensionality=NumDims) | |
Protected Types | |
typedef boost::array < size_type, NumDims > | size_list |
typedef boost::array< index, NumDims > | index_list |
Protected Member Functions | |
void | set_base_ptr (TPtr new_base) |
const_multi_array_ref (TPtr base, const storage_order_type &so, const index *index_bases, const size_type *extents) | |
template<class InputIterator > | |
void | init_multi_array_ref (InputIterator extents_iter) |
template<typename Reference , typename IndexList , typename TPtr > | |
Reference | access_element (boost::type< Reference >, const IndexList &indices, TPtr base, const size_type *extents, const index *strides, const index *index_bases) const |
template<typename StrideList , typename ExtentList > | |
void | compute_strides (StrideList &stride_list, ExtentList &extent_list, const general_storage_order< NumDims > &storage) |
template<typename StrideList , typename ExtentList , typename BaseList > | |
index | calculate_origin_offset (const StrideList &stride_list, const ExtentList &extent_list, const general_storage_order< NumDims > &storage, const BaseList &index_base_list) |
template<typename StrideList , typename ExtentList > | |
index | calculate_descending_dimension_offset (const StrideList &stride_list, const ExtentList &extent_list, const general_storage_order< NumDims > &storage) |
template<typename StrideList , typename BaseList > | |
index | calculate_indexing_offset (const StrideList &stride_list, const BaseList &index_base_list) |
template<typename ArrayRef , int NDims, typename TPtr > | |
ArrayRef | generate_array_view (boost::type< ArrayRef >, const boost::detail::multi_array::index_gen< NumDims, NDims > &indices, const size_type *extents, const index *strides, const index *index_bases, TPtr base) const |
Friends | |
template<typename , std::size_t , typename > | |
class | const_multi_array_ref |
typedef super_type::const_iterator boost::const_multi_array_ref< T, NumDims, TPtr >::const_iterator |
typedef super_type::const_reference boost::const_multi_array_ref< T, NumDims, TPtr >::const_reference |
typedef super_type::const_reverse_iterator boost::const_multi_array_ref< T, NumDims, TPtr >::const_reverse_iterator |
typedef super_type::difference_type boost::const_multi_array_ref< T, NumDims, TPtr >::difference_type |
typedef super_type::element boost::const_multi_array_ref< T, NumDims, TPtr >::element |
typedef super_type::extent_range boost::const_multi_array_ref< T, NumDims, TPtr >::extent_range |
typedef super_type::index boost::const_multi_array_ref< T, NumDims, TPtr >::index |
|
protected |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
protected |
typedef super_type::size_type boost::const_multi_array_ref< T, NumDims, TPtr >::size_type |
typedef general_storage_order<NumDims> boost::const_multi_array_ref< T, NumDims, TPtr >::storage_order_type |
typedef super_type::value_type boost::const_multi_array_ref< T, NumDims, TPtr >::value_type |
|
inline |
|
inlineexplicit |
|
inlineexplicit |
|
inlineexplicit |
|
inlineexplicit |
|
inlineexplicitprotected |
|
inlineprotectedinherited |
References BOOST_ASSERT, boost::function_requires(), boost::multiprecision::backends::i, boost::ignore_unused_variable_warning(), boost::n, and boost::asio::offset.
Referenced by boost::detail::multi_array::const_sub_array< T, NumDims, T * >::operator()(), boost::detail::multi_array::const_multi_array_view< T, NumDims, T * >::operator()(), boost::const_multi_array_ref< T, NumDims, T * >::operator()(), boost::detail::multi_array::sub_array< T, NumDims >::operator()(), boost::detail::multi_array::multi_array_view< T, NumDims >::operator()(), and boost::multi_array_ref< T, NumDims >::operator()().
|
inline |
|
inline |
Referenced by boost::const_multi_array_ref< T, NumDims, T * >::assign(), boost::multi_array< T, NumDims, Allocator >::multi_array(), boost::const_multi_array_ref< T, NumDims, T * >::operator<(), boost::const_multi_array_ref< T, NumDims, T * >::operator==(), and boost::const_multi_array_ref< T, NumDims, T * >::rend().
|
inherited |
|
inlineprotectedinherited |
References boost::general_storage_order< NumDims >::all_dims_ascending(), boost::general_storage_order< NumDims >::ascending(), boost::n, and boost::asio::offset.
Referenced by boost::detail::multi_array::multi_array_impl_base< T, NumDims >::calculate_origin_offset(), and boost::const_multi_array_ref< T, NumDims, T * >::init_multi_array_ref().
|
inlineprotectedinherited |
|
inlineprotectedinherited |
References boost::detail::multi_array::multi_array_impl_base< T, NumDims >::calculate_descending_dimension_offset(), and boost::detail::multi_array::multi_array_impl_base< T, NumDims >::calculate_indexing_offset().
Referenced by boost::const_multi_array_ref< T, NumDims, T * >::init_multi_array_ref(), boost::const_multi_array_ref< T, NumDims, T * >::reindex(), and boost::const_multi_array_ref< T, NumDims, T * >::reshape().
|
inlineprotectedinherited |
References boost::general_storage_order< NumDims >::ascending(), boost::n, boost::general_storage_order< NumDims >::ordering(), and boost::adaptors::stride().
Referenced by boost::const_multi_array_ref< T, NumDims, T * >::init_multi_array_ref(), and boost::const_multi_array_ref< T, NumDims, T * >::reshape().
|
inline |
|
inline |
|
inline |
|
inlineprotectedinherited |
References BOOST_ASSERT, boost::iostreams::bzip2::finish, boost::python::len(), boost::n, boost::asio::offset, and boost::adaptors::stride().
Referenced by boost::detail::multi_array::const_sub_array< T, NumDims, T * >::operator[](), boost::detail::multi_array::const_multi_array_view< T, NumDims, T * >::operator[](), boost::const_multi_array_ref< T, NumDims, T * >::operator[](), boost::detail::multi_array::sub_array< T, NumDims >::operator[](), boost::detail::multi_array::multi_array_view< T, NumDims >::operator[](), and boost::multi_array_ref< T, NumDims >::operator[]().
|
inline |
|
inlineprotected |
|
inline |
|
inline |
|
inline |
Referenced by boost::const_multi_array_ref< T, NumDims, T * >::max_size().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprotected |
|
inline |
Referenced by boost::const_multi_array_ref< T, NumDims, T * >::begin(), boost::const_multi_array_ref< T, NumDims, T * >::end(), boost::const_multi_array_ref< T, NumDims, T * >::operator()(), boost::multi_array_ref< T, NumDims >::operator=(), and boost::const_multi_array_ref< T, NumDims, T * >::operator[]().
|
inline |
Referenced by boost::const_multi_array_ref< T, NumDims, T * >::empty().
|
inline |
|
inline |
|
friend |
|
protected |
|
protected |
|
protected |
Referenced by boost::const_multi_array_ref< T, NumDims, T * >::operator==(), boost::const_multi_array_ref< T, NumDims, T * >::reindex(), boost::const_multi_array_ref< T, NumDims, T * >::reshape(), boost::const_multi_array_ref< T, NumDims, T * >::shape(), and boost::const_multi_array_ref< T, NumDims, T * >::size().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |