gives read only access to a chunk of memory. More...
#include <storage_adaptors.hpp>
Public Types | |
typedef std::size_t | size_type |
typedef std::ptrdiff_t | difference_type |
typedef T | value_type |
typedef const T & | const_reference |
typedef const T * | const_pointer |
typedef const_pointer | const_iterator |
typedef const_pointer | iterator |
typedef std::reverse_iterator < const_iterator > | const_reverse_iterator |
typedef std::reverse_iterator < iterator > | reverse_iterator |
Public Member Functions | |
BOOST_UBLAS_INLINE | readonly_array_adaptor () |
BOOST_UBLAS_INLINE | readonly_array_adaptor (size_type size, const_pointer data) |
BOOST_UBLAS_INLINE | ~readonly_array_adaptor () |
readonly_array_adaptor (const readonly_array_adaptor &rhs) | |
BOOST_UBLAS_INLINE void | resize (size_type size) |
BOOST_UBLAS_INLINE void | resize (size_type size, const_pointer data) |
BOOST_UBLAS_INLINE size_type | max_size () const |
BOOST_UBLAS_INLINE bool | empty () const |
BOOST_UBLAS_INLINE size_type | size () const |
BOOST_UBLAS_INLINE const_reference | operator[] (size_type i) const |
BOOST_UBLAS_INLINE const_iterator | begin () const |
BOOST_UBLAS_INLINE const_iterator | end () const |
BOOST_UBLAS_INLINE const_reverse_iterator | rbegin () const |
BOOST_UBLAS_INLINE const_reverse_iterator | rend () const |
Private Types | |
typedef readonly_array_adaptor< T > | self_type |
Private Attributes | |
size_type | size_ |
const_pointer | data_ |
gives read only access to a chunk of memory.
This class partially models the storage concept. Only the immutable interface is provided.
example: T data[dim]; // ... fill data ... typedef readonly_array_adaptor<T> a_t; typedef vector<const T, a_t> v_t; a_t pa(dim, &(data[0])); v_t v(dim, pa);
Definition at line 54 of file storage_adaptors.hpp.
typedef const_pointer boost::numeric::ublas::readonly_array_adaptor< T >::const_iterator |
Definition at line 128 of file storage_adaptors.hpp.
typedef const T* boost::numeric::ublas::readonly_array_adaptor< T >::const_pointer |
Definition at line 64 of file storage_adaptors.hpp.
typedef const T& boost::numeric::ublas::readonly_array_adaptor< T >::const_reference |
Definition at line 63 of file storage_adaptors.hpp.
typedef std::reverse_iterator<const_iterator> boost::numeric::ublas::readonly_array_adaptor< T >::const_reverse_iterator |
Definition at line 145 of file storage_adaptors.hpp.
typedef std::ptrdiff_t boost::numeric::ublas::readonly_array_adaptor< T >::difference_type |
Definition at line 61 of file storage_adaptors.hpp.
typedef const_pointer boost::numeric::ublas::readonly_array_adaptor< T >::iterator |
Definition at line 142 of file storage_adaptors.hpp.
typedef std::reverse_iterator<iterator> boost::numeric::ublas::readonly_array_adaptor< T >::reverse_iterator |
Definition at line 146 of file storage_adaptors.hpp.
typedef readonly_array_adaptor<T> boost::numeric::ublas::readonly_array_adaptor< T >::self_type [private] |
Definition at line 58 of file storage_adaptors.hpp.
typedef std::size_t boost::numeric::ublas::readonly_array_adaptor< T >::size_type |
Definition at line 60 of file storage_adaptors.hpp.
typedef T boost::numeric::ublas::readonly_array_adaptor< T >::value_type |
Definition at line 62 of file storage_adaptors.hpp.
BOOST_UBLAS_INLINE boost::numeric::ublas::readonly_array_adaptor< T >::readonly_array_adaptor | ( | ) | [inline] |
Definition at line 69 of file storage_adaptors.hpp.
BOOST_UBLAS_INLINE boost::numeric::ublas::readonly_array_adaptor< T >::readonly_array_adaptor | ( | size_type | size, | |
const_pointer | data | |||
) | [inline] |
Definition at line 74 of file storage_adaptors.hpp.
BOOST_UBLAS_INLINE boost::numeric::ublas::readonly_array_adaptor< T >::~readonly_array_adaptor | ( | ) | [inline] |
Definition at line 79 of file storage_adaptors.hpp.
boost::numeric::ublas::readonly_array_adaptor< T >::readonly_array_adaptor | ( | const readonly_array_adaptor< T > & | rhs | ) | [inline] |
Definition at line 83 of file storage_adaptors.hpp.
BOOST_UBLAS_INLINE const_iterator boost::numeric::ublas::readonly_array_adaptor< T >::begin | ( | ) | const [inline] |
BOOST_UBLAS_INLINE bool boost::numeric::ublas::readonly_array_adaptor< T >::empty | ( | ) | const [inline] |
Definition at line 108 of file storage_adaptors.hpp.
BOOST_UBLAS_INLINE const_iterator boost::numeric::ublas::readonly_array_adaptor< T >::end | ( | ) | const [inline] |
BOOST_UBLAS_INLINE size_type boost::numeric::ublas::readonly_array_adaptor< T >::max_size | ( | ) | const [inline] |
BOOST_UBLAS_INLINE const_reference boost::numeric::ublas::readonly_array_adaptor< T >::operator[] | ( | size_type | i | ) | const [inline] |
Definition at line 121 of file storage_adaptors.hpp.
BOOST_UBLAS_INLINE const_reverse_iterator boost::numeric::ublas::readonly_array_adaptor< T >::rbegin | ( | ) | const [inline] |
BOOST_UBLAS_INLINE const_reverse_iterator boost::numeric::ublas::readonly_array_adaptor< T >::rend | ( | ) | const [inline] |
BOOST_UBLAS_INLINE void boost::numeric::ublas::readonly_array_adaptor< T >::resize | ( | size_type | size, | |
const_pointer | data | |||
) | [inline] |
Definition at line 94 of file storage_adaptors.hpp.
BOOST_UBLAS_INLINE void boost::numeric::ublas::readonly_array_adaptor< T >::resize | ( | size_type | size | ) | [inline] |
Definition at line 89 of file storage_adaptors.hpp.
BOOST_UBLAS_INLINE size_type boost::numeric::ublas::readonly_array_adaptor< T >::size | ( | ) | const [inline] |
Definition at line 114 of file storage_adaptors.hpp.
const_pointer boost::numeric::ublas::readonly_array_adaptor< T >::data_ [private] |
Definition at line 161 of file storage_adaptors.hpp.
size_type boost::numeric::ublas::readonly_array_adaptor< T >::size_ [private] |
Definition at line 160 of file storage_adaptors.hpp.